Rank: 534 based on 201 downloads (last 30 days) and 7 files submitted
photo

Adam Leadbetter

E-mail
Company/University
BODC
Lat/Long
53.4082, -2.9689

Personal Profile:

I work as a marine data scientist at the British Oceanographic Data Centre and have used Matlab for data formating, visualisation and for environmental modelling for about a decade.

Professional Interests:
Oceanography

 

Watch this Author's files

 

Files Posted by Adam View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
14 May 2009 Percent Done Displays the percentage done of a job to the command line interface. Author: Adam Leadbetter waitbar, percent done, interface, programming 32 2
  • 5.0
5.0 | 2 ratings
14 May 2009 NMEA 0180 Sentence Reader Reads a NMEA 0183 sentence into a Matlab structure. Author: Adam Leadbetter nmea, data import, earth science, gps 87 2
13 May 2009 Screenshot plotgantt Plot a Gantt chart from a Matlab structure. Author: Adam Leadbetter data export, project planning, plotting, project management 30 2
13 May 2009 TIFF Image Basic Quality Control Provides basic quality control checks of TIFF images for scientific image data management Author: Adam Leadbetter image processing 9 0
17 Apr 2009 Screenshot m2googlechart Demonstrates acessing a Java class from Matlab in order to generate Google Chart API plots. Author: Adam Leadbetter plotting, data export, data visualisation 18 0
Comments and Ratings on Adam's Files View all
Updated File Comment by Comments Rating
13 Nov 2009 NMEA 0180 Sentence Reader Reads a NMEA 0183 sentence into a Matlab structure. Author: Adam Leadbetter Iswanto, Febri

Hi Adam,

I want to use your code to read NMEA sentence into matlab structure.
Could you explain how to use it, especially the input & the output data format?

Thanks before.

Febri

08 Sep 2009 plotgantt Plot a Gantt chart from a Matlab structure. Author: Adam Leadbetter Stuart

Uses function isleapyear on lines 61 & 64. However, that function does not appear to be a matlab function.

08 Sep 2009 plotgantt Plot a Gantt chart from a Matlab structure. Author: Adam Leadbetter Stuart

Thanks! I think I've figured out how to use this, but some more help documentation would be a really good addition. Also, a working example.

14 May 2009 Percent Done Displays the percentage done of a job to the command line interface. Author: Adam Leadbetter D'Errico, John

Fixed the problems I saw. It does what it claims to do. It is faster now too, taking a much smaller chunk of time away from your own computations. Whereas the last time I did this test, it too almost 10 seconds just to do the progress report, this test is down to only about a second.

tic,for i = 1:10000,perccount(i,10000),end,toc
Elapsed time is 1.243821 seconds.

Perccount is not infinitely fast, but waitbar will be just as slow, if not worse. This begs the question of just how slow?

h = waitbar(0,'I''m busy!');
tic
n = 10000;
for i = 1:n
 waitbar(i/n)
end
delete(h)
toc
Elapsed time is 124.846332 seconds.

Yes, just 10000 calls to waitbar, with nothing else in the loop, took over 2 minutes!

So, for the person who will have wanted to ask, "Why not just use waitbar?" this is a good reason. All of those calls to update a slider bar take considerable time. Yes, I'll admit that more careful coding, calling waitbar only infrequently in that loop would have been faster. So,

h = waitbar(0,'I''m busy!');
tic
n = 10000;
for i = 1:n
  if (rem(i,100) == 0)
    waitbar(i/n)
  end
end
delete(h)
toc

Elapsed time is 1.280422 seconds.

So for the person who does not wish to write the extra code to make waitbar function passably, or for the person who would actually prefer to have progress reported in the command line, perccount is a very viable option.

My thanks for fixing this. Well done.

13 May 2009 NMEA 0180 Sentence Reader Reads a NMEA 0183 sentence into a Matlab structure. Author: Adam Leadbetter Gary

That's "NMEA 0183", not "NMEA 1803"

Top Tags Applied by Adam
data export, plotting, data import, communications, data visualisation
Files Tagged by Adam View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
14 May 2009 Percent Done Displays the percentage done of a job to the command line interface. Author: Adam Leadbetter waitbar, percent done, interface, programming 32 2
  • 5.0
5.0 | 2 ratings
14 May 2009 NMEA 0180 Sentence Reader Reads a NMEA 0183 sentence into a Matlab structure. Author: Adam Leadbetter nmea, data import, earth science, gps 87 2
13 May 2009 Screenshot plotgantt Plot a Gantt chart from a Matlab structure. Author: Adam Leadbetter data export, project planning, plotting, project management 30 2
13 May 2009 TIFF Image Basic Quality Control Provides basic quality control checks of TIFF images for scientific image data management Author: Adam Leadbetter image processing 9 0
17 Apr 2009 Screenshot m2googlechart Demonstrates acessing a Java class from Matlab in order to generate Google Chart API plots. Author: Adam Leadbetter plotting, data export, data visualisation 18 0
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com