MATLAB: I need help ploting a graph

graphhelp plotingMATLAB and Simulink Student Suite

when i try to plot a graph made of this equation i get an error saying Error using ^
Incorrect dimensions for raising a matrix to a power. Check that the matrix is
square and the power is a scalar. To perform elementwise matrix powers, use'.^'. i've tryed to plot it like this:
x=[0:0.1:40]
and
y=5*(1-0.5772156649^(-x/4.8))
pls halp

Best Answer

y=5*(1-0.5772156649.^(-x/4.8))