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...
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...
10年弱 前
解決済み
Change string to number
Change given string to number. (hint: there is already function)
Changing from ['1234'] to [1234] is one of example