MATLAB: Run function for a range of values

functionrange

hello
I am trying to run the following program for a range of values (a=2:8). Ideally I would like to do this within the command window as I am later going to try to run more complex codes. Could anyone provide any advice over how to do this please
function [x] = func(a,b,c,d)
x=a*b*c*d;
end

Best Answer

function [x] = func(a,b,c,d)
x= b*c*d.*a;
end
Related Question