Draw the graph by calling the script

3 views (last 30 days)
인범 황
인범 황 on 5 Nov 2021
I want to load two scripts and display them in one graph.
What should I do?

Answers (1)

Sudharsana Iyengar
Sudharsana Iyengar on 5 Nov 2021
Ok let me give you a simple script that will do this work for you.
function drawscript(x,y)
Now this will be saved as drawscript. call it whenever you want to plot.
Now when you execute the above command then plot will be drawn. You can change your default ploting parameters by adding other things also. for instance changing it to log or no ticks no labels etc or marker size.


Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!