What percentage?
Calculate the output c as the percentage of a on b for given a and b.
27일 전
해결됨
Derivative of polynomial
Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...
27일 전
해결됨
Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man?
Give the name of that man, who, by popular believe, can ...
27일 전
해결됨
Remove the positive integers.
Given array,x, remove all the positive numbers and display ouput as y.
Example x=[1 -2 3 -4] , output is y=[-2 -4].
Counting down
Create a vector that counts from 450 to 200 in increments of 10.
27일 전
해결됨
Matlab Basics II - Minimum
Write a function that returns the minimum of each ROW of a matrix x
example: x = [1 2 3; 4 5 6];
output [1;4];
27일 전
해결됨
Check if equal
Return true if all the elements of an nD array are equal, false otherwise.
27일 전
해결됨
Find the nearest integer
Given a vector of integers and a real number find the closest integer.
EX:
>> a = [2 4 5 6 8 10];
>> b = 4.6;
>> nea...
27일 전
해결됨
Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B?
>>A=[2,4;3,5];
>>B=[-2.5,2;1.5,-1];
>>isInverse...
27일 전
해결됨
Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row.
This also applies...
27일 전
해결됨
Y=X
Given an input variable x, output a variable y that is equal in value to x.
Example:
Input x = 1
Output y is 1
Inp...
Average of odd values
Find the average of odd values in given a matrix.
e.g
x=[ 4 11 8 ; 9 2 7 ]
y =( 11 + 9+ 7 ) / 3
27일 전
해결됨
Replace Nan!
Replace Nan in the given vector(v) with 9999.
27일 전
해결됨
Average of even-numbered columns
Given a vector, find the average of even-numbered columns.
e.g
x = [ 4 6 8 9 1 2 7 ]
y = ( 6 + 9 + 2 ) / 3
27일 전
해결됨
Probability of red tulips
I hope to give you bulbs of tulip. But I do not know the color of those petals. I just know that the color is red, white or yell...
27일 전
해결됨
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...
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.