Setting the dimensions of a plot.

How can I make the output plot of a function equal to x maximum and y maximum?

回答 (1 件)

Sad Grad Student
Sad Grad Student 2015 年 2 月 23 日

0 投票

plot(max(x), max(y))

3 件のコメント

Sad Grad Student
Sad Grad Student 2015 年 2 月 23 日
Can you explain what do you mean by "output plot" ? Give an example of input to the function and the expected output.
J
J 2015 年 2 月 23 日
Its for a trajectory function...the graph will always vary due to unlimited possibilities of input. How do I make sure that y and x maximum never exceed the graph dimensions?
Sad Grad Student
Sad Grad Student 2015 年 2 月 23 日
you can always check for conditions by getting the edges of the graphs and comparing those with values of x and y. Perhaps I might be able to help you better if you paste your code here.

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

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

質問済み:

J
J
2015 年 2 月 23 日

コメント済み:

2015 年 2 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by