- #1
quasarLie
- 51
- 0
Hello everyone, I'm trying to make a MATLAB program which read a file.dat and then do a histogram
This what I did
[FONT=PT Sans, san-serif]I want to eliminate all the number = -9.9 present in my clomn (R1), How can i do that? i tried this R1(R1>-9.9) but it doesn't work :p can anyone help me please?
Thanks[/FONT]
This what I did
Matlab:
Data2=importdata('Ma.DAT');
R1=Data2.data(:,17)
R1(R1>-9.9)
L = 0:0.1:8;
histc(R1,L)
bar(L,histc(R1,L),'histc')
xlabel('R1')
ylabel('counts')
Thanks[/FONT]