help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:Error invalid concatenation of cell array with matrix


From: Wang S
Subject: Re:Error invalid concatenation of cell array with matrix
Date: Sat, 4 Jan 2014 12:16:23 +0800

Which version of Octave was running?
In Octave 3.6.x versions, "cat(2,{'.','..'},ignore_dirs);" works without error.

A workaround may be "{'.', '..', ignore_dirs{:}};".
 
Regards,
Wang S

------------------ Original ------------------
From:  "syed khalid"<address@hidden>;
Date:  Fri, Jan 3, 2014 01:27 AM
To:  "help"<address@hidden>; 

Subject:  Error invalid concatenation of cell array with matrix

 
I am getting the above error where executing the line with ---->>

Is there a workaround or fix....

if ~exist('ignore_dirs', 'var')
    ignore_dirs = {};
end
--->>> ignore_dirs_full = cat(2,{'.','..'},ignore_dirs);
  dirData  = dir('/home/syedk/OCT/LIDC');      %# Get the data for the current 
directory
  dirIndex = [dirData.isdir];   %# Find the index for directories
  fileList = {dirData(~dirIndex).name}';  %# Get a list of the files


-- 
Syed Khalid
 

 
1-408-655-1096

reply via email to

[Prev in Thread] Current Thread [Next in Thread]