Coordinates In workspace to x1 y1 ,x2 y2
Afficher commentaires plus anciens
I have a variable X= [3,2,4,5] , Y=[5,3,3,6] , similarly many other in my workspace. How do I plot these variables individually. I am using a list box in which all these variables are listed. To plot line X the coordinates would be x1=3, y1=2 ,x2=4 ,y2=5, so how can i convert the 4 element vector(X,Y,..) into a x1,y1,x2,y2 format . thanx in advance
7 commentaires
Walter Roberson
le 25 Jan 2016
The user has a number of four-element vectors, and wants a way to break each four-element vector into variables x1, y1, x2, y2.
Himanshu Tomar
le 25 Jan 2016
Walter Roberson
le 25 Jan 2016
Are they listed by variable name or by content of the variables in the list box? How are you converting the list box selection into the appropriate content?
Himanshu Tomar
le 27 Jan 2016
Walter Roberson
le 27 Jan 2016
I need to see the code that sets the String property of your listbox, and I need to see whatever code uses the Value property of your listbox to decide what is being done.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Line Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!