Results 1 to 3 of 3

Thread: input file for Fortran program data

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2008
    Posts
    53

    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

  2. #2
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: input file for Fortran program data

    Quote 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)

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2008
    Posts
    53

    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
  •  



Click Here to Expand Forum to Full Width