Thanks for your reply. unfortunately it is not showing as i want. it is showing two graph. but i want both to be club in one graph. if you have any other way please let me know.
Hi Chitta, do you mean you want to have an enlargement inset inside the plot? If so I don't think Matlab can do this but you could always export both as PDFs and then use a tool like Inkscape to achieve the result you want. L
It is really great work. I am a beginner in Matlab and confused about coding and Matlab' s functions. Therefore, I do not how I use it. Could you please explain how to implement Ali' s function into the following code.
first of all it is not my function, I took it from Mathworks, but, I can help you for your case.
Just compile your matlab script and then without closing your figure, run that function. This will show a rectangular box on the figure, and you can move the box to see the zoomed view of the portion of the graph you want to see.
Hi @ all. I got simpler, but more effective Matlab code for zoomed view in a figure. This script is written by "KYE TAYLOR", and I found it on the Mathworks website. Follow the link please. In case of any issue I can be contacted, especially the begginers
this will make a subplot in the right corner of your curve afterwards just copy and paste your figure in the new created subplot then use Matlab built in functions on your small figure.