constant in 3d plot?

View: New views
2 Messages — Rating Filter:   Alert me  

constant in 3d plot?

by Huub-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: constant in 3d plot?

by Jaroslav Hajek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 15, 2009 at 2:37 PM, Huub van Niekerk
<huubvanniekerk@...> 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
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave