how to plot two-column text file of the energy spectra
Ältere Kommentare anzeigen
Dear all,
as attached is a two-column text file of the energy spectra. anyone can help me to plot it?
4 Kommentare
dpb
am 27 Mai 2023
Not a lot can do easily here w/ zip file; attach the text file itself -- just enough to see the format if it's other than just numbers.
What have you tried; where did you have a problem, specifically?
mohd akmal masud
am 27 Mai 2023
At least one is a binary file. What is the format? What are we supposed to do with it?
Uzip1 = unzip('point1.zip')
Uzip2 = unzip('point.zip')
Uzip3 = unzip('point1 (2).zip')
type(Uzip1{1})
fidi1 = fopen(Uzip1{1})
A = fread(fidi1, [128 2], 'double')
figure
plot(A(:,1), A(:,2), '.-')
.
mohd akmal masud
am 28 Mai 2023
Akzeptierte Antwort
Weitere Antworten (1)
data=readmatrix('point1.prn.xlsx');
whos data
plot(data(:,1),data(:,2))
Seems easy enough...
1 Kommentar
mohd akmal masud
am 30 Jun. 2023
Kategorien
Mehr zu Language Support finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


