Resuelto


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

casi 4 años hace

Resuelto


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

casi 4 años hace

Resuelto


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

casi 4 años hace

Resuelto


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

casi 4 años hace

Resuelto


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

casi 4 años hace

Resuelto


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

casi 4 años hace

Resuelto


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

casi 4 años hace

Respondida
hello.....how find out angle in degree
angle = angle(z)*double(unitConversionFactor(u.radian,u.degree))

casi 4 años hace | 0

Pregunta


modify the matrix, rearrangement of elements
I have a matrix a = [2 4 7 11; 7 9 5 54; 2 5 7 9; 12 41 45 21]; How to get the row matrix such that the elements of matrix a ar...

casi 4 años hace | 2 respuestas | 0

2

respuestas

Resuelto


Times 10
Try out this test problem first. Given the variable x as your input, multiply it by ten and put the result in y. Examples:...

casi 4 años hace

Resuelto


Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

casi 4 años hace

Resuelto


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

casi 4 años hace

Resuelto


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

casi 4 años hace

Resuelto


Is my wife right?
Regardless of input, output the string 'yes'.

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


Distance Between Points
Being n the number of points (If n = 3 there would be 3 points: A, B and C). The distance between each pair of points increases...

casi 4 años hace

Resuelto


Get the area of ​​the square.
Four circles are inscribed in the square ABCD. The perimeter of each circle is *aπ*. <<http://imgfz.com/i/UzgCJut.png>> Gi...

casi 4 años hace

Resuelto


Find the area of ​​the square
There are *n²* circles inscribed in the square ABCD. The perimeter of each circle is *aπ* <<http://imgfz.com/i/3wzCeAT.png>> ...

casi 4 años hace

Resuelto


Sum! Sum! Sum!
Calculate the sum of the sequence up to nth term >> a,aa,aaa,aaaa,... 2,22,222,2222,... [for a=2]

casi 4 años hace

Resuelto


Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

casi 4 años hace

Resuelto


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

casi 4 años hace

Resuelto


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.&#8519;^(-&lambda;t)*cos(2πft)| where |A|, |&lambda;|, and |f| ...

casi 4 años hace

Resuelto


Newton's Motion Law
F is force, m is mass, and a is acceleration. Calculate the force for an object.

casi 4 años hace

Resuelto


Speed
x is distance, v is speed, and t is time. Calculate the speed for an object.

casi 4 años hace

Resuelto


Momentum of an Object
P is momentum, m is mass, and v is velocity. Calculate the momentum for an object.

casi 4 años hace

Resuelto


Equilateral Triangle
The length of one side of the equilateral triangle is a. Calculate the area of ​​the equilateral triangle.

casi 4 años hace

Resuelto


Solve a System of Linear Equations
*Example*: If a system of linear equations in _x&#8321_ and _x&#8322_ is: 2 _x&#8321;_ + _x&#8322;_ = 2 _x&#8321;...

casi 4 años hace

Resuelto


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

casi 4 años hace

Resuelto


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

casi 4 años hace

Resuelto


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

casi 4 años hace

Cargar más