Hello to all, can you help me to plot y= (x+2)^(x+2)

 Accepted Answer

x = linspace(0,1) ;
y = (x+2).^(x+2) ;
plot(x,y)

3 Comments

Thanks, I missed dot.):
. is for element by element operations. Read about them.

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Asked:

on 10 Apr 2022

Commented:

on 10 Apr 2022

Community Treasure Hunt

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

Start Hunting!