How to permute given 3d matrix?
A(:,:,1)=[1 3]
A(:,:,2)=[2 2]
A(:,:,3)=[4 3]
Change rows to columns and columns to rows, similar to transpose.
Resul...
約6年 前
解決済み
Extract a specific part of matrix!
In the given matrix, extract element that have odd rows and column number.
For example
A=[1 4 2 3 5]
B=extractodd(A);...
CARDS PROBLEM
Read my mind and tell me the card number that I have now in my hands.
約6年 前
解決済み
Weighted moving average
x1=[1 2 1];
y1=[1 2 2 4 5 6 6 8];
Make function for weighted moving average.
z(i)=(x1(i)*y1(i)+x1(i+1)*y1(i+1)+x1(i+2)*y1...
約6年 前
解決済み
Find the binary code
Given a sinusoidal signal, create a function that returns the binary code of a quantized value. The function takes the bit lengt...
約6年 前
解決済み
Rotate Matrix Clockwise (45 Degree)
*Matrix (3x3 only) rotation clockwise*:
2 inputs: *x* matrix and *n* times.
output: *y* matrix with *n x 45* degree ro...
約6年 前
解決済み
Bubble sort
Write your own bubble sort function ( <https://en.wikipedia.org/wiki/Bubble_sort>) to sort all elements in x in ascending order....
Analyze observation data
Suppose you have the following data (A,B,C) in three-column format.
A B C
--------------------------
t=1 ...
約6年 前
解決済み
Solve expression III
Solve expression for given vector x.
Expression = (tan(2*x^2+7*x-30.25)+log(x^3-2.25))/(nthroot(sin(x^3)^2+1/5*log(x^4-2.5),3))...
約6年 前
解決済み
Vector parallel to plane?
Given the coefficients of the equation which defines a plane as follows:
ax+by+cz=d, return a boolean indicating whether the 2n...
約6年 前
解決済み
Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.
Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...
約6年 前
解決済み
Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match.
* If they match, create an output variable |z|...