MATLAB: Defining matlab logspace for semilogx plot matlab semilogx logspace I am trying to plot a matlab semilogx plot. How can I define a logspace in matlab from 400 nm to 700 nm? Thanks in advance, Raj Patel. Best Answer x = logspace(log10(400e-9), log10(700e-9)) Related SolutionsMATLAB: LOG vs LOG10 plot loglog is to the base of 10 (just see the axis scale). MATLAB: How to represent a graphic with Logspace and Semilogx The two plots cannot be identical, because the data is different. The two plots can have the same the same domain in x and range in y, though:set(gca,'XLim',[1e-1 1e2]);set(gca,'YLim',[45 65]); Related QuestionLog display problem semilogxLogspace with gap of halfCorrect use of Semilogx
Best Answer