%the data points match the equation y=x^2 almost exactly and my goal is to create
%the loglog plot with my attempted window. In theory the loglog plot should be a line
%with a slope of two... could be wrong though.
%Thank you!!
function for i = 1:n hold on x=points(i,2); y=points(i,1); plot(x,y,'^','markers',2,'MarkerEdgeColor','b','MarkerFaceColor','y') loglog(x,y,'^','markers',2,'MarkerEdgeColor','r','MarkerFaceColor','g') xlim([.00001 1]) ylim([.00001 1]) end end
MATLAB: How to create a loglog plot out of an array? I have a 2xn array of all the data points called points & the loglog plot is showing the same graph as the normal plot tool.
loglog plotMATLAB
Best Answer