Displaying symbolic function with decimal number instead of fractional coefficients
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Aleem Andrew
am 11 Nov. 2020
Kommentiert: Aleem Andrew
am 11 Nov. 2020
The following code outputs a symbolic function with fractional coefficients, but I want it to display the coefficients as floating point numbers or doubles. I tried using fprintf but no format specifier I tried worked. Can someone tell me how the coefficients can be formatted?
a = [1.33 2.455 3.32 4];
syms x
f = [x,x^3,x,x^3].';
a*f
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox 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!