Replace a symbolic variable with a symbolic expression
Afficher commentaires plus anciens
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.
Réponses (1)
John D'Errico
le 3 Juil 2017
Subs does this directly.
help subs
1 commentaire
Gennaro Arguzzi
le 3 Juil 2017
Catégories
En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!