Can anyone help to write a code for plotting the following equation with time please?
1 view (last 30 days)
per isakson on 9 Feb 2015
Edited: per isakson on 9 Feb 2015
With a little bit of guessing
t = 0 :0.0001:1000;
fi = @(ti) exp( (-B/omega).*cos(omega*ti) );
fx = @(tj) exp( (-B/omega) .* cos(omega*tj) ) ...
./ ( (B/A).*(integral( fi, 0, tj )));
ezplot( fx, 0:1e-3:12*pi )
I don't use x0 =0.1; and I get a warning
Warning: Function failed to evaluate on array inputs; [...]