|
"Anthony Ogunseye" <seunao@gmail.com> wrote in message
news:gqak7a$gci$1@fred.mathworks.com...
> Hi,
>
> I have a program which is used for Kinematic analysis which i didn't
> create, I have been given the program with no documentation and have been
> provided some 2D and 3D data. Unfortunately as i have limited knowledge of
> Matlab, I am not too sure how to extract data from the program and to
> carry out any analysis of these data as the program has no dosumentation.
> Is there anyone who can provide me with instructions on how to:
>
> 1. extract data from matlab
> 2. Plot graphis of these data
> 3. 2D and 3D analysis
>
>
> Most books i have come across don't exactly show how to get this done,
> they seem to cover the entire matlab tutorial and I have really limited
> time.
>
> Any help or pointing me in the right direction will be most welcome.
Each of those three tasks are pretty broad, and what you have to do to "get
this done" will depend on lots of factors you haven't given us.
1) In what format should the data be exported from MATLAB? Is it a
relatively standard format, like XML, CSV, XLS, <something>-delimited,
MAT-file, or one of the image formats supported by IMWRITE? Or is it a
customized format, like a specifically formatted text file or binary file
for which you need to use a specialized writer function (or for which you
need to build your own?) If the format is standardized, extracting the data
is going to be easier (look in the list of functions displayed by "help
iofun" for an appropriate writer/reader) than if it's not (you'll need to
build your own, perhaps using the low-level FOPEN, FPRINTF, FWRITE, and
FCLOSE functions.)
The same holds but in the reverse direction if you want to import data from
the program back into MATLAB.
2) What types of graphs do you want to plot? Again, if it's a standard type
of plot for which MATLAB has a function to create that plot (see "help
graphics", "help graph2d", and "help graph3d") then it's going to be easier
than if you have a specialized type of plot that you want for which no
function exists (you may need to build it up out of Handle Graphics objects
like LINEs, SURFACEs, PATCHes, etc. yourself.)
3) This may sound like a broken record, but what to do depends on what type
of analysis you want. Are you looking for fitting a line or surface to a
set of data? Are you looking to do some sort of signal processing on the
data? Making sure the object being modeled doesn't collide with other known
objects? Making sure that it behaves in a way that's physically possible?
If possible, I would do as Rune suggested -- talk to the person who
implemented the program in the first place (or whomever was last in charge
of maintaining it) and get them to explain the program (and if you can
browbeat them into creating actual documentation, so much the better) and
how to use it. If that's not possible, I think you're going to need to work
your way through learning the program the hard way. If you have specific
questions about what the code is doing, ask that _specific_ question on CSSM
and you'll likely receive some help. I would also recommend recording what
you learn about the program, to start the documentation process. The next
person who has to use this tool will thank you.
--
Steve Lord
slord@mathworks.com
|