Rank: 108632 based on 0 downloads (last 30 days) and 0 file submitted
photo

Greg

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Greg View all
Updated File Comments Rating
19 Feb 2014 Straightforward COPY and PASTE functions Allows very simple manual exchange with other applications through the clipboard. Author: Yvan Lengwiler

Here is my suggestion:

xheaders = x.Properties.VariableNames;
xrownames = x.Properties.RowNames;
xdescr = {x.Properties.Description};
xt = table2cell(x);
if isempty(xrownames)
xrownames=repmat({''},height(x),1);
end
xt=[xdescr,xheaders;xrownames,xt];
if isempty(cat(2,xt{:,1}))
xt(:,1)=[];
end
copy(xt)

Most of the time, for me anyways, the description and row names are blank, and I wouldn't want it copying a blank first column, so that gets removed if they aren't there.

19 Feb 2014 Straightforward COPY and PASTE functions Allows very simple manual exchange with other applications through the clipboard. Author: Yvan Lengwiler

Modified to support copying tables. Add the following lines within the main if/else.

% *** table ***************************
elseif isa(x,'table')
xheaders=x.Properties.VariableNames;
xt=table2cell(x);
copy([xheaders;xt])

06 Dec 2013 barweb (BARgraph With Error Bars) Plots a fully customizable grouped bar graph with error bars Author: Bolu Ajiboye

@Jaroslav Hlinka. Fixed this bug. Changed the plot errors loop to this. Set 'error_sides' to 3.

% Plot erros
for i = 1:numbars
x = get(get(handles.bars(i),'children'), 'xdata');
x = mean(x([1 3],:));

if error_sides == 3
pValues = barvalues;
pValues(pValues<0)=NaN;
nValues = barvalues;
nValues(nValues>0)=NaN;
handles.posErrors(i) = errorbar(x, pValues(:,i), zeros(size(errors(:,i))), errors(:,i), 'k', 'linestyle', 'none', 'linewidth', 2);
handles.negErrors(i) = errorbar(x, nValues(:,i), errors(:,i), zeros(size(errors(:,i))), 'k', 'linestyle', 'none', 'linewidth', 2);
else
handles.errors(i) = errorbar(x, barvalues(:,i), errors(:,i), 'k', 'linestyle', 'none', 'linewidth', 2);
end
ymax = max([ymax; barvalues(:,i)+errors(:,i)]);
end

03 Oct 2013 CSVIMPORT CSVIMPORT reads the specified CSV file and stores the contents in a cell array or matrix. Author: Ashish Sadanandan

Added support for commas that are in between double quotes. so that they stay in one cell. First it replaces commas than are not in between quotes to semicolons, then splits by semicolons. Then removes the quotes. Starts at line 246 (the main for loop)

rowData = fgetl( fid );
if isempty( rowData )
emptyRowsIdx = [emptyRowsIdx(:); ii];
continue
end
%*** added by GSS
repIdx = regexp(rowData, '(?:^|,)(?:"((?:[^"]|"")*)"|([^",]*))');
rowData(repIdx(2:end))=';';
rowData = regexp(rowData,';','split');
for j=1:length(rowData)
if ~isempty(rowData{j}) && rowData{j}(1)=='"'
rowData{j}(1)=[];
rowData{j}(end)=[];
end
end
%****end GSS
nDataElems = numel( rowData );

24 Apr 2013 MGraph Probabilistic graphical models for reconstruction of genetic regulatory networks using DNA microarra Author: junbai wang

This is useless without documentation. What should the format be of the input file for the graphical gaussian model?

Contact us