Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?;
x = [1 : 0.5 : 6];
y ...
約11年 前
解決済み
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];
Divide by 4
Given the variable x as your input, divide it by four and put the result in y.
約11年 前
解決済み
Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.
約11年 前
解決済み
Times 32
X is given as your variable.
Y is your output multiplied by 32
Example
x=1
y=1x32=32
約11年 前
解決済み
Find the square root of a value
Given the variable x as your input, find the square root and let the result be represented by y
Examples:
Input x = 4
O...
Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements.
Example:
x = [1 2 ...