Rank: 2566 based on 57 downloads (last 30 days) and 2 files submitted
photo

Karl

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Karl View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
08 May 2013 dirup Get the relative path string to go up a number of levels in the directory structure. Author: Karl directory, path, folder, file system 8 0
16 Apr 2012 Screenshot struct2table displays a struct's contents in a clear way... Author: Karl struct, table, display, command window 49 3
  • 5.0
5.0 | 4 ratings
Comments and Ratings by Karl View all
Updated File Comments Rating
08 Nov 2012 On-figure magnifier Powerful on-figure magnifier, suitable for the publication of compact graphical results Author: David Fernandez-Prim

Hi David,

and thank a lot for this function! It works really well. Only one thing - and I'm not sure whether I'm doing something wrong or if it's actually a small bug in your code: When I select the 'DisplayLinkStyle' to be 'edges' I get an error in line 1918 (version 1.17 on MATLAB 2009b). I made a little change to the code to fix this problem (at least for me):

Line 1918:
----------
change

linkHandle = appDataStruct.linkHandle;

to

linkhandle = appDataStruct.linkHandle;

That was a typo, I guess! And

Line 1908:
----------
change

if isempty( appDataStruct.linkHandle )

to

if isempty( appDataStruct.linkHandle ) || length(appDataStruct.linkHandle<4)

Maybe this is of use for anyone... :)

Cheers from Germany and regards,

Karl

04 Nov 2009 Multicore - Parallel processing on multiple cores This package provides parallel processing on multiple cores/machines. Author: Markus Buehren

Hi Markus,

first of all -- you've developed a great tool that helps me a lot with my simulations in the field of audio signal processing. Seeing my dual quad core at 100% (instead of 13%) load warms my heart :).

Well, I'm not sure whether I'm getting something wrong here, but I had some problems when the function that is executed by the multicoremaster() (and the slaves) has more than one return value. It seems that in this case all but the first return values get lost. I applied a little trick that I found out about some time ago to solve this problem:
Everytime that feval() is called (in startmulticoremaster() and startmulticoreslave() ) I added something like this:

N_returnValues = nargout(functionHandleCell{k});
clear('returnValue'); % this is dirty! The next call doesn't work
% without clearing "returnValue" beforehand if
% N_returnValues==1. If it's greater->no
% problem (even without clearing
% "returnValue")
[returnValue{1:N_returnValues}] = feval(functionHandleCell{k}, parameterCell{k}{:}); % ha!
resultCell{k} = returnValue;

Doing so, the resultsCell that is returned from startmulticoremaster() is always a cell -- even if the called function has only one return value...

I hope this is of any value to anybody and that I'm not causing trouble by posting this hack :). I'm always open to learn a better solution....

Cheers, and thanks again for Multicore!

Karl

04 Nov 2009 Multicore - Parallel processing on multiple cores This package provides parallel processing on multiple cores/machines. Author: Markus Buehren

Comments and Ratings on Karl 's Files View all
Updated File Comment by Comments Rating
23 Oct 2014 struct2table displays a struct's contents in a clear way... Author: Karl Ghulam Rasool

27 May 2013 struct2table displays a struct's contents in a clear way... Author: Karl Darik

Sorry... ignore that last comment. Works as expected. Very convenient

27 May 2013 struct2table displays a struct's contents in a clear way... Author: Karl Darik

Table is broken if structure contains a field name longer than 9 characters.

>> x(1:3) = struct('testfield', 1);
struct2table(x)
# |testfield
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
1 | 1
2 | 1
3 | 1

>> y(1:3) = struct('test_field', 1);
struct2table(y)
# |¯¯¯¯¯¯¯
1 | 2 | 3 |>>

26 May 2013 struct2table displays a struct's contents in a clear way... Author: Karl Darik

14 Jun 2012 struct2table displays a struct's contents in a clear way... Author: Karl LP

nice!
Suggestion, if user passes a structure with fields of different length, perhaps use the 'median' length to define which fields to automatically display.

At the moment, it just displays field(1) and then exits..
looks good!

Contact us