Skip to content

ctrl-z3d/Orthogonality-Checker-Signals-And-Systems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tomorrow's Midterms

Signal Orthogonality Checker

A simple MATLAB script to check if two signals are orthogonal over a specified interval by calculating the integral of their product.

How to Use

  1. Open the Script: Open the .m file in MATLAB.
  2. Modify Inputs: Locate the --- INPUT SECTION --- and change these variables:
    • f1_str: First function as a string (e.g., 'sin(t)').
    • f2_str: Second function as a string (e.g., 'cos(t)').
    • interval_start / interval_end: Integration limits.
    • step_size: Resolution for numerical integration (smaller = more accurate).
  3. Run: Press Run (F5).

Supported Functions

  • Built-in: sin(t), cos(t), exp(t), etc.
  • Predefined:
    • u_step(t) → Unit step function
    • ramp(t) → Ramp function

Output

  • Command Window: Displays whether the signals are ORTHOGONAL or NOT ORTHOGONAL and prints the calculated integral value.
  • Figure: Plots both input signals and their product.

Example

f1_str = 'sin(t)';
f2_str = 'cos(t)';
interval_start = -pi;
interval_end = pi;

Result: ORTHOGONAL

About

Orthogonality Checker in MATLAB. Useful for undergraduate students trying to check orthogonality of two functions

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages