Hey guys im new to matlab ive been trying to do a power function but I've been getting this error and Im not understanding why
Here is the function
function [z] = power1(x,y) if y>=0 if y==0 z=1; end if y==1 z=x; end z=x*power1(x,y-1);endend
Best Answer