Current location - Training Enrollment Network - Mathematics courses - Mathematical modeling MATLAB problem two! Pray for the great god! Urgent! Wait online!
Mathematical modeling MATLAB problem two! Pray for the great god! Urgent! Wait online!
As follows:

1、

Clc, clear, close

FS = ceil( 100 * rand (500,1));

hist(FS, 10);

2、

Clc, clear, close

% x distance (meters), y time (seconds)

x =[50; 100; 200; 400; 800; 1500];

y =[2 1.8 1; 48.42; 106.69; 225; 466.60; 863.48];

plot(x,y,' o ');

continue

p=fittype('a*x.^b','independent','x');

F = fitting (x, y, p)

plot(f,x,y);