4.83333

4.8 | 6 ratings Rate this file 15 Downloads (last 30 days) File Size: 8.19 KB File ID: #8350
image thumbnail

OceanMap

by

 

23 Aug 2005 (Updated )

Manually enter matrix elements in a GUI, then save to a *.MAT file.

| Watch this File

File Information
Description

This is a general-purpose array editor, developed using GUIDE.

It is called OceanMap because of the purpose for which I designed it. You may wish to change the name.

If necessary, you should find it easy to make the function return the output matrix rather than saving it to a .MAT file.

Notes:

 - The number of rows and columns can be updated actively, without losing data already contained in the matrix

 - You should call OceanMap from the command line, as clicking on the .fig file doesnt work: The ActiveX FlexArray doesn't initialise.

 - Currently, Multidimensional Arrays are not supported... I'd be pleased to hear if anyone modifies the software for extra dimensions.

 - The output matrix DOES NOT CONTAIN row and column numbers, although it wouldn't be a lot of effort to make it do so.

Background Information:

OceanMap was originally created for the purpose of tracking a submersible vehicle using a grid painted onto the floor of a water tank. Technicians use it to input the grid pattern and convert it to matrix form.

A separate piece of software compares the matrix from OceanMap to numbers seen by an on-board camera to compile the track of the submersible.

Acknowledgements

M File Header Template inspired this file.

MATLAB release MATLAB 7 (R14)
Other requirements VideoSoft VSFLEX FlexArray ActiveX Control. I think this is pre-installed on W2K and XP platforms.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
02 Dec 2008 Luigi Giaccari

That'is it Ifound
Mister clark there is nothing wrong in my pc, maybe you should
turn the profile off when you run a new test try this. Especially
before giving low and inappropriate rating.

%% PUT THIS IN A SCRIPT AND RUN IT
% profile on
% profile clear

%%%%%%%%%%%%%%%%%%%%%%%%

%Maybe you forgot this !!!!

profile off

profile off

profile off

profile off

%%%%%%%%%%%%%%%%%%%%%%%

Npoints = logspace(1,6,15);
lengthN = numel(Npoints);
convhull_times = zeros(lengthN,1);
chull2d_times = zeros(lengthN,1);
for i = 1:lengthN
N=ceil(Npoints(i));
x=rand(N,1);
y=rand(N,1);
tic
chull1 = convhull(x,y);
convhull_times(i) = toc;
tic
chull=ConvHull2D(x,y);
chull2d_times(i) = toc;
end

figure()
semilogx(Npoints,convhull_times,'g-')
hold on
semilogx(Npoints,chull2d_times,'b-')
legend({'Native convhull';'convhull2d'})
title('Performance comparison')
% profile viewer

05 Oct 2007 Tom Clark

Michele,

ActiveX objects do not (usually) have a visibility property. Nor can they be embedded in an uipanel (which of course may be hidden along with it's contents).

The only way to hide activeX objects (that I know of) is to move them:
>move(handle,[x y wdth ht]);
check out the help on move for more info. Don't forget to save the original position so you can move it back!

---
Kind Regards

Tom

26 Jul 2007 Michele Micheli

Thank you!

just a question: is it possible to Hide/unHide the FlexGrid control?

09 Jul 2007 Eugene Perlovskiy

Thank's for good example.
However, I don't know how use the ColWidth property of flexArray. I want to exchange a column width in flexArray. Can you help me?

03 Apr 2007 gustavi asti

finally something usefull

19 Mar 2006 Simon Pierre Bessala

You helped me!

05 Dec 2005 ahmad alqadad

merci beaucoup

02 Dec 2005 Huseyin Demir  
08 Sep 2005 Dimitri Shvorob

Thank you.

25 Aug 2005 Wolfgang Stiegmaier

Although you used nice sounding function names like savethedamnfile(...), you forgot to use better description tags for the GUI elements.

Contact us