I have this file
strikeLdep5.dat
I want to read this file using function "import_sitefile.m" and plot it.but after reading the file , colomns order get change!
I can't understand why!! could you please tell me why?
the code to plot the data:
clc clear i=5filename = sprintf('strikeLdep%d.dat',i); data = import_sitefile(filename, 22, 2521);x = abs(data(:,8))y = abs(data(:,4))z = linspace(1,10,length(x));scatter(x,y,[],z,'filled')xlabel('Normal Stress') ylabel('Shear Stress')colormap(jet)hc=colorbar('eastoutside');LabelText = 'time';box onxlim([49 52])ylim([24 36])title(sprintf('site%d',i))saveas(gcf,sprintf('siteL%d.png',i))
Best Answer