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...

presque 5 ans 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...

environ 5 ans 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...

environ 5 ans 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...

environ 5 ans ago

Solved

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

environ 5 ans ago

Solved

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

environ 5 ans 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...

environ 5 ans ago

Solved

Positive Infinity
Round the array a towards positive infinity

environ 5 ans 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

environ 5 ans ago

Solved

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

environ 5 ans 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...

environ 5 ans 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...

environ 5 ans ago

Solved

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

environ 5 ans 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...

environ 5 ans 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...

environ 5 ans ago

Solved

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

environ 5 ans ago

Solved

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

environ 5 ans 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...

environ 5 ans 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...

environ 5 ans 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 ...

environ 5 ans ago

Solved

Negative Infinity
Round the given array a towards negative infinity.

environ 5 ans 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...

environ 5 ans ago

Solved

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

environ 5 ans ago

Solved

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

environ 5 ans ago

Solved

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

environ 5 ans 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...

environ 5 ans 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...

environ 5 ans 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...

environ 5 ans 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...

environ 5 ans 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.

environ 5 ans ago