フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

problem in using plot function

2 ビュー (過去 30 日間)
anas qazaz
anas qazaz 2013 年 5 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
hi,all i want plot time axes from 1 to 5 second against theta axes from 5 to 90 but i get error t=[1:0.25:5]; >> th=[5:5:90]; >> plot(t,th) ??? Error using ==> plot Vectors must be the same lengths.
>>how i can overcome this error thanks in advance

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 5 月 18 日
編集済み: Azzi Abdelmalek 2013 年 5 月 18 日
Type
numel(th) % result is 17
numel(t) % result is 18
the two vectors must have the same number of elements
Try this now
t=1:0.25:5;
th=5:5:numel(t)*5;
plot(t,th)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by