フィルターのクリア

Error in xlim and ylim?

36 ビュー (過去 30 日間)
Anne Nguyen
Anne Nguyen 2019 年 9 月 29 日
This is the code I have so far:
plot(x,y);
xlabel('Distance (m)');
ylabel('Ball Height (m)');
title('Ball Trajectory');
xlim([0 3]);
ylim([-1 2]);
There is an error saying "Array indices must be positive integers or logical values. Error in task4 (line 21) xlim([0 3]);"
Why is this so? I thought I used the xlim function correctly? How do I fix this? Thank you!

採用された回答

Walter Roberson
Walter Roberson 2019 年 9 月 29 日
At some point you accidentally created a variable named xlim
  3 件のコメント
Cathie Wells
Cathie Wells 2022 年 12 月 14 日
Mine too!
Francesco Bernardini
Francesco Bernardini 2023 年 5 月 18 日
Mine as well!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by