You can plot the same function with different resolutions on the same plot in Matlab by specifying the resolutions for each plot and using the plot function multiple times. Here's an example:
main.m591 chars23 lines
In this example, we defined the x values using linspace with different resolutions, calculated the corresponding y values of the function for each resolution, and then plotted the function using plot multiple times on the same figure. The hold on command ensures that the plots are overlaid on the same plot.
gistlibby LogSnag