What’s wrong?
1 回表示 (過去 30 日間)
古いコメントを表示
what am i doing wrong? plot not showing up. the t&v is in parenthesis
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/518012/image.jpeg)
2 件のコメント
Kevin Barkett
2021 年 2 月 12 日
Hi there,
It looks like the parenthesis of the variable 't' should not encapsulate that first colon, and also the arguments for the plot command should be contained within parenthesis. Try:
t = 0:(1/6000):(1/30);
v = (4*cos((120*pi*t)+(pi/3)));
plot(t,v);
Cheers, Kevin
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!