我在使用情节方面有个问题……我为什么要提出这个问题?Plot (x1,y1,color1,x2,y2,color2…)它看起来是真的,但不是真的。帮助! !
度= app.Switch.Value;
一个= app.genlik_edit.Value;
b = app.frekans_edit.Value;
c = app.direnc_edit.Value;
f = 1 / b;
t1 = linspace (0 f (256);
t3 = linspace (f / 2, f, 256);
v = a * sin (2 b *π* * t1);
v1 = c * sin (2 b *π* * t1);
Rect_v = v > 0;
anrect_v = v < 0;
rect_v1 = v1> 0;
l = v * 0;
if (deger=="Yarım dalga doğrultucu")
情节(app.UIAxes1 t1 (rect_v), v (rect_v),“颜色”,(1,0,0),t3, l,“颜色”,(1,0,0)t1 (anrect_v), v (anrect_v),“颜色”,[0,0,1]);
情节(app.UIAxes2 t1 (rect_v), v1 (rect_v), t3, l,“颜色”,(0,1,0));
其他的
情节(app.UIAxes1 t1 (anrect_v), v (anrect_v), t1, abs (v));
情节(app.UIAxes2 t1、abs (v1),“颜色”,(0,1,0));
结束