|
-
Nov 6th, 2008, 11:22 AM
#1
Thread Starter
Member
input file for Fortran program data
Hey guys
please anyone can tell me how can I open an input file to save my inputs for Fortran 77 program
-
Dec 2nd, 2008, 12:10 PM
#2
Re: input file for Fortran program data
 Originally Posted by Sallygreen
Hey guys
please anyone can tell me how can I open an input file to save my inputs for Fortran 77 program  
Have you asked in a Fortran 77 forum?
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Mar 26th, 2009, 12:43 PM
#3
Thread Starter
Member
Re: input file for Fortran program data
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|