You can use the semilogy
function to plot data on a logarithmic y-axis. To plot several lines on the same figure with a correction factor, you can specify each line's data as a matrix and apply the correction factor after importing. Here is an example:
main.m298 chars17 lines
In this example, we first define our input data for x, y1, and y2. We then apply a correction factor of 0.1 to each line using element-wise multiplication. Finally, we plot both lines on the same figure using semilogy
, with a legend to differentiate between the two.
gistlibby LogSnag