MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   Mathematica论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=34)
-   -   [问题] mathematica如何通过函数对变量实现值传递 (https://www.labfans.com/bbs/showthread.php?t=21298)

Fire_Ma 2019-04-02 23:16

mathematica如何通过函数对变量实现值传递
 
设函数f[x_MatrixQ]:=x[[2,2]]=2,A为任意一个矩阵,如果在不多设变量的情况下,如何利用f将A的第二行第二列元素变为2?有没有像C语言利用指针进行值传递修改自变量值的方法?


所有时间均为北京时间。现在的时间是 05:25

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