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:
3 Matrix and 1 curve

Subject: 3 Matrix and 1 curve

From: Juan

Date: 14 Nov, 2010 21:42:03

Message: 1 of 5

Ive got 3 matrix and i want to create a new curve from them.

http://www.equalis.com/resource/dynamic/forums/20101114_112114_12941.png

The blue lines are the graph i want.

Ive done this:

angf = [40;42;44;46;40;42;44;46;40;42;44;46;40;42;44;46] ;
angt = [35;35;35;35;37;37;37;37;39;39;39;39;41;41;41;41] ;
dist = [6.22;0.15;0;0;9.62;5.63;0.67;0;12.93;9.35;5.56;1.1;16.64;12.48;8.88;5.26]

What should i do next, to get the curve for d=1

Subject: 3 Matrix and 1 curve

From: ImageAnalyst

Date: 14 Nov, 2010 23:59:17

Message: 2 of 5

You can do a scatter plot to put up the dots, but I have no idea how
those blue lines were plotted. Do you have an equation for them?

Finally, what on earth is d? You just suddenly mention d when it
appears nowhere in your post or on the figure you uploaded.

Subject: 3 Matrix and 1 curve

From: Roger Stafford

Date: 15 Nov, 2010 00:39:03

Message: 3 of 5

"Juan " <asdfchanta@gmail.com> wrote in message <ibpl3b$lga$1@fred.mathworks.com>...
> Ive got 3 matrix and i want to create a new curve from them.
>
> http://www.equalis.com/resource/dynamic/forums/20101114_112114_12941.png
>
> The blue lines are the graph i want.
>
> Ive done this:
>
> angf = [40;42;44;46;40;42;44;46;40;42;44;46;40;42;44;46] ;
> angt = [35;35;35;35;37;37;37;37;39;39;39;39;41;41;41;41] ;
> dist = [6.22;0.15;0;0;9.62;5.63;0.67;0;12.93;9.35;5.56;1.1;16.64;12.48;8.88;5.26]
>
> What should i do next, to get the curve for d=1
- - - - - - - - - -
  I would guess that the "blue lines" you refer are obtained using matlab's 'contour' function. The 'angf', 'anft', and 'dist' vectors are its inputs, along with the desired contour levels.

Roger Stafford

Subject: 3 Matrix and 1 curve

From: Juan

Date: 16 Nov, 2010 01:22:04

Message: 4 of 5

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <7a759e48-72c2-4d9c-ae24-7fb9d0906975@k11g2000vbf.googlegroups.com>...
> You can do a scatter plot to put up the dots, but I have no idea how
> those blue lines were plotted. Do you have an equation for them?
>
> Finally, what on earth is d? You just suddenly mention d when it
> appears nowhere in your post or on the figure you uploaded.
sorry, d is dist. The blue lines are for example, for dist=1, 2

So you can then find out what angf and angt are for dist =1

Subject: 3 Matrix and 1 curve

From: Delacruz28Myra

Date: 22 Jan, 2011 05:59:14

Message: 5 of 5

I received my first <a href="http://bestfinance-blog.com">loans</a> when I was very young and it helped me very much. But, I require the bank loan once more time.

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