Jonathan, to use sshfrommatlab.m with a private/public key you can try this one:
remove/comment the following lines:
% isAuthenticated = channel.authenticateWithPassword(userName,password);
% if(~isAuthenticated)
% error...
% (['Error: SSHFROMMATLAB could not authenticate the',...
% ' SSH connection...']);
% end
Adding this code to the end of the function makes a variable for each column. The name is taken from the first (header) row
data = MM;
clear MM;
for i=1:size(data,2)
cmd = ['MM.' data{1,i} ' = data(2:end,' num2str(i) ');'];
eval(cmd);
end
4
19 Mar 2009
robustreadcsv
CSVREAD for files with varying number of cols.
robustreadcsv
CSVREAD for files with varying number of cols.
Michael Koelemay
This function is indeed really great, and robust.
I added 1 line to hugely boost performance by preallocating the output array "MM". To do this, just add this line right before the "for" loop:
MM=cell(length(M),max(cellfun(@length,regexp(M,','))));
5
17 Feb 2006
robustreadcsv
CSVREAD for files with varying number of cols.
Chris Zhou
Excellent reader, but consume too much memory for large files
5
15 Jan 2006
robustreadcsv
CSVREAD for files with varying number of cols.