Vectorized Meshgrid

버전 1.0.0.0 (5.12 KB) 작성자: Ioannis Filippidis
Conversions between N-D rectangular domain, meshgrid and matrix of column vectors
다운로드 수: 1.4K
업데이트 날짜: 2012/2/11

라이선스 보기

This is a set of functions to convert between different representations of a grid. The motivation comes from the incompatibility of meshgrid matrices with vector functions that take a matrix of column vectors as argument.

There are three representations:
1) domain (i.e., an N-dimensional rectangular domain),
2) meshgrid matrices (e.g. X, Y needed by surf) and
3) matrix of column vectors (i.e., [v1, v2, ..., vM] where vi=[#dim x 1] ).

The functions provided here can generate a meshgrid from a domain, convert that to a matrix of column vectors for use with a vectorized function and then convert the results back to meshgrid representation.

For example, you can start with a 2D domain, convert that directly to a matrix of vectors q, calculate a row vector z = f(q) for a surface using some vectorized scalar function f, convert that to meshgrid coordinate matrix Z and plot it using surf. For example code, see test_vectorized_surf_plot.

인용 양식

Ioannis Filippidis (2024). Vectorized Meshgrid (https://www.mathworks.com/matlabcentral/fileexchange/35036-vectorized-meshgrid), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2011b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0