8 views (last 30 days)

I want to plot ReP^2+ImP^2 as function of numero = 5, 10, 15 …145 for each mode(m,n) I would like to have something like this with the name of the mode on each curve. Here is the beginning of my code, anyone can help ?

data = readfile(test.txt)

HeaderLines = 8;

for i=(HeaderLines+1):numel(tm)

%store in temp variable

if isempty(data{i}),continue,end

str=data{i};

line = str2num(str);

....

You can find my file attached.

Thank you in advance,

Opportunities for recent engineering grads.

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

Start Hunting!
## 5 Comments

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/598426-plot-data-from-text-file#comment_1020787

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/598426-plot-data-from-text-file#comment_1020787

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/598426-plot-data-from-text-file#comment_1020802

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/598426-plot-data-from-text-file#comment_1020802

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/598426-plot-data-from-text-file#comment_1020937

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/598426-plot-data-from-text-file#comment_1020937

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/598426-plot-data-from-text-file#comment_1020964

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/598426-plot-data-from-text-file#comment_1020964

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/598426-plot-data-from-text-file#comment_1021015

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/598426-plot-data-from-text-file#comment_1021015

Sign in to comment.