Link to home
Start Free TrialLog in
Avatar of Puneet Arora
Puneet AroraFlag for India

asked on

Store Double Values in Cell Array in Matlab

Please check the code attached ,, Kind Help me find a way to store
 histogram values of Images about (200) in a variable

I m trying to store in variable called Hists1 in the code ... I have referred to this link also

http://www.mathworks.in/help/techdoc/matlab_prog/br04bw6-98.html
clc;
clear all;
close all;

% load model1Hist.mat 

 files1 = cell(1,200);
 Hists1 = cell(1,200,rand(11,11,11));
 
 dirpath = 'D:\pinder\Sar\FinalDay\SarData';
 dirInfo = dir(dirpath);
 isDir = [dirInfo.isdir];
 AllSARfiles = {dirInfo(~isDir).name}; 
 
%   Hist = zeros(11,11,11);
  
 
 Path2Save = 'D:\pinder\Sar\FinalDay\SarData\';
 
 
 
 
 
 for i=1:numel(AllSARfiles)
        
      filename = AllSARfiles(i);
  
      if strcmp('Thumbs.db',filename)
      
      else 
        
     files1(i) = strcat(Path2Save,filename);
     fn = files1{1,i};
      
     [Hists1(i) , RGBt] = getImageHists(fn);
     
     
        
      end 
      
      
%      
      
        
 end

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Puneet Arora
Puneet Arora
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Puneet Arora

ASKER

I myself have  solved it ...correctly
Avatar of Maen Abu-Tabanjeh