Rank: 39940 based on 0 downloads (last 30 days) and 0 files submitted
photo

Peter Näsholm

E-mail
Company/University
Oslo University

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Peter
Updated File Comments Rating
14 Aug 2009 struct2str recursive Displays a struct's content in a list box. View a substruct's content by selecting its list entry. Author: Felix Zoergiebel

To be able to handle vectors in the form
[1
2
3
4]

(instead of [1 2 3 4]),
one may for example change from row 152 into:

tmp = getfield(s,{l},fnames{f});
sz = size(tmp);
if (ndims(tmp) == 2) && (sz(2) == 1)
isflipped = 1;
tmp = tmp';
tmp = ['[' num2str(tmp) ']' char(39)];
else
isflipped = 0;
tmp = ['[' num2str(tmp) ']'];
end

                    str = sprintf(fmt1,str,fnames{f}, tmp);
if isflipped
                     cell_str{k} = sprintf(fmt11,fnames{f}, [ '[' num2str(getfield(s,{l},fnames{f})') ']' char(39) ] );
else
                     cell_str{k} = sprintf(fmt11,fnames{f}, [ '[' num2str(getfield(s,{l},fnames{f})) ']' ] );
end
                    k = k + 1;

(and then as the rest of the original code)

Top Tags Applied by Peter
fractional calculus, mittagleffler function
Files Tagged by Peter
Updated   File Tags Downloads
(last 30 days)
Comments Rating
25 Mar 2009 Mittag-Leffler function Calculates the Mittag-Leffler function with desired accuracy. Author: Igor Podlubny mittagleffler functio..., fractional calculus, special functions 31 16
  • 4.58824
4.6 | 17 ratings

Contact us at files@mathworks.com