csvファイルを読み込んで、計算をする
显示 更早的评论
C = readcell('long100-300nonnormalizedresult(Ch.1).csv','Range','A2:B1300');%読み込み
%モデル式を立てる
%Y=i+rand(x<=h),Y=j+rand(x>h),
for h=1:1300 %個々の数値設定大事
for i=0:0.01:6
for j=3:0.01:5
sum=0;
for k=1:1300
if k<=h
sum=sum+(C(k,2)-j+0.5*(rand))^2;
else k>h
sum=sum+(C(k,2)-i+0.5*(rand))^2;
end
AIC=[h,i,j,sum];
disp(AIC)
end
end
end
end
'cell' 型の入力引数の演算子 '-' が未定義です。
と出てします。どうすれば位でしょうか。
(やりたいことは、csvファイルの数値に対してAICを計算するということです。
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 cell 配列 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!