Rank: 474 based on 143 downloads (last 30 days) and 10 files submitted
Personal Profile:
Professional Interests:
MRI, NMR, signal processing, rf engineering, instrumentation

 

Watch this Author's files

 

Files Posted by Mirko View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
27 Feb 2010 Squish Squish removes ALL singleton dimensions. Author: Mirko Hrovat matrices, squeeze, singleton, squish, matrix manipulation 3 1
  • 5.0
5.0 | 1 rating
21 Aug 2009 addcopyright add copyright information to an m-file or group of m-files. Author: Mirko Hrovat copyright permission ..., potw, pick of the week 18 3
  • 5.0
5.0 | 1 rating
03 Aug 2009 Screenshot Baseline Fit A baseline fit is interpolated from selected points and then applied to the data. Author: Mirko Hrovat analysis, peak, baseline, signal processing 26 1
  • 5.0
5.0 | 2 ratings
03 Aug 2009 char2cell Converts a character array (or cell string) array to a cell string array using delimiters and rows. Author: Mirko Hrovat cell, char, string, parse, delimiter, tokenize 14 0
11 Jun 2009 Screenshot Stacked Plot Stacked plots display spectra with time or another parameter. Five methods are provided. Author: Mirko Hrovat image processing, stacked plot, plot, 2d plot, graphics, plotting 41 1
  • 5.0
5.0 | 1 rating
Comments and Ratings on Mirko's Files View all
Updated File Comment by Comments Rating
26 Dec 2011 addcopyright add copyright information to an m-file or group of m-files. Author: Mirko Hrovat Doke, Jiro

Hi Mirko,
Very nice entry! I have a need to put copyrights to all of my MATLAB files, so this will be very handy. I noticed one problem. If I have a function with some help comments and then have MATLAB code immediately after the comments (without a blank line), it doesn't append the copyright information:

function out = testfunction(in)
%TESTFUNCTION Summary of this function goes here
% Detailed explanation goes here
out = rand(in);
end

I expected this to become

function out = testfunction(in)
%TESTFUNCTION Summary of this function goes here
% Detailed explanation goes here

% Copyright 2011 The MathWorks, Inc.
out = rand(in);
end

Also, I have a couple of suggestions. I would like the tool to keep the number of blank lines between the comments and code. For example, if I have code like this:

% This is a comment

a = rand;

then the output should be

% This is a comment

% Copyright 2011 The MathWorks, Inc.

a = rand;

Notice that there's a blank line between the copyright line and the code. This preserves the spacing that originally existed in the code.

Second, I think it the function should look for:
1. "cell divisions"
2. blank line
3. Revision line
4. code line

"cell divisions" are used in cell mode like this:

%% Title
% This is a title cell.
%% Section 1
% This is section one.

In the above case, I think the copyright info should go right after the first cell (Title cell):

%% Title
% This is a title cell.

% Copyright 2011 The MathWorks, Inc.
%% Section 1
% This is section one.

This is a great entry. Thanks for creating this (and improving on Raymond's entry)! I am planning on highlighting this for Pick of the Week.

08 Nov 2011 Stacked Plot Stacked plots display spectra with time or another parameter. Five methods are provided. Author: Mirko Hrovat Choi

dd

26 Apr 2011 Baseline Fit A baseline fit is interpolated from selected points and then applied to the data. Author: Mirko Hrovat Kaimal, Sindhu
11 Feb 2010 Baseline Fit A baseline fit is interpolated from selected points and then applied to the data. Author: Mirko Hrovat Ridder, Brad

Absolutely awesome.

Saved me a lot of time. Thanks!

12 Jan 2010 Benchmark A different version of bench.m with additional options and output. Author: Mirko Hrovat Alan

Jim, the description is for benchmark, not bench. bench is just given as a point of reference that some users might know. Also, as a user, I would like to know if the same task (ie sparse manipulation or symbolic solving) takes longer on different versions so I can choose which version to use.

Top Tags Applied by Mirko
2d plot, analysis, baseline, bench, benchdat
Files Tagged by Mirko View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
27 Feb 2010 Squish Squish removes ALL singleton dimensions. Author: Mirko Hrovat matrices, squeeze, singleton, squish, matrix manipulation 3 1
  • 5.0
5.0 | 1 rating
21 Aug 2009 addcopyright add copyright information to an m-file or group of m-files. Author: Mirko Hrovat copyright permission ..., potw, pick of the week 18 3
  • 5.0
5.0 | 1 rating
03 Aug 2009 Screenshot Baseline Fit A baseline fit is interpolated from selected points and then applied to the data. Author: Mirko Hrovat analysis, peak, baseline, signal processing 26 1
  • 5.0
5.0 | 2 ratings
03 Aug 2009 char2cell Converts a character array (or cell string) array to a cell string array using delimiters and rows. Author: Mirko Hrovat cell, char, string, parse, delimiter, tokenize 14 0
11 Jun 2009 Screenshot Stacked Plot Stacked plots display spectra with time or another parameter. Five methods are provided. Author: Mirko Hrovat image processing, stacked plot, plot, 2d plot, graphics, plotting 41 1
  • 5.0
5.0 | 1 rating

Contact us at files@mathworks.com