MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 请问如何用矩阵代替符号? (https://www.labfans.com/bbs/showthread.php?t=9340)

ThomasLee 2009-07-29 22:02

请问如何用矩阵代替符号?
 
目的:定义了一个符号阵,和一个给定的数字阵,想用数字阵替换里面的符号

举例:符号阵[x x x x]; 数字阵[1;1;1;1] 想得到的结果是
[1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1]


就这么简单的问题,我觉得不用循环就可以吧?看了下subs的帮助 没说当S和old是符号时怎么替换
请教下各位高手谢谢了


所有时间均为北京时间。现在的时间是 13:59

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.