Matlab -understanding filter( )

  • Thread starter Thread starter cutesteph
  • Start date Start date
  • Tags Tags
    Filter Matlab
Click For Summary
SUMMARY

The discussion focuses on the correct usage of the MATLAB function filter() in the context of a communication system. The user encountered an error due to incorrect parameter assignment in the function call ych = filter(h, l, s), where l should be replaced with the numeric value 1. The correct syntax is ych = filter(h, 1, s), which resolves the assignment error and allows the function to execute properly.

PREREQUISITES
  • Understanding of MATLAB programming syntax
  • Familiarity with digital signal processing concepts
  • Knowledge of filter design and implementation
  • Basic understanding of variable assignment in MATLAB
NEXT STEPS
  • Explore MATLAB's filter() function documentation for detailed parameter explanations
  • Learn about different types of filters in MATLAB, such as FIR and IIR filters
  • Investigate error handling in MATLAB to troubleshoot common coding issues
  • Study digital signal processing techniques relevant to communication systems
USEFUL FOR

This discussion is beneficial for MATLAB users, particularly those involved in digital signal processing, communication system design, and students seeking to understand filter implementation 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.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 0 ·
Replies
0
Views
2K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K