Error using tabular/plot
显示 更早的评论
This is my code :
N=2002;
T=1E-6;
Fs=N/T;
V=C2matcap033;
F = Fs*[0:N-1]/N;
t=T*[0:N-1]/N;
figure()
plot(t,V,'LineWidth',3,'r');
grid on;
xlabel('Time (s)')
ylabel('Voltage (mV)')
axis tight
How can i manage this error:
Error using tabular/plot
Too many input arguments.
Error in testtttt (line 11)
plot(t,V,'r','LineWidth',3);
采纳的回答
更多回答(1 个)
dpb
2021-2-10
Named parameters must follow X,Y,linespec triplets.
plot(t,V,'r','LineWidth',3);
instead. Or, alternatively,
plot(t,V,'LineWidth',3,'Color','r');
类别
在 帮助中心 和 File 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!

