2 CommentsOldest to Newest
I have determined a programmatic way to do the same. I welcome comments on this approach.
load('data.mat') newRow = cellfun(@(x)(cast(,class(x))),data(1,:),'UniformOutput',false) data = cat(1,data,newRow)
There are many ways to do things in MATLAB and other languages. I tend to prefer code that is easiest to read as my first metric. It is good to know of more robust, if not more cryptic, techniques. There are places where your solution would be much better.
Thanks for adding it.