Extract Real and Imaginary Equation with MATLAB

  • Thread starter Thread starter fox2005eng
  • Start date Start date
  • Tags Tags
    Imaginary Matlab
Click For Summary

Discussion Overview

The discussion revolves around extracting the real and imaginary components of a complex signal using MATLAB. Participants explore methods for achieving this, particularly through the use of built-in functions.

Discussion Character

  • Technical explanation, Homework-related

Main Points Raised

  • One participant inquires about writing M-files to extract real and imaginary components from a symbolic expression for a complex signal.
  • Another participant suggests that using the built-in functions real() and imag() would suffice, implying that an M-file may not be necessary.
  • A follow-up request for a code example is made, indicating a desire for practical implementation.
  • Documentation links for the functions real() and imag() are provided by participants, but no specific code examples are shared in the discussion.

Areas of Agreement / Disagreement

There is no consensus on the necessity of writing an M-file, as some participants suggest using built-in functions while others seek clarification on implementation.

Contextual Notes

The discussion does not resolve how to implement the suggested functions in practice, nor does it clarify any assumptions about the symbolic expression or the context of its use.

Who May Find This Useful

Individuals interested in MATLAB programming, particularly those working with complex signals and symbolic expressions.

fox2005eng
Messages
6
Reaction score
0
Extract Real and Imaginary Equation with MATLAB !

Hi all,

How to write M-files that can extract the real and imaginary components, or the magnitude and phase, of a symbolic expression for a complex signal with MATLAB.

x(t) = e^j*2*pi*t/16 + e^j*2*pi*t/8 <<< equation example

Thanks In Advance.

Bye
 
Physics news on Phys.org


You shouldn't have to write an m-file to do this. You should be able to use the real() and imag() functions to extract the real and imaginary components.
 


AIR&SPACE said:
You shouldn't have to write an m-file to do this. You should be able to use the real() and imag() functions to extract the real and imaginary components.

how?

would u please gimee code example ?

bye
 

Similar threads

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