Rank: 3071 based on 34 downloads (last 30 days) and 3 files submitted
photo

David Manegold

E-mail
Company/University
Physical Sciences Inc

Personal Profile:

Control Engineer

Professional Interests:

 

Watch this Author's files

 

Files Posted by David View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Jul 2012 Screenshot Convert structures (nested) to text file and back This function takes a non-flat structure and writes it to a text file. Execute text to remake struc Author: David Manegold struc convert file fw... 18 1
05 Apr 2012 Screenshot Dynamic Mask Field Changing from Selected Pulldown Menu Want to change your Mask fields based on a mask value when (pull down) when you select it? Author: David Manegold mask field pulldown s..., pick of the week, potw 8 1
  • 5.0
5.0 | 1 rating
09 May 2011 Screenshot Detect change to function-call S-Function Detect change in a signal and output a function call that can drive downstream dependant blocks Author: David Manegold sfunction, detect change, functioncall subsyste... 8 0
Comments and Ratings by David View all
Updated File Comments Rating
09 Oct 2012 Munkres Assignment Algorithm An efficient implementation of the Munkres algorithm for the assignment problem. Author: Yi Cao

there is no solution for the following matrix?
1 4 Inf
Inf Inf 5
Inf Inf 7
How do I modify such that it provides the
assignment =
1 0 0
0 0 1
0 0 0

08 Oct 2012 Munkres Assignment Algorithm An efficient implementation of the Munkres algorithm for the assignment problem. Author: Yi Cao

I have a 15x51 matrix on which this algorithm fails. the JV handles it.

can I send you the matrix

Comments and Ratings on David's Files View all
Updated File Comment by Comments Rating
15 Jan 2013 Dynamic Mask Field Changing from Selected Pulldown Menu Want to change your Mask fields based on a mask value when (pull down) when you select it? Author: David Manegold Meng

This is what I want to know, thanks a lot. I will learn this modle

18 Jul 2012 Convert structures (nested) to text file and back This function takes a non-flat structure and writes it to a text file. Execute text to remake struc Author: David Manegold Simon, Jan

I haven't seen such a brute collection of EVAL commands ever before. Almost all commands are converted to strings and delivered to the evil EVAL without any need to do so. David, why do you choose this strange, inefficient and error prone method to write a Matlab program?
Some improvements:
if isstruct(eval(['S.' names{i}])) ==>
if isstruct(S.(names{i}))
and
for ic = 1:cols, eval(['fwrite(fid,num2str(S.',names{i},'(ir,ic)));']); ... ==>
data = S.(names{i});
for ic = 1:cols, fprintf(fid, '%g', data(ir, ic)); ...

I do not dare to guess, what this command creates:
eval(['fwrite(fid,['''''''',S.',names{i},','''''''']);']);
Some comments in the code would be useful, especially because programs in the FEX are thought to be useful for 1000th of other users.
Checking the success of an FOPEN is strongly recommended.

This submission contains a lean help text, but neither the inputs nor the outputs are well defined. Without trying it it is hard to guess, if this function works e.g. for multi-dimensional output. The code is due to the EVALisation very slow and hard to read. Therefore I would not use this function for productive work or for eductation. While the idea is useful, the implementation is not usable.

Contact us