Rank: 2549 based on 25 downloads (last 30 days) and 10 files submitted
photo

Renwen Lin

E-mail

Personal Profile:
Professional Interests:
History

 

Watch this Author's files

 

Files Posted by Renwen View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
09 Nov 2012 Screenshot mergecellkey: Merge cell by key mergecellkey: Merge cell by key Author: Renwen Lin data import, merge, cell, join, combine 4 0
08 Oct 2012 Screenshot cell2vars: Transform cell to vars cell2vars: Transform cell's columns' to variables in workplace Author: Renwen Lin data export, measurement, data import, var, mat 4 2
  • 2.0
2.0 | 1 rating
12 Sep 2012 vars2cell % PURPOSE: Convert selected variables in matlab workspace to the cell's columns Author: Renwen Lin data var cell data im... 2 2
15 Jun 2012 strcatrobust: Combine num, char and cell to one cellstr % B = strcatrobust(1, {'a' 'b'},[2 , 3], 't') % B is {'1a2t' '1b3t'}; Author: Renwen Lin data export, data import, str tool, char tool, utility, strcat 1 0
11 Jun 2012 idrepetition: Find the index for the repetition terms in a cell Find the index for the repetition terms in a cell % [ids a] = idrepetition(A) % linrenwen@gmail.co Author: Renwen Lin mathematics, statistics, data export, data import, unique, repetition 2 0
Comments and Ratings by Renwen View all
Updated File Comments Rating
25 Apr 2013 xlsx2matfile: Transform all sheets in xlsx file to mat files % xlsx2matfile(pathxlsx) % xlsx2matfile(pathxlsx, pathmat) Author: Renwen Lin

% usage of the xlsx2matfile function
clc; clear;
pathxlsx = 'E:\test\test.xlsx';
pathmat = 'E:\test';
xlsx2matfile(pathxlsx, pathmat)

13 Jan 2013 EPS Utility Toolbox A set of functions to generate publisher-happy EPS images Author: Kesh Ikuma

It 's great!

But how to support chinese font?

06 Jan 2013 findNsmallest Finds the N smallest values in the input. Very fast. Author: Mattias Karlsson

04 Dec 2012 getTightSubplotHandles Finer control over subplot spacing. Author: Jeremy Manning

03 Oct 2012 Smart PowerPoint Exporter Exports Matlab figures to PowerPoint. Fixes formatting directly in PowerPoint to allow easy editing. Author: Dmitriy Aronov

Comments and Ratings on Renwen's Files View all
Updated File Comment by Comments Rating
25 Apr 2013 xlsx2matfile: Transform all sheets in xlsx file to mat files % xlsx2matfile(pathxlsx) % xlsx2matfile(pathxlsx, pathmat) Author: Renwen Lin Lin, Renwen

% usage of the xlsx2matfile function
clc; clear;
pathxlsx = 'E:\test\test.xlsx';
pathmat = 'E:\test';
xlsx2matfile(pathxlsx, pathmat)

12 Sep 2012 vars2cell % PURPOSE: Convert selected variables in matlab workspace to the cell's columns Author: Renwen Lin Lin, Renwen

Thank you so much! I have modified the example! :) And the update the file.

12 Sep 2012 vars2cell % PURPOSE: Convert selected variables in matlab workspace to the cell's columns Author: Renwen Lin Simon, Jan

I do not understand the posted example. Are "name" and "grade" strings, such that this is meant:
cellB = {'name', 'grade'; 1, 56; 2, 78; NaN, 90}
?

26 Jun 2012 cell2vars: Transform cell to vars cell2vars: Transform cell's columns' to variables in workplace Author: Renwen Lin Lin, Renwen

Thanks so much! I am thinking about your words, and would make adjustment! Thanks again!

26 Jun 2012 cell2vars: Transform cell to vars cell2vars: Transform cell's columns' to variables in workplace Author: Renwen Lin Simon, Jan

It would be helpful if the description contains an example in valid Matlab syntax. Currently I do not understand the input format. It is not clear, why there is a 78 in the inputs, but a 58 in the outputs - a typo? And why does the NaN disappear?
Using ASSIGNIN to inject variables in the caller's workspace can impede the debugging massively: Imagine a variable is called "max". Then in non-debug mode the function max() is used, while in debug mode or in other commands of the EVAL-family the variable "max" is used. Cruel!
In addition the dynamically created variables decrease the processing speed. It would be much better to create a struct: no confusion, no efficiency leaks, no debugging horror.
LENGTH is smarter than MAX(SIZE(X)).
The commented block without any explanation might be meaningful for you, but for FEX users this is confusing only. Keeping code for later times as comments is a "programming anti-pattern": Whenever the code is changed, the programmer has to check if the commented section is concerned, such that deleting it would be better. Comments should support debugging, and not increase the complexity.
"iscellstr(data(:,ii))" wastes the time with creating "data(:,ii)". Better use "iscellstr(data)" once outside the loop.
I think this submission is neither useful nor usable. I cannot check reliably, if it works as advertised, because the weak help text does not define the procedure exactly.

Top Tags Applied by Renwen
data export, data import, is, index, repetition
Files Tagged by Renwen View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
09 Nov 2012 Screenshot mergecellkey: Merge cell by key mergecellkey: Merge cell by key Author: Renwen Lin data import, merge, cell, join, combine 4 0
08 Oct 2012 Screenshot cell2vars: Transform cell to vars cell2vars: Transform cell's columns' to variables in workplace Author: Renwen Lin data export, measurement, data import, var, mat 4 2
  • 2.0
2.0 | 1 rating
12 Sep 2012 vars2cell % PURPOSE: Convert selected variables in matlab workspace to the cell's columns Author: Renwen Lin data var cell data im... 2 2
15 Jun 2012 strcatrobust: Combine num, char and cell to one cellstr % B = strcatrobust(1, {'a' 'b'},[2 , 3], 't') % B is {'1a2t' '1b3t'}; Author: Renwen Lin data export, data import, str tool, char tool, utility, strcat 1 0
11 Jun 2012 idrepetition: Find the index for the repetition terms in a cell Find the index for the repetition terms in a cell % [ids a] = idrepetition(A) % linrenwen@gmail.co Author: Renwen Lin mathematics, statistics, data export, data import, unique, repetition 2 0

Contact us