标题:函数文件
取消只看楼主
huxiaolong
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2007-5-28
 问题点数:0 回复次数:0 
函数文件
怎样才能把M文件放到搜索路径上
function [mean,stdev] = stat(x)
n = length(x);
mean = sum(x)/n;
stdev = sqrt(sum((x-mean).^2/n));
??? function [mean,stdev] = stat(x)
|
Error: Function definitions are not permitted at the prompt or in scripts.
这个编程错在那里,我想了半天也不能想出,请那位大哥教一下
搜索更多相关主题的帖子: 函数 文件 stat prompt 搜索 
2007-07-09 12:29



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-153968-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.393666 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved