How to store a domain in a matrix?
조회 수: 2 (최근 30일)
이전 댓글 표시
With this domain:
xcoords=-0.2:0.01:1.2; (numel(xcoords)=141)
ycoords=-0.7:0.1:0.7; (numel(ycoords)=15)
How can i store all the points 2115 points(x,y) of the domain in a an array(2115,2)?
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2014년 4월 11일
xcoords=-0.2:0.01:1.2;
ycoords=-0.7:0.1:0.7;
[x,y]=meshgrid(xcoords,ycoords);
out=[x(:) y(:)];
size(out)
추가 답변 (1개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!