myFunction
and save it in an .m
file in your current working directory. This function should contain the code you want to execute and graph.main.m152 chars8 lines
main.m
. In this script, you will call your myFunction
and pass any necessary arguments. Then, you can save the resulting graph to a file.main.m210 chars8 lines
main.m
script in MATLAB. This will execute your myFunction
, generate the graph, and save it to a png file in your current working directory.gistlibby LogSnag