Replace a symbolic variable with a symbolic expression

조회 수: 2 (최근 30일)
Gennaro Arguzzi
Gennaro Arguzzi 2017년 7월 3일
댓글: Gennaro Arguzzi 2017년 7월 3일
Hi eveyone. I've the following code:
close all
clear all
syms t
Y=fourier(heaviside(t));
The result is Y = pi*dirac(w) - 1i/w. My goal is to replace w with 2*pi*f. How can I do that?
Thank you for your help.

답변 (1개)

John D'Errico
John D'Errico 2017년 7월 3일
Subs does this directly.
help subs
  댓글 수: 1
Gennaro Arguzzi
Gennaro Arguzzi 2017년 7월 3일
Hi John D'Errico, I just tried with subs, but it works only if the first input is pi*dirac(w) - 1i/w. Instead in my code I have Y.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by