csvファイルを読み込んで、計算をする
Afficher commentaires plus anciens
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を計算するということです。
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur cell 配列 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!