在Matlab中发布代码时出错
问题描述:
我在Matlab中发布了以下代码,尽管产生了所需的输出,但是随着它的发布,它还产生了一个错误.知道为什么吗?
I published the following code in Matlab, although the desired output was produces, but along with that it also generated an error while publishing. Any idea why?
%% Gaussian kernel function
% Some text
function t0 = kachra(Param)
t0 = Param;
end
已附加为已发布输出.
谢谢
答
发布时,您需要为函数指定一个输入.
You need to specify an input to your function when publishing.
如果选择Edit Publishing Options
,则会看到以下GUI:
If you select Edit Publishing Options
you see the following GUI:
在此处修改您的表达式,然后发布它以便传递输入参数.
Modify your expression here and then publish it in order for input arguments to be passed.