It's my first try to write a function. Could anyone please help me? I defined a function such that:
function [zdot]=func2q2(t,z)global wb=[0 ; 5*sin(wt)]A=[0 ,1 ; -100, -1];zdot=A*z+b;
And I want to drow y for w=2, 6,
global wt=[0,10];zt0=[0 0];[T3,Z3]=ode45(@func2q2, t, zt0);figure;plot(T3,Z3);grid onlegend('w=2','w=6');
How can I say for any value of w calculate the function and plot?
Best Answer
Best wishes
Torsten.