Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
plot mirroring over diagonal (transpose)

Subject: plot mirroring over diagonal (transpose)

From: christos25@gmail.com

Date: 15 Dec, 2008 11:19:36

Message: 1 of 4

guys

I have a plot and I would like to produce a second one which is the
transpose of the original.
Of course if it was an image i would just transpose the matrix before
displaying it, however is there any option which I can recreate the
same result for plot ?

thanks
chris

Subject: plot mirroring over diagonal (transpose)

From: Dave Brackett

Date: 15 Dec, 2008 12:52:01

Message: 2 of 4

christos25@gmail.com wrote in message <4e253f28-60ef-4daa-8832-f38cbd0edca0@p2g2000prn.googlegroups.com>...
> guys
>
> I have a plot and I would like to produce a second one which is the
> transpose of the original.
> Of course if it was an image i would just transpose the matrix before
> displaying it, however is there any option which I can recreate the
> same result for plot ?
>
> thanks
> chris
>
>

why can't you transpose the x and y data and then replot?

Subject: plot mirroring over diagonal (transpose)

From: Steve Amphlett

Date: 15 Dec, 2008 13:17:02

Message: 3 of 4

"Dave Brackett" <davebrackett@hotmail.com> wrote in message <gi5jth$mhj$1@fred.mathworks.com>...
> christos25@gmail.com wrote in message <4e253f28-60ef-4daa-8832-f38cbd0edca0@p2g2000prn.googlegroups.com>...
> > guys
> >
> > I have a plot and I would like to produce a second one which is the
> > transpose of the original.
> > Of course if it was an image i would just transpose the matrix before
> > displaying it, however is there any option which I can recreate the
> > same result for plot ?
> >
> > thanks
> > chris
> >
> >
>
> why can't you transpose the x and y data and then replot?

Or just plot and then do a

>> view(90,-90)

Subject: plot mirroring over diagonal (transpose)

From: christos25@gmail.com

Date: 15 Dec, 2008 13:55:08

Message: 4 of 4

Dave

I was plotting a finite element mesh using multiple plots calls (each
vertex plotted independently using hold on), so i was looking for an
option to revert the final output after being produced
silly me, my mind stopped... i ve redefined the coordinates of the
nodes (x <--> y) and as expected , it worked... pfffff
duh!
lol
thanks


On Dec 15, 12:52=A0pm, "Dave Brackett" <davebrack...@hotmail.com> wrote:
> christo...@gmail.com wrote in message <4e253f28-60ef-4daa-8832-f38cbd0ed.=
..@p2g2000prn.googlegroups.com>...
> > guys
>
> > I have a plot and I would like to produce a second one which is the
> > transpose of the original.
> > Of course if it was an image i would just transpose the matrix before
> > displaying it, however is there any option which I can recreate the
> > same result for plot ?
>
> > thanks
> > chris
>
> why can't you transpose the x and y data and then replot

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us