Error using tabular/plot
Show older comments
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);
Accepted Answer
More Answers (1)
dpb
on 10 Feb 2021
Named parameters must follow X,Y,linespec triplets.
plot(t,V,'r','LineWidth',3);
instead. Or, alternatively,
plot(t,V,'LineWidth',3,'Color','r');
1 Comment
nurul auni
on 14 Feb 2021
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
