Resuelto


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

2 meses hace

Resuelto


Simple equation: Annual salary
Given an hourly wage, compute an annual salary

2 meses hace

Resuelto


Matlab Basics II - Count rows in a matrix
Write a function that returns that number of rows in a vector or matrix x example: x = [1; 2; 3] output = 3

2 meses hace

Resuelto


Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

2 meses hace

Resuelto


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

2 meses hace

Resuelto


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

2 meses hace

Resuelto


Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. http://en.wikipedia.org/wiki/Whole_numb...

2 meses hace

Resuelto


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

2 meses hace

Resuelto


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

2 meses hace

Resuelto


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

3 meses hace

Resuelto


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

3 meses hace

Resuelto


Compare two strings.
Compare two strings, whether they are equal or not.

3 meses hace

Resuelto


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

3 meses hace

Resuelto


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

3 meses hace

Resuelto


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

3 meses hace

Resuelto


kmph to mps
convert kilometer per hour to meter per second

3 meses hace

Resuelto


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

3 meses hace

Resuelto


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

3 meses hace

Resuelto


Inner product of two vectors
Find the inner product of two vectors.

3 meses hace

Resuelto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

3 meses hace

Resuelto


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

3 meses hace

Resuelto


Title
Make a plot for x and add title "My Plot". NOTICE: YOU CAN NOT USE ans INSTEAD OF [y ax]!

3 meses hace

Problema


Title
Make a plot for x and add title "My Plot". NOTICE: YOU CAN NOT USE ans INSTEAD OF [y ax]!

3 meses hace | 0 | 14 solvers

Resuelto


Plot
Make a plot of the vector x. NOTICE: YOU CAN NOT USE ans INSTEAD OF y!

3 meses hace

Problema


Plot
Make a plot of the vector x. NOTICE: YOU CAN NOT USE ans INSTEAD OF y!

3 meses hace | 0 | 16 solvers

Resuelto


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

3 meses hace

Resuelto


Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2

3 meses hace

Resuelto


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

3 meses hace

Resuelto


first element of matrix
find the first elements of a column matrix

3 meses hace

Resuelto


Sum the squares of numbers from 1 to n
For a given value of n return the sum of square of numbers from 1 to n. Example For n = 2 then sum of squares = 5 (1^2 + ...

3 meses hace

Cargar más