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!