Delete useless part of data
When someone deals with big data. if the person delete useless part, calculation will be more faster than before deleting.
De...
10年弱 前
解決済み
Extract a part of matrix!
There is matrix A
A=[1 2 3;
4 5 6;
7 8 9]
Extract a part of matrix A from (2,2) to (3,3).
Result should...
Calculate using 'for' statements
Equations are easily calculated using matlab. Especially, when we calculate multivariable(more than two) variables, "meshgrid" f...
10年弱 前
解決済み
Make random number between a and b
Function rand make arbitrary number between 0 and 1. Using inputs, a, and b, make random number between given two values.
10年弱 前
解決済み
Make sorting matrix without sort function.
It is very valuable for student to simple sorting program because they learn about use of loop and if-statement. Sort given inpu...
10年弱 前
解決済み
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...