Hey guys
please anyone can tell me how can I open an input file to save my inputs for Fortran 77 program:confused::confused:
Printable View
Hey guys
please anyone can tell me how can I open an input file to save my inputs for Fortran 77 program:confused::confused:
Have you asked in a Fortran 77 forum?Quote:
Originally Posted by Sallygreen
Hey Guys
I would be grateful if you could have some time to look into my question, I am trying to do density plot (contour or surface or map)from a data file which has 3 columns.........the code below does not shows any errors, but also does not give any figure, I think may be the way I had added the extension manually(.csv......comma separated variables)...is there anyway to export my data in such extension file.....
Code:data = csvread('my_file.csv');
x=data(:,1);
y=data(:,2);
z=data(:,3);
a=size(data);
b=a(:,1);
xlin=linspace(min(x),max(x),b);
ylin=linspace(min(y),max(y),b);
[X,Y]=meshgrid(xlin,ylin);
Z=griddata(x,y,z,X,Y);
mesh(X,Y,Z)
colorbar