我如何声明一个变量吗trix of any size?

15 views (last 30 days)
Brian
Brian on 19 Apr 2013
Hi,
I need to export geometry from the PDE toolbox without using the menu at the top (using command line). When I use decsg, gd is undefined. I have tried using sym gd, that didn't work. When setting up zero matrices, the index exceeds dimensions. I know this is a basic question, I can't find the answer in the forum or online.
Thanks in advance

Answers (1)

Shaun VanWeelden
Shaun VanWeelden on 19 Apr 2013
如果您可以为我们提供您现在正在尝试的确切代码,那真的很有帮助。无论您拥有哪种工具箱,零(您的矩阵尺寸)都可以正常工作。除非您的问题是关于拥有未知数的输出变量。
If you know the number of output variables, like if I wanted to find the size of a 2-d matrix I would do something like this [numRows, numCols]=size(twoDmatrix);
同样,您可以为具有多个变量的输出做到这一点。
如果您不知道输出VAR的#,它会变得更加复杂,但是我记得以某种方式能够捕获单元格数组中的所有内容,我认为使用交易功能或类似的东西。
4条评论
Ruben Gavín Mulelro
Ruben Gavín Mulelro on 26 May 2021
Hello Brian,
It is not possible to use gd function if the geometry is not exported before.
I have the same problem. I am not able to export the geometry automatically, so I can't reach to resolve the problem for different dimensions.
Tell me something If you finally achieve it.
Thank you

Sign in to comment.

下载188bet金宝搏

Community Treasure Hunt

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

开始狩猎!