help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading text file data into matrices for selective plotting


From: Doug Stewart
Subject: Re: Reading text file data into matrices for selective plotting
Date: Wed, 8 Jun 2011 16:39:53 -0400



On Wed, Jun 8, 2011 at 3:54 PM, usagi713 <address@hidden> wrote:
surf(x,y,z) produces a blank graph and gives the following errors:

error: surface: rows (z) must be the same as length (y) and columns (z) must
be the same as length (x)
error: called from:
error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\surface.m at line
111, column 9
error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\surface.m at line
51, column 5
error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\surf.m at line
47, column 5

meshgrid(x,y,z) produces a large array of values that look like they might
have some connection to the original matrix but I am not entirely sure how.

--
use meshgrid to make a new xx and yy
and use the new xx and yy in the surf

see help surf and help meshgrid
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]