How can show 2D plot of 3 file data analysis and show effect of change ?

1 Ansicht (letzte 30 Tage)
salim
salim am 25 Dez. 2024
Beantwortet: Walter Roberson am 25 Dez. 2024
i want to show effect of noise in 3 different data analysis .txt How i can show that like the image below?

Antworten (1)

Walter Roberson
Walter Roberson am 25 Dez. 2024
S = fileread('ST1.txt');
S = regexprep(S, '\*I', '');
S(1:100)
ans =
'1 1 0.+0. 1 2 0.+0. 1 3 0.+0. 1 4 0.+0. 1 5 0.+0. 1 6 0.-0. 1 7 0.-0. 1 8 0.-0. 1 9 0.-0. 1'
ST1data = cell2mat(textscan(S, '%f %f %f%f'));
ST1 = reshape(ST1data(:,3)+ST1data(:,4)*1i, 101, 101).';
surf(real(ST1)); title('real')
surf(imag(ST1)); title('imag')
surf(abs(ST1)); title('abs')
In summary: NO, that data does not look anything like those plots, and you can't get there from here.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by