Plot 2d line from matrix data

14 visualizzazioni (ultimi 30 giorni)
Italy
Italy il 6 Mar 2013
Hey,
I have 2d matrix data (100X2) and I want to plot line from it.
For example: each row is one point, (1,1) = X & (1,2) = Y. From all those 100 points I want to draw a line.
10x,
Itay

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 6 Mar 2013
Modificato: Azzi Abdelmalek il 6 Mar 2013
plot(A(:,1),A(:,2))
Example
A=[1:100;rand(1,100)]'
plot(A(:,1),A(:,2))
  3 Commenti
Jan
Jan il 6 Mar 2013
What does "10x" mean?
Rozh Al-Mashhdi
Rozh Al-Mashhdi il 7 Gen 2018
I think 10x is some slang/shorthand for "thanks" (tenx)

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by