plotting a piecewise function-help

1 次查看(过去 30 天)
B
B 2015-3-31
I want to plot Vl versus vs
function Vl= piecewisefunnn(vs); vs1 = vs>0.6; Vl(vs1)=(vs(vs1)-0.6); vs2 =(vs<0.6 & vs==0.6); Vl(vs2) = 0; vs= -20:20; plot(vs,Vl(vs)) end
thanx for your help

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by