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

fast 6 Jahre 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...

etwa 6 Jahre 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...

etwa 6 Jahre 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...

etwa 6 Jahre ago

Solved

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

etwa 6 Jahre ago

Solved

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

etwa 6 Jahre 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...

etwa 6 Jahre ago

Solved

Positive Infinity
Round the array a towards positive infinity

etwa 6 Jahre 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

etwa 6 Jahre ago

Solved

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

etwa 6 Jahre 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...

etwa 6 Jahre 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...

etwa 6 Jahre ago

Solved

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

etwa 6 Jahre 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...

etwa 6 Jahre 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...

etwa 6 Jahre ago

Solved

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

etwa 6 Jahre ago

Solved

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

etwa 6 Jahre 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...

etwa 6 Jahre 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...

etwa 6 Jahre 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 ...

etwa 6 Jahre ago

Solved

Negative Infinity
Round the given array a towards negative infinity.

etwa 6 Jahre 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...

etwa 6 Jahre ago

Solved

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

etwa 6 Jahre ago

Solved

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

etwa 6 Jahre ago

Solved

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

etwa 6 Jahre 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...

etwa 6 Jahre 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...

etwa 6 Jahre 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...

etwa 6 Jahre 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...

etwa 6 Jahre 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.

etwa 6 Jahre ago