Hi, I'm fairly new to Matlab and would appreciate some help. I'm trying to graph a scatter plot of a function. Later on I'm going to fit other functions to this data and plot that on the same figure. But what I have so far plots the markers all in one plane, which isn't what I want. The function is 2D, the graph should be 3D. How do I get this?
Here's what I've been trying so far. There's some other code before this that generates different values for f(i,j) given different parameters, so when I implement the code I get a series of figures.
for i=1:somenumber
for j=1:somenumber
f(i,j)=etc.
end
end
figure;
x=1:somenumber;
plot3(x,f,x,'rs');
hold on;