what is the problem in this code because when i use hold on command in my code but It does not work ,what is my problem ?
Show older comments
clc
clear
x = 36 ;
y = 10^16 ;
n = -25:-15 ;
f_1 = ( y .^ n ) ./ ( ( exp( x .*n)) ) ;
f_2 = ( y / exp ( x ) ).^n;
plot(n,f_1,"r")
hold on
plot(n,f_2,"b")
legend('f_1','f_2')
xlabel("n")
hold off
Accepted Answer
More Answers (0)
Categories
Find more on Aerospace Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!