help-octave
[Top][All Lists]
Advanced

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

Re: constant in 3d plot?


From: Jaroslav Hajek
Subject: Re: constant in 3d plot?
Date: Thu, 15 Oct 2009 14:47:38 +0200

On Thu, Oct 15, 2009 at 2:37 PM, Huub van Niekerk
<address@hidden> wrote:
> Hi,
>
> I'm trying to plot this: plot3(sin(x),3,cos(x)) and get the message that x,
> y and z must have the same shape. How can I solve this?
>
> Thanks.
>

use `repmat (3, size (x))'

hth
-- 
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


reply via email to

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