Output two of three columns from a surf file to a text file

1 view (last 30 days)
Hi,
I am using an equation to create a surf plot. It has a large amount of data points. I would like to output the data to a text file (I need Z and X or Y values but not both, a cross section). Unfortunately when I use
dlmwrite('g.txt',[Y,z],'delimiter', '\t');
Or similar, I get a huge array of numbers which I can't interpret for plotting.
I'd really appreciate any suggestions,
Thanks
  2 Comments
José-Luis
José-Luis on 10 Jun 2014
Edited: José-Luis on 10 Jun 2014
What does size([Y,z]) return? What makes you think the output is wrong?
Pierce
Pierce on 11 Jun 2014
Hi, thanks for your response.
I get a 23mb file with 1000 columns and 1000 rows. The problem is, that I would like these to be for just one (arbitrary) x value. Instead I have no idea whether they are for 1 x value or different x values.
I would like 1 column of 1000 z values and the corresponding column of 1000 Y values for 1 specific x value (would be nice but not necessary to define this value).

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!