# how can store multiple value in a matrix??

조회 수: 3(최근 30일)
Sahar abdalah 2015년 5월 12일
댓글: Sahar abdalah 2015년 5월 12일
hello everyone, I am new in matlab and I need help. in my program below, I am trying to merge two classifiers and I want to store the value of the varaible class_fusion in a matrix for each value of i. How can do it please ??
%%%%%%%%programme prinipale%%%%%%%
nbclasse=1000;
produit=classifieur1.*classifieur2;
[proba,order]=sort(produit,2,'descend');
for i=1:nbclasse
prob1=classifieur1(i,[teta])
prob2=classifieur2(i,[teta])
comb_mass=main([m1' m2'],1);
class_fusion=decision(comb_mass',4)
end

댓글을 달려면 로그인하십시오.

### 채택된 답변

David Sanchez 2015년 5월 12일
nbclasse=1000;
produit=classifieur1.*classifieur2;
[proba,order]=sort(produit,2,'descend');
class_fussion = zeros(nbclasse,1);
for i=1:nbclasse
prob1=classifieur1(i,[teta])
prob2=classifieur2(i,[teta])
comb_mass=main([m1' m2'],1);
% SAVE YOUR DATA INTO THE MATRIX
class_fusion(i) = decision(comb_mass',4)
end
##### 댓글 수: 1표시숨기기 없음
Sahar abdalah 2015년 5월 12일
thanks for your response and if I want to save also the variable comb_mass and teta, how can do it?

댓글을 달려면 로그인하십시오.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by