Top 10% contributor
Naresh, Could you figure out how to do it? Even I am stuck at the same point. Many thanx in advance!! -Amit
4 years ago
4 years ago
I would like to find roots of a cubic equation in Simulink[ver: 8.0]
INPUTs to embedded Matlab function block:...
Asked 4 years ago
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point.
Given a row vector of numbers, find the indices of the two nearest numbers.
[index1 index2] = nearestNumbers([2 5 3...
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...
Regardless of input, output the string 'yes'.
Given a and b, return the sum a+b in c.
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...
Remove the nth column from input matrix A and return the resulting matrix in output B.
A = [1 2 3; 4 5 6];
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN.
In MATLAB, you create a vector by enclosing the elements in square brackets like so:
x = [1 2 3 4]
Commas are optional, s...
Try out this test problem first.
Given the variable x as your input, multiply it by two and put the result in y.
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries