Thread Subject: Matlab Data Analysis

Subject: Matlab Data Analysis

From: Anthony Ogunseye

Date: 24 Mar, 2009 12:38:02

Message: 1 of 6

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.

Thank you in advance.

Anthony

Subject: Matlab Data Analysis

From: Rune Allnor

Date: 24 Mar, 2009 12:58:58

Message: 2 of 6

On 24 Mar, 13:38, "Anthony Ogunseye" <seu...@gmail.com> wrote:
> 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.

It seems you need to talk with whoever gave you the
program and data.

> Most books i have come across don't exactly show how to get this done,

That's because your question is as precise as
'how long is a string?' You have to learn the
tools, understand the problem, and work from there.

> they seem to cover the entire matlab tutorial

A matlab turtorial would be a very good place to
start...

> and I have really limited time.

And so? Do you think anybody else will throw away
everything they have going just to help somebody
who think it beneath his dignity to talk with his
boss or learn how to use the tools he is given?

Rune

Subject: Matlab Data Analysis

From: Anthony Ogunseye

Date: 24 Mar, 2009 13:11:01

Message: 3 of 6

Hi Rune,

I will save myself the trouble of responding to you, clearly you jump to conclusions without getting or understanding facts but thanks for your response as useful as it was.

Regards
A

Rune Allnor <allnor@tele.ntnu.no> wrote in message <d1dd0a75-8cd9-48d5-92f0-0866b0c2f221@z15g2000yqm.googlegroups.com>...
> On 24 Mar, 13:38, "Anthony Ogunseye" <seu...@gmail.com> wrote:
> > 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.
>
> It seems you need to talk with whoever gave you the
> program and data.
>
> > Most books i have come across don't exactly show how to get this done,
>
> That's because your question is as precise as
> 'how long is a string?' You have to learn the
> tools, understand the problem, and work from there.
>
> > they seem to cover the entire matlab tutorial
>
> A matlab turtorial would be a very good place to
> start...
>
> > and I have really limited time.
>
> And so? Do you think anybody else will throw away
> everything they have going just to help somebody
> who think it beneath his dignity to talk with his
> boss or learn how to use the tools he is given?
>
> Rune

Subject: Matlab Data Analysis

From: Anthony Ogunseye

Date: 24 Mar, 2009 13:14:01

Message: 4 of 6

oh and by the way Rune, what I asked for was to point me in the right direction not do the work for me, Could have saved yourself the time of responding to me, if you could even provide one material which would have been useful to help rather than make unwarranted assumptions.

Thanks Again.

Rune Allnor <allnor@tele.ntnu.no> wrote in message <d1dd0a75-8cd9-48d5-92f0-0866b0c2f221@z15g2000yqm.googlegroups.com>...
> On 24 Mar, 13:38, "Anthony Ogunseye" <seu...@gmail.com> wrote:
> > 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.
>
> It seems you need to talk with whoever gave you the
> program and data.
>
> > Most books i have come across don't exactly show how to get this done,
>
> That's because your question is as precise as
> 'how long is a string?' You have to learn the
> tools, understand the problem, and work from there.
>
> > they seem to cover the entire matlab tutorial
>
> A matlab turtorial would be a very good place to
> start...
>
> > and I have really limited time.
>
> And so? Do you think anybody else will throw away
> everything they have going just to help somebody
> who think it beneath his dignity to talk with his
> boss or learn how to use the tools he is given?
>
> Rune

Subject: Matlab Data Analysis

From: Aaron Callard

Date: 24 Mar, 2009 13:26:02

Message: 5 of 6

First of all I should say that you should be nice to Rune as he is one of the more active and helpful posters on this newsgroup.

Secondly It is almost impossible for anyone to give you an answer to your problem as it is incredibly vague.
Extract data, what data. you have 2D and 3D data so you want to plot the data? find the average? What?

Remember that Matlab is really a programing language, it may have a fancy interface but it's really just a programing language. So go back and look at your previous questions using the works C++ or Java instead of matlab and see if they still make sense, of if anyone without access to your specific program could answer them.

So if you are still working on this tell us what data you want to extract and where the problems are

assuming your 2D data is the matrix X
you can plot it using

surf(X)
if it defines a surfance
or if its just a bunch of lines try the

plot(X)
Anyway give it a try, figure out what it is you want to calculate and if you're still stuck. come back and ask some questions. But remember that no one (as far as I know) is physicic here so you need to give concrete details and ask specific questions to get useful answers.




"Anthony Ogunseye" <seunao@gmail.com> wrote in message <gqam55$s54$1@fred.mathworks.com>...
> Hi Rune,
>
> I will save myself the trouble of responding to you, clearly you jump to conclusions without getting or understanding facts but thanks for your response as useful as it was.
>
> Regards
> A
>
> Rune Allnor <allnor@tele.ntnu.no> wrote in message <d1dd0a75-8cd9-48d5-92f0-0866b0c2f221@z15g2000yqm.googlegroups.com>...
> > On 24 Mar, 13:38, "Anthony Ogunseye" <seu...@gmail.com> wrote:
> > > 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.
> >
> > It seems you need to talk with whoever gave you the
> > program and data.
> >
> > > Most books i have come across don't exactly show how to get this done,
> >
> > That's because your question is as precise as
> > 'how long is a string?' You have to learn the
> > tools, understand the problem, and work from there.
> >
> > > they seem to cover the entire matlab tutorial
> >
> > A matlab turtorial would be a very good place to
> > start...
> >
> > > and I have really limited time.
> >
> > And so? Do you think anybody else will throw away
> > everything they have going just to help somebody
> > who think it beneath his dignity to talk with his
> > boss or learn how to use the tools he is given?
> >
> > Rune

Subject: Matlab Data Analysis

From: Steven Lord

Date: 24 Mar, 2009 13:47:02

Message: 6 of 6


"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

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
data analysis Beres A 24 Mar, 2009 08:40:20
image analysis Beres A 24 Mar, 2009 08:40:20
graph plots Beres A 24 Mar, 2009 08:40:20
rssFeed for this Thread

Contact us at files@mathworks.com