astrobear
Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Blog
Search
Discussion
MyPage
Timeline
Context Navigation
Back to VisitMatlab
VisitMatlab
: generatemesh.m
File generatemesh.m,
217 bytes
(added by
Jonathan
,
7 years ago
)
Line
1
function [xx,yy]=generatemesh(data, N)
2
bounds(:,1)=min(data.Vertices,[],1);
3
bounds(:,2)=max(data.Vertices,[],1);
4
[xx,yy]=meshgrid(linspace(bounds(1,1), bounds(1,2), N), linspace(bounds(2,1), bounds(2,2),N));
5
end
Download in other formats:
Original Format