Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

2 Monate vor

Gelöst


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

2 Monate vor

Gelöst


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

2 Monate vor

Gelöst


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

2 Monate vor

Gelöst


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

2 Monate vor

Gelöst


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

2 Monate vor

Gelöst


kmph to mps
convert kilometer per hour to meter per second

2 Monate vor

Gelöst


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

2 Monate vor

Gelöst


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

2 Monate vor

Gelöst


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

2 Monate vor

Gelöst


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

2 Monate vor

Gelöst


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

2 Monate vor

Gelöst


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

2 Monate vor

Problem


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

2 Monate vor | 0 | 14 Lösungsvorschläge

Gelöst


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

2 Monate vor

Problem


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

2 Monate vor | 0 | 16 Lösungsvorschläge

Gelöst


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

2 Monate vor

Gelöst


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

2 Monate vor

Gelöst


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

2 Monate vor

Gelöst


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

2 Monate vor

Gelöst


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

2 Monate vor

Mehr laden