开发者

MATLAB's 'meshgrid' in C

开发者 https://www.devze.com 2023-03-11 00:37 出处:网络
i like to use a library or function in C开发者_JAVA技巧 which could perform the same function as performed by meshgrid in MATLAB.

i like to use a library or function in C开发者_JAVA技巧 which could perform the same function as performed by meshgrid in MATLAB.

looking for support.


I don't see why you need a function or library for this.

This says "[X,Y] = meshgrid(x,y) transforms the domain specified by vectors x and y into arrays X and Y, which can be used to evaluate functions of two variables"

If the vector is something like "a:b" then you can use a for statement to create the appropriate matrix.

If you post more details then maybe we can help you more!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号