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!