|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <ikqou9$dsn$1@fred.mathworks.com>...
> "Jane" wrote in message <ikqnuo$9th$1@fred.mathworks.com>...
> > "Jane" wrote in message <ikqkn4$avq$1@fred.mathworks.com>...
> > > Hi,
> > >
> > > Can I change 3D plots so that the Y axis is up instead of the Z? I can only find reverse direction but I want to change the orientation.
> > >
> > > Thanks
> >
> > I think I need to use Camera orientation functions but I am not sure how to set it up properly.
>
> What's wrong with setting Matlab z-axis with your y-data?
>
> [X Y]=meshgrid(1:50,1:50);
> Z=peaks(50);
>
> surf(Z,X,Y)
> xlabel('z');
> ylabel('x');
> zlabel('y');
>
> % Bruno
Hi,
When I replace the y with the z matlab plots the data as if it was sideways instead of facing upwards because i think the orginal orientation is y upwards and not z. hope this makes sense.
|