Calculate some equation
Using given inputs x and z, make two outputs that are
y1=(xz)/(x/z)^2+14x^2-0.8z^2
y2=x^z-z^x+(x/z)^2-(z/x)^2
7年以上 前
解決済み
Interpolate scattered data.
Most data was scattered, and there is no gird.
There are three data [c] in three different area [x,y].
x=[1 3 4];
y=[1 ...
7年以上 前
解決済み
Calculate RMSE
RMSE(Root Mean Square Error) is widely used to calculate error. Calculate RMSE between [a] and [b]
a=[1 2 3 4]
b=[0 1 2 ...
7年以上 前
解決済み
Check that given number is 3*n
Check that input of multiple of three (3*n).
if given number is included in 3*n, print true.
(hint: use mod)
7年以上 前
解決済み
Calculate correlation.
There are two data.
y1=[0 1 2 3 4]'
y2=[2 3 4 5 6]'
We can see positive relationship between y1 and y2. The relations...
7年以上 前
解決済み
Two dimensional moving average
A=[1 2 3 4 5
1 2 2 2 3
2 3 3 3 4
1 1 4 4 2]
B=[1 1;1 1]; % This is can be used for weight factor of moving a...
7年以上 前
解決済み
Analyze observation data
There are results of observation.
A B C
--------------------------
t=1 2.2 2.6 2.4
t=2 2.4 ...
7年以上 前
解決済み
Calculate using 'for' statements
Equations are easily calculated using matlab. Especially, when we calculate multivariable(more than two) variables, "meshgrid" f...
7年以上 前
解決済み
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.
7年以上 前
解決済み
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...