Why does Isreal function give wrong answer after using collect function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
In the code below, the second function isreal gives wrong answer after using collect function.
clear all;
close all;
clc;
syms w real;
m=w^3-1i*w^2+2*w-1i;
mre=real(m)
isreal(mre)
mrecol=collect(real(m),w)
isreal(mrecol)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 28 Mär. 2013
There is no isreal() function for sym specifically, so the result of both isreal() calls is undefined. But double check class(mre) and class(mrecol)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Special Values 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!