How to store a domain in a matrix?
1 次查看(过去 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!