mat-lab function take two numbers return nxn matrix
显示 更早的评论
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 个评论
tamara salah
2018-4-22
tamara salah
2018-4-22
编辑:Walter Roberson
2018-4-22
tamara salah
2018-4-22
Walter Roberson
2018-4-22
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.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Linear Algebra 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!