mat-lab function take two numbers return nxn matrix
Afficher commentaires plus anciens
a getCoords() function that prompts the user for the x- and y-coordinates for the two endpoints for the five line segments returns it as 5-by-4 matrix of points?
5 commentaires
tamara salah
le 22 Avr 2018
tamara salah
le 22 Avr 2018
Modifié(e) : Walter Roberson
le 22 Avr 2018
tamara salah
le 22 Avr 2018
Walter Roberson
le 22 Avr 2018
What is num() ?
What are x, y, c, and so on, that you are passing to getcroods?
Note: inputdlg() returns a cell array of character vectors, so your
a= inputdlg('enter x coordinates','test',n);
xpt=matrix(a{1});
would be attempting to index matrix at a character vector. Indexing at a character vector is permitted and has good uses, but most of the time if you index by a character vector you have probably done something wrong.
Réponses (0)
Catégories
En savoir plus sur Linear Algebra 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!