I did not find anything so far to my previous problem, I have therefore tackled the problem from another angle, but I still have a little problem. Here is my code:
%%calculation of Hopff bifurcation points
k = 0;
s = 1;
uhopf = 0;
while s < 7
s = s + 0.02;
k = (s-1)*exp(-s);
uhopf = s*k;
%fprintf('s: %.4f, k: %.4f, uhopf: %.4f\n', s, k, uhopf);
end
f = figure;
h = plot(uhopf, k);
xlabel('uhopf');
ylabel('k');
I was just wondering why can't I have a graph? Should I use "arrays" instead?
Thank you in advance for any help.