Matlab Tutorial classes begin
Yesterday Matlab tutorial classes began. We learned the basics of solving differential equations and integral functions. Solving differential and integral function with matlab quite difficult at the very beginning but I try it independently.
Some .m files which are written by me. Do not evaluate me‼‼‼ this is only a beginning……..
x = 0:0.1:10;
y= length(x);
for I=1:y;
m(I)= [x(end-I)];
end
m;
Second Problem
Solving integral from 0 to 1 ,ydx where y=x
x = linspace(0,1,10);
h = 0.01;
a=0;
b=1;
n= (a-b)/h;
y(1)=1;
x(1)=0;
for I = 1:n;
x(I+1)= x(I)+h;
y(I+1)= y(I)+ h*x(I);
end
[x,y]
plot(x,y);
This .m file did not run, it gives a error message
Are there any MATLAB experts? Help me via comments
