Matlab -understanding filter( )

  • Thread starter Thread starter cutesteph
  • Start date Start date
  • Tags Tags
    Filter Matlab
AI Thread Summary
The user is trying to implement the filter function in MATLAB for a communication system using a channel impulse response defined as h = [.3 .6 -.3]. They encounter an error when attempting to run the command ych = filter(h, l, s), specifically stating that the expression on the left of the equals sign is not a valid target for assignment. The discussion highlights confusion regarding the middle parameter, where the user mistakenly uses 'l' instead of the correct numeric value, which is 1. Clarification is provided that the filter function requires specific input types and values to function correctly. Understanding the correct parameters is essential for successful implementation of the filter function in MATLAB.
cutesteph
Messages
62
Reaction score
0

Homework Statement


For my code for the communication system
if I have a channel implies response {.3,.6,-.3}

h=[.3 .6 -.3]

How do I get ych=filter(h,l,s) to work? I get an error when I run it. I get an error, Error: The press ion on the left of the equals sign is not a valid target for an assignment
 
Last edited:
Physics news on Phys.org
Just off the top of my head, you have ych = filter(h, l, s), with the middle parameter the letter l (ell). In the link, the middle parameter is the number 1.
 
Thanks.
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...
Back
Top