Filter löschen
Filter löschen

Matlab 2012a subs() BUG?

2 Ansichten (letzte 30 Tage)
ha9981
ha9981 am 15 Mär. 2013
I have function that is a sum of multiple sinusoidal functions. It is x(t).
I try to first do time shift, no problem:
syms x;
syms t;
%define x, some long sinusoidal function
r1 = subs(x,t,t-1)
Everything up to here runs fine. Next I want to evaluate the shifted function.
subs(r1, t, 0)
Now after this step above the result is NaN Result should be 1, by plotting...
  3 Kommentare
ha9981
ha9981 am 15 Mär. 2013
NaN shows up for r1 and r2 when evaluating at any integer value! Figure below.
Walter Roberson
Walter Roberson am 15 Mär. 2013
Okay, but you have not indicated what r1 or r2 are

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Formula Manipulation and Simplification finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by