MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   在Matlab中调用函数时,如何将结果输出到原始文件中的矩阵中? (https://www.labfans.com/bbs/showthread.php?t=26436)

poster 2019-12-14 20:13

在Matlab中调用函数时,如何将结果输出到原始文件中的矩阵中?
 
基本上,我想调用一个我编写的函数,由于结果量很大,我希望该函数将其解决方案输出到一个矩阵中,该矩阵传递给调用它的程序。



[B]回答:[/B]

您可以在脚本顶部的函数声明中定义函数的输出:

function [output] = myFunction(input) 您需要做的就是在脚本中的某个位置定义output变量。



[url=https://stackoverflow.com/questions/5119587]更多&回答...[/url]


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

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