MATLAB: Error with plotting a function

MATLABplot

I can't seem to figure out how to just plot the function y = K^(1-e^(-rt)). How can I get this to plot? Every way I seem to input the values in the plot function, it calls an error in line 6.
K = 10;
r = .1;
t = 0:1:100;
solution1 = @(t,y) K ^ (1 - (exp(-t*r)));
plot(t,(K^(1 - (exp(t*r*-1)))), '-b');
hold on

Best Answer

K = 10;
r = .1;
t = 0:1:100;
solution1 = @(t,y) K .^ (1 - (exp(-t*r)));
plot(t,(K.^(1 - (exp(t*r*-1)))), '-b');