Hello I have the following function:
f(x) = 1 + a/ 2.5 + x
a= some value
I would like to plot that function. I try to do it with a loop but it takes a lot of time when my x interval is too large.
for x = 1:1000 a= 500 fx = 1 + (a/ (2.5 + x)); plot(x,fx,'-*', 'color','blue'); hold on; end
Is there other way to plot the function maybe defining it with the matlab function command?
Best Answer