Simple Matlab program
Simple Matlab program
(OP)
Experts, Looking for a matlab program.
Generates signal h(i) with 17 samples defined as
h(i) = i , for 0<=i<=8
h(i) = 16-i , for 9<=i<=16
Generates signal h(i) with 17 samples defined as
h(i) = i , for 0<=i<=8
h(i) = 16-i , for 9<=i<=16
RE: Simple Matlab program
h(i)=1;
end
for i=9:16
h(i)=16-i;
end
Fe
RE: Simple Matlab program
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize
RE: Simple Matlab program
Thanks
Snook
RE: Simple Matlab program
=====================================
(2B)+(2B)' ?
RE: Simple Matlab program
Fe
RE: Simple Matlab program
RE: Simple Matlab program
Fe
RE: Simple Matlab program
- Steve
RE: Simple Matlab program
Actually, it doesn't seem so obscure to me.
1+(0:2)
evaluates to
1 2 3
as expected. We are just converting the index we prefer to see (0:...) to the index matlab wants (1:...).
Maybe there is some subtlety that I'm missing.
=====================================
(2B)+(2B)' ?
RE: Simple Matlab program
But I do prefer Python due to 1) I work for a small company that won't shell out the cash for Matlab and 2) the existence of tools like pythonxy.
RE: Simple Matlab program
RE: Simple Matlab program
As for the "a(1+(0:m))" this is just adding 1 to the original index. It works, does it really matter if we end at m+1 instead of m? I would imagine in most cases no.
I'm with you on this. So let's leave it to God then
Fe