フィルターのクリア

how to plot graph from text data as shown in the image

1 回表示 (過去 30 日間)
sanjiv kumar
sanjiv kumar 2021 年 3 月 6 日
編集済み: KALYAN ACHARJYA 2021 年 3 月 6 日

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 3 月 6 日
編集済み: KALYAN ACHARJYA 2021 年 3 月 6 日
Try this way in MATLAB edit window
%Load the file
A=readmatrix('file.txt');
Get the x and y values
x=A(:,1);
x=A(:,2);
Plot the x and y data
plot(x,y);
Before plotting make sure the lengths of x and y are the same length, if not the same length, then check the data arrangement format within the text file.

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by