how to put scalebar

9 ビュー (過去 30 日間)
Narges Raee
Narges Raee 2022 年 7 月 8 日
回答済み: Praveen Reddy 2023 年 8 月 30 日
hi,
to create a scalebar I came here!
I have downloaded the function and run it :
it gives me the error of:
Error using scalebar (line 129)
The Axes property DataAspectRatio must be set to [1 1 1]
then I tried to change DataAspectRatio to [1 1 1] by adding this line to the code:
DataAspectRatio = [1 1 1];
and run the code but again I have got the very same error!
I am not sure what is wrong.
It would be great if I can get an example of the inputs of the function.
thank you very much,
Narges
  1 件のコメント
GandaBerunda
GandaBerunda 2022 年 7 月 8 日
Hi,
By downloading a function do you mean you downloaded a function from Matlab Central? If yes, can you share the link from which you downloaded?

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

回答 (1 件)

Praveen Reddy
Praveen Reddy 2023 年 8 月 30 日
Hi Narges,
I understand that you have downloaded a function from the MATLAB File Exchange for creating a scalebar and are facing the error “Axes property DataAspectRatio must be set to [1 1 1]. Can you please share the file exchange information that is being used?
For creating scalebars, I suggest you try the following MATLAB File Exchange resources:

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by