Community Profile

# Georges

361 total contributions since 2014

View details...

Contributions in
View by

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

5 years ago

Solved

Average speed for the entire trip
The input is two speeds (for the trip and return trip) and output is average speed. Assume units are consistent, say miles per h...

5 years ago

Solved

The Ulam Matrix
The Ulam spiral is simple to describe. On a gridded piece of paper, write down the number 1. Then write successive integers as y...

5 years ago

Solved

Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

5 years ago

Solved

Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

5 years ago

Solved

Lose control
Remove all characters that are below space in ASCII value.

5 years ago

Solved

construct matrix with identical rows
Input a row vector such as x=1:10. Now we need to construct a matrix with L rows,of which every row vector is a copy of x. E...

5 years ago

Solved

Positive Infinity
Round the array a towards positive infinity

5 years ago

Solved

Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

5 years ago

Solved

Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

5 years ago

Solved

03 - Matrix Variables 1
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3a.png>> A 9x9 matrix full of 2's (Hint: use *ones* o...

5 years ago

Solved

Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

5 years ago

Solved

Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*

5 years ago

Solved

Find maximum value of a curve
Two vectors shall be already defined: - Input vector x (e.g. x = 0:1:10) - Result vector y (e.g. y = sin(x)) Create a n...

5 years ago

Solved

Television Screen Dimensions
Given a width to height ratio of a TV screen given as _w_ and _h_ as well as the diagonal length of the television _l_, return t...

5 years ago

Solved

Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

5 years ago

Solved

Concatenate two strings
Its very easy. Just concatenate two strings.

5 years ago

Solved

Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

5 years ago

Solved

Elapsed time is -0.005204 seconds.
Write a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case p...

5 years ago

Solved

Find and replaces spaces from a input string with *
For a given input string str, find how many spaces are there in the string and replace those spaces with * e.g. str = 'this is ...

5 years ago

Solved

Negative Infinity
Round the given array a towards negative infinity.

5 years ago

Solved

wait for me
wait exactly x seconds please, need not be more than 2 seconds but must be accurate within say 50 milliseconds, your function mu...

5 years ago

Solved

Max of a Vector
Write a function to return the max of a vector

5 years ago

Solved

Volume of a sphere given its surface area
You just measured its surface area, that is the input.

5 years ago

Solved

sinus function
x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.

5 years ago

Solved

Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

5 years ago

Solved

Determine if input is a perfect number
A <http://en.wikipedia.org/wiki/Perfect_number/ perfect number> occurs whent the sum of all divisors of a positive integer, exce...

5 years ago

Solved

Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

5 years ago

Solved

Find nearest prime number less than input number
Find nearest prime number less than input number . For example: if the input number is 125, then the nearest prime number whi...

5 years ago

Solved

Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

5 years ago