Piecewise Function (Toolbox Doesn't Work)
Ältere Kommentare anzeigen
Hi,
When I try to create a piecewise function with the Symbolic Math Toolbox, it says unrecognized. I cleared the toolbox path cache and reset paths to default. I checked "which ~all <piecewise>" but it's like it doesn't exist.
After creating a piecewise function, I need to plot it discretely. It should look like this:

n2=-2:0.5:0;
f2 = @(n2) (0);
hold on
n=0:0.5:5;
f = @(n) (3*exp(-n).*sin(pi*n));
figure;
stem(n, f(n));
TIA
2 Kommentare
Dyuman Joshi
am 28 Jan. 2024
Do you have the Symbolic Math Toolbox installed?
Type "ver" in the command window and check the output.
balla243
am 28 Jan. 2024
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Assumptions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

