Hi there
The goal of this loop is to plot the value of A over a defined set of angles values al.
I believe the integrating function is giving the following error:
Error using symengine
Invalid argument.
Error in sym/int (line 162)
rSym = mupadmex('symobj::intdef',f.s,x.s,a.s,b.s,options);
Is there a way to integrate a and gradually plot the values from an array?
I hope this makes sense
syms xB=(pi-asin(1/2))al=asin(1/2):0.001:B;V=200*sin(x);i=1;for i=al(i) F=double(subs(100*2*pi+int(V,x,al,B)-100*(B-al))) Vdc=F/(2*pi); A=(Vdc-100)/2 plot(al,A) i=i+1end
Best Answer