Rank: 1377 based on 46 downloads (last 30 days) and 5 files submitted
photo

Sung Soo Kim

E-mail

Personal Profile:
Professional Interests:
Neuroscience

 

Watch this Author's files

 

Files Posted by Sung Soo View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Oct 2011 Screenshot Project Manager Open/close m-files and change the current path with one click, across your different projects. Author: Sung Soo Kim manager, project, project manager, files, open, close 6 4
25 Sep 2011 Tip: calling subfunctions from outside m-file (Final) Calling/debugging subfunctions or writing large subfunctions is straight forward with this trick. Author: Sung Soo Kim call, eval, varargin, subfunction, varargout, function handle 7 5
  • 3.5
3.5 | 2 ratings
19 Jun 2009 Screenshot Simple bar plot with errorbars in 3D Simple bar plot with errorbars in 3D. Author: Sung Soo Kim 3d, 2d, errorbar, bar 3 0
04 Mar 2009 LARS algorithm Pure vanilla implementation of LARS algorithm. Author: Sung Soo Kim lars, l1 norm, statistics, lasso 29 1
03 Mar 2009 Patch for XTargets MUnit Patch for later versions of MATLAB Author: Sung Soo Kim munit, patch, unit testing, xtargets, unit test, xunit 1 1
Comments and Ratings by Sung Soo View all
Updated File Comments Rating
26 Sep 2011 Project Manager Open/close m-files and change the current path with one click, across your different projects. Author: Sung Soo Kim

The sample 'proj 1' shortcut contains the following script.

pm('save_project')
pm('open_project', 'you project file.mat')

pm does not save your current project. But if you want that functionality, you can do that very easily by modifying this shortcut like:

save workspace
clear
pm('save_project')
pm('open_project', 'you project file.mat')
load workspace

You can further optimize this shortcut as you want. For example, if you want to use the name of the current project for your workspace saving,

[~,name] = fileparts(pm('current_project'));
save([name,'_workspace.mat'])
clear
pm('save_project')
pm('open_project', 'you project file.mat')
[~,name] = fileparts(pm('current_project'));
load([name,'_workspace.mat'])

and so on.

23 Sep 2011 Project Manager Open/close m-files and change the current path with one click, across your different projects. Author: Sung Soo Kim

There is a minor bug. To install pm, you need to have at least one document opened (any document is OK including untitled one). Otherwise, pm installer will say your system is not compatible. But, it actually works very well in R2011a/b. This bug will be fixed and uploaded soon.

14 Jul 2011 Project Manager Open/close m-files and change the current path with one click, across your different projects. Author: Sung Soo Kim

Thanks for your comment.
I found the same problem just now in my new version of Matlab. It turned out that Mathworks changed some internal JAVA class methods manipulating the editor. I need to figure out what kinds of methods I can use. If I'm done, I'll update it.
Thanks again.

28 Feb 2009 Tip: calling subfunctions from outside m-file (Final) Calling/debugging subfunctions or writing large subfunctions is straight forward with this trick. Author: Sung Soo Kim

@us
Thank you very much for you comments. I learned a lot about mlint and regexp from your simple codes. I really wanted this kind of productive communication. Let me upload my 'hopefully' final version soon, which is also inspired by you too. :)

26 Feb 2009 Tip: calling subfunctions from outside m-file (Final) Calling/debugging subfunctions or writing large subfunctions is straight forward with this trick. Author: Sung Soo Kim

@us
I tried your solution and found one negligible drawback, which is that you have to add each function's name in the top function and you have to make a handle in the command line whenever you want to use the function in a different namespace. This is still true when I use a class. But still I think your solution is more elegant because it does not use 'eval' which I don't like either.

Comments and Ratings on Sung Soo's Files View all
Updated File Comment by Comments Rating
13 Oct 2011 LARS algorithm Pure vanilla implementation of LARS algorithm. Author: Sung Soo Kim Kim, Sung Soo

The Matlab R2011a implemented a great function called 'lasso' in the Statistical Toolbox. If you have the Statistical Toolbox, use 'lasso'.

You may still use my function as a study purpose or when you don't have the statistical toolbox.

26 Sep 2011 Project Manager Open/close m-files and change the current path with one click, across your different projects. Author: Sung Soo Kim Kim, Sung Soo

The sample 'proj 1' shortcut contains the following script.

pm('save_project')
pm('open_project', 'you project file.mat')

pm does not save your current project. But if you want that functionality, you can do that very easily by modifying this shortcut like:

save workspace
clear
pm('save_project')
pm('open_project', 'you project file.mat')
load workspace

You can further optimize this shortcut as you want. For example, if you want to use the name of the current project for your workspace saving,

[~,name] = fileparts(pm('current_project'));
save([name,'_workspace.mat'])
clear
pm('save_project')
pm('open_project', 'you project file.mat')
[~,name] = fileparts(pm('current_project'));
load([name,'_workspace.mat'])

and so on.

23 Sep 2011 Project Manager Open/close m-files and change the current path with one click, across your different projects. Author: Sung Soo Kim Kim, Sung Soo

There is a minor bug. To install pm, you need to have at least one document opened (any document is OK including untitled one). Otherwise, pm installer will say your system is not compatible. But, it actually works very well in R2011a/b. This bug will be fixed and uploaded soon.

14 Jul 2011 Project Manager Open/close m-files and change the current path with one click, across your different projects. Author: Sung Soo Kim Kim, Sung Soo

Thanks for your comment.
I found the same problem just now in my new version of Matlab. It turned out that Mathworks changed some internal JAVA class methods manipulating the editor. I need to figure out what kinds of methods I can use. If I'm done, I'll update it.
Thanks again.

07 Jul 2011 Project Manager Open/close m-files and change the current path with one click, across your different projects. Author: Sung Soo Kim Holtschlag, David

The project management idea is a great concept. It would be very helpful if the Mathworks implemented this capability in its software. Until then, I thought I'd give 'pm' a try. I'm running Matlab v. 7.12 on Windows XP 64-bit computer. Running "pm" from the command line produced the following results. My computer is pretty well locked down, so it may be a permissions issue.

>> pm
 
=========================================================
Checking editor services...
Cannot use com.mathworks.mlservices.MLEditorServices.builtinGetOpenDocumentNames
Sorry. You cannot use pm.m
Cannot use com.mathworks.mlservices.MLEditorServices.isDocumentDirty
Sorry. You cannot use pm.m
Cannot use com.mathworks.mlservices.MLEditorServices.builtinGetActiveDocument
Sorry. You cannot use pm.m
=========================================================
 
Sorry. You cannot use pm.m

Top Tags Applied by Sung Soo
2d, 3d, bar, call, close
Files Tagged by Sung Soo View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Oct 2011 Screenshot Project Manager Open/close m-files and change the current path with one click, across your different projects. Author: Sung Soo Kim manager, project, project manager, files, open, close 6 4
25 Sep 2011 Tip: calling subfunctions from outside m-file (Final) Calling/debugging subfunctions or writing large subfunctions is straight forward with this trick. Author: Sung Soo Kim call, eval, varargin, subfunction, varargout, function handle 7 5
  • 3.5
3.5 | 2 ratings
19 Jun 2009 Screenshot Simple bar plot with errorbars in 3D Simple bar plot with errorbars in 3D. Author: Sung Soo Kim 3d, 2d, errorbar, bar 3 0
04 Mar 2009 LARS algorithm Pure vanilla implementation of LARS algorithm. Author: Sung Soo Kim lars, l1 norm, statistics, lasso 29 1
03 Mar 2009 Patch for XTargets MUnit Patch for later versions of MATLAB Author: Sung Soo Kim munit, patch, unit testing, xtargets, unit test, xunit 1 1

Contact us at files@mathworks.com