MATLAB Answers

How can I get desired shape from data in text files?

2 ビュー (過去 30 日間)
Bhargav Anand Chebolu
Bhargav Anand Chebolu 2020 年 6 月 26 日
回答済み: Kavya Vuriti 2020 年 6 月 30 日
I have some text files in a folder. I generated a graph from those textfiles which has some shapes. I attached the graph. I want to know which textfiles are refered to round shapes in the graph and then I would like to know the radius and area of that round shapes. Can anyone help me with this? Thanks.

  0 件のコメント

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

回答 (1 件)

Kavya Vuriti
Kavya Vuriti 2020 年 6 月 30 日
Hi,
Assuming you are looping through text files, fetching data and plotting them, I would suggest adding legends to the axes to distinguish plots from different files(data). Here is the detailed documentation of adding legents while plotting different data.
To find area under plot, you can try using trapz function.

  0 件のコメント

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

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by