Is there a way to achieve the same result as the xlim, ylim functions using different functions?

2 ビュー (過去 30 日間)
E
E 2022 年 10 月 21 日
コメント済み: Cris LaPierre 2022 年 10 月 21 日
Hello, i was wondering if there is a way to achieve the same result as xlim, and ylim with a different set of functions? I have been trying to acheive the same result in a different way, but i cant figure out how.
  12 件のコメント
dpb
dpb 2022 年 10 月 21 日
I was unaware of that, @Cris LaPierre; will have to remember when subject arises again. Had to follow link to learn what "MOOCS" meant... :)
Cris LaPierre
Cris LaPierre 2022 年 10 月 21 日
Good point. For others who are not aware, it stands for Massive Open Online Courses. These courses tend to have a free or audit version, meaning they are open to anyone. There is typically a fee required to access graded content.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 10 月 21 日
xlim and ylim work by setting the XLim and YLim properties of the current axes.
There are three major ways of setting properties:
  • using set(), which can potentially set multiple properties for multiple objects
  • using dot notation and assignment such as ax.XLim = 'auto'; only one property can be set for one object
  • using convenience functions such as xlim() that are implemented internally using one of the above methods

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by