Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help on how to manipulate signals with MATLAB

0 views
Skip to first unread message

Vergil Mike

unread,
Dec 24, 2005, 9:06:19 AM12/24/05
to
Pls, I want to obtain data from a signal which I have. It's said to
be a signal obtained in the Medical field. Now what I have to do is
create a 'for loop' which will enable me to obtain data at several
interval from the signal.

My problem is.. I have no clue on how to start(how would I
initiate the 'loop sequence'?).
I have a function written in a M-File, this function helps to obtain
a value from the signal(just a value). Now What I need to do, is add
lines of codes ('for loop') to the code function in the M-File, to
obtain series of values at some particular point in the signal.
Pls, I would appreciate any Guidance & Help you can give.
Thanks

John D'Errico

unread,
Dec 24, 2005, 9:19:20 AM12/24/05
to

You could start with

help for

But if you truly have no clue about this,
its just a signal that its time to read the
manual.

HTH,
John

Vergil

unread,
Dec 24, 2005, 3:43:42 PM12/24/05
to

I actually got a book that was "prescribed" for me (Mastering Matlab
7). I have gone through it, but the whole thing is still Blur. Gone
through other kinds of documentation relating to MATLAB, still blur.
The thing is, I kinda know what to do, just can't figure out how to
start and how to integrate the Code Lines ('for loop') with the
signal.
Please, if there is any idea that anyone could render, I would
deeply appreciate it.
Thanks.

John D'Errico

unread,
Dec 25, 2005, 6:45:36 AM12/25/05
to
In article <ef20...@webx.raydaftYaTP>, Vergil <mike...@gmail.com> wrote:

> I actually got a book that was "prescribed" for me (Mastering Matlab
> 7). I have gone through it, but the whole thing is still Blur. Gone
> through other kinds of documentation relating to MATLAB, still blur.
> The thing is, I kinda know what to do, just can't figure out how to
> start and how to integrate the Code Lines ('for loop') with the
> signal.
> Please, if there is any idea that anyone could render, I would
> deeply appreciate it.


Sigh.

I think if you put the book under your pillow at night,
you absorb it by magic. It does take an extra night or so
to become truly an expert. Some people seem to absorb it
better if they sleep on their sides, and then it depends
on which side you sleep, absorbing it into the right or
left side of the brain.

Perhaps the blur problem is that you forgot to put on
your eyeglasses. I've noticed that many books do seem
blurry to me when fail to wear them.

Maybe you think this response is flippant. Sorry about
that. You could try actually reading the manual, book,
tutorial, etc. Do it while you are sitting in front of
the keyboard. Try some examples. USE that keyboard.

Or if all that seems too much of a bother, try sleeping
on it.

Sigh.

John

--
The best material model of a cat is another, or preferably the same, cat.
A. Rosenblueth, Philosophy of Science, 1945

Those who can't laugh at themselves leave the job to others.
Anonymous

Rune Allnor

unread,
Dec 25, 2005, 7:25:56 AM12/25/05
to

Vergil,

John's post might not seem very constructive at first glance,
but in a way it is. Your question is of such a fundamental
nature, what computer programming is concerned, that one
might compare it with "I was given this book to read, but
I don't understand all these skribbles <letters> in it; can
anybody explain?" To somebody who can read, the
letters are so obvious and second nature that it is hard to
see how to get a newbie started.

Part of your problem is that there are at least three different
subjects involved:

1) Computer programming. A "for loop" is such a fundamental
part of computer programming that it might well be taught in the first
lesson of the first class at the first day in the first year at
computer
programming school.

2) Signal processing. This is a specalist subject that usually
requires lots of preparation in maths and computer programming
to do well. Somehow, the mixture of a question about a for loop
and a signal processing application makes it impossible to come
up with an answer to your question. Somebody who have problems
with a for loop ought not to dabble with DSP. Somebody who have
a problem with a DSP application does usually know perfectly
well how to use a for loop.

3) Matlab. Well, matlab is the ideal tool for learning and training
maths and DSP (I'm not sure about computer programming,
though...) and you could have done a lot worse, both what
user friendliness and documentation is concerned.

So what you need to do, then, is to sort out what is your main
problem. It seems as you need a very basic, completely-from-
scratch intro to computer programming. You might want to find
some special books on basic computer programming, not necessarily
connected to matlab. Only after you master the very basics are you
prepared to use matlab for the task that have been assigned to you.

But do keep John's advice in mind: No one can teach you how to
do this! You have to learn it yourself; it is your own work that
matters.
And do ask whoever assigned that book for you. That person is a lot
closer to you than anybody at CSSM, and will also be able to
follow up on your particular questions.

Rune

John D'Errico

unread,
Dec 25, 2005, 7:55:15 AM12/25/05
to

> John's post might not seem very constructive at first glance,
> but in a way it is. Your question is of such a fundamental

Rune,

Thank you for this very good followup.

There were a few lines in my response that were of value.
Perhaps I can try again.

The best way to learn a language is by using it. This
applies to any language, computer or spoken. Don't forget
that valuable resource you may have in the person next to
you. Do not overuse that resource though. The tutorials,
bools, & manuals for matlab are actually quite good, IF
you use them in combination with keyboard time. There is
simply no substitute for a keyboard. (However, when I do
use the pillow approach, I sleep on my right side. I'm
currently sleeping on "War and Peace".)

Rune Allnor

unread,
Dec 25, 2005, 8:42:34 AM12/25/05
to

John D'Errico wrote:
> In article <1135513556.3...@g47g2000cwa.googlegroups.com>, "Rune Allnor" <all...@tele.ntnu.no> wrote:
>
> > John's post might not seem very constructive at first glance,
> > but in a way it is. Your question is of such a fundamental
>
> Rune,
>
> Thank you for this very good followup.
>
> There were a few lines in my response that were of value.
> Perhaps I can try again.

I've been on the teaching side in university for too long not to
sympathize
with your entire post. I was involved in teaching a course in applied
DSP, where the students were supposed to have taken one or two
intro courses that were given locally at my faculty, before entering
the course.

The application was of such interest that students from different
faculties wanted to take the applied course, but not the intro
courses. The effect was that we were left trying to teach basics
like filtering, the FFT and so on, and had no time for what we were
supposed to do.

I don't know what went wrong, the pre-requirements not being
enforced or us not being able to teach the un-prepared,
but there were one or two occations where magic teaching tools
surely would have come in handy.

Rune

Steve Amphlett

unread,
Dec 28, 2005, 1:44:48 PM12/28/05
to
<snip, Rune & John tell it straight...

From my own experience, what you need is:

a) Someone who can answer all your DSP questions in a language you
can understand. And be an inspiration.

b) Matlab, so you can try things out and not look too stupid when
you've misunderstood a).

c) A seriously interesting project area that can benefit from a) and
b).

kras...@techemail.com

unread,
Dec 29, 2005, 1:11:38 PM12/29/05
to
http://www.dspguide.com/ is a great text that teaches DSP as an
application - rather than all the theoretical math behind it. Bonus
is the ebook version is free - but the text is highly recommended if
you like to put the book on your pillow. I do not think that trick
works with ebooks.

Vergil

unread,
Jan 14, 2006, 6:40:08 AM1/14/06
to
I think now I can say I have a good knowledge in 'for' loops.
Mow,it's been brought to my attention I don't necessary need a 'for'
loop. As long as I get the values at the required intervals(30
seconds).
And I wil like to ask a question, If I want to plot a grapf in
'steps' form, how will this be done.

Thanks

0 new messages