Hi(adsbygoogle = window.adsbygoogle || []).push({});

I have an m-file which accesses another m-file at some point, but I don't want it to run the entire file. Is there a way to skip the first and last 10 lines of the file?

I could just create a new file with the code I need, but this is like an addon to a programme, so if I could leave the original untouched that would be best.

Hope that makes sense. Any advice much appreciated!

Thanks.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB: Running only a certain section of an m-file

Loading...

Similar Threads - MATLAB Running certain | Date |
---|---|

[Matlab] Error running optimization. | May 21, 2014 |

Frisbee flight in Matlab, can't run (Input argument x is undefined) | Mar 21, 2013 |

Can't run my main Matlab file related to ODE solution | Mar 10, 2013 |

I need some help with running a .exe from Matlab | Mar 3, 2011 |

MATLAB Runs Filename | Apr 26, 2010 |

**Physics Forums - The Fusion of Science and Community**