• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

matlab help

weezergirl

Diamond Member
hey how do u enter in the discrete input signal x(n)=0.8^n into matlab?i need to convolve x(n) and h(n). i can do that. just need to find out how to enter in x(n) 😛
 
It says "Using Matlab, convolve the discrete input signal x(n) with the discrete filter response h(n), where x(n)=0.8^n and h(n)=1, 0<=n<20"
 

ugh, I knew this like two quarters ago. If you don't mind calculating out x separately, you can enter in x as a series of discrete elements. Just enter x = [a b c d e f]

That's probably not what you're looking for though, sorry I'm not more help.
 
argg i should know this!!! :disgust:
well all i can think of at this moment is to write a loop.. like

x = ones(10,1)
for i = 2:10
x[ i ] = x[i - 1] * 0.8

ya i know that sucks... but it works, i guess
 


<< argg i should know this!!! :disgust:
well all i can think of at this moment is to write a loop.. like

x = ones(10,1)
for i = 2:10
x[ i ] = x[i - 1] * 0.8

ya i know that sucks... but it works, i guess
>>



actually i just asked my roommate, she said u have to make a for loop for the n values 0 to 40 so that the graph reaches 0. thanks for the help anyways!
 

Wait a minute, why are you convoluting by one? That makes no sense, won't you just get the input function?
 


<< Wait a minute, why are you convoluting by one? That makes no sense, won't you just get the input function? >>



sorry i dind't mean he was right. i already figured it out from my roommate. u pretty much had it right in the last post.
 


<< sorry i dind't mean he was right. i already figured it out from my roommate. u pretty much had it right in the last post. >>



LOL, so is this what they teach you at UCLA? That when you multiply a polynomial by one you get the same polynomial? And that one needs a computer to figure this out?

Suddenly, I don't feel so bad about dropping out of Berkeley. 😉
 


<< hehe, sounds like someone is taking ee 103. 😀 >>



actually it's ee132a 😛

and wow, your nickname is so nerdy!! hehehe 🙂

and outersquare, i think i explained it wrong. anyways it works now hehe
 


<<

<< hehe, sounds like someone is taking ee 103. 😀 >>



actually it's ee132a 😛

and wow, your nickname is so nerdy!! hehehe 🙂

and outersquare, i think i explained it wrong. anyways it works now hehe
>>



damn i hated the hw thats due tomorrow. just finished it.
I asked the TA and he said that the length of the vector (.8)^n is 20
 


<< and outersquare, i think i explained it wrong. anyways it works now hehe >>



How can you explain it wrong when you qouted the problem straight up? Or are you just trying to save your butt? 😉

So what did your math class homeworks look like? "Using a TI-85, find the value of zero times zero plus zero?"

Man, if I weren't so close to graduating, I'd have seriously consider transferring to UCLA's engineering program. 😀
 


<<

<< and outersquare, i think i explained it wrong. anyways it works now hehe >>



How can you explain it wrong when you qouted the problem straight up? Or are you just trying to save your butt? 😉

So what did your math class homeworks look like? "Using a TI-85, find the value of zero times zero plus zero?"

Man, if I weren't so close to graduating, I'd have seriously consider transferring to UCLA's engineering program. 😀
>>



sorry, WHERE are u going again? 😛

 

LOL nm, I reread your problem, it's not just a single one, it's a sequence of ones. Not exactly a thought invoking problem, but not as trivial as I originally thought it was.
 


<< LOL nm, I reread your problem, it's not just a single one, it's a sequence of ones. Not exactly a thought invoking problem, but not as trivial as I originally thought it was. >>



i think the poitn of the problem was to get used to matlab. it's our first computer assignment for the class. 😛

here is our real homework
 


<< i think the poitn of the problem was to get used to matlab. it's our first computer assignment for the class.

here is our real homework
>>




Ok sorry weezergirl, clearly I was mistaken, will you ever forgive me?

I do think that your real hw doesn't look challenging at all, but I think I've said enough already.

 


<< Man, if I weren't so close to graduating, I'd have seriously consider transferring to UCLA's engineering program. >>



heheh... same here 😛

 


<< I do think that your real hw doesn't look challenging at all, but I think I've said enough already. >>



yup u've SAID enough, cuz talking is cheap and easy 😛 and yeah, i'm not surprised if u find our FIRST homework assignment easy. hello! u already took the class, and i'd find it easy too if my school took a whole semester to teach what we prolly do in one week. 😛
 
Back
Top