how to change some parameter of a m-file from command window

2 views (last 30 days)
how to change some parameter of a m-file from command window
suppose you want to change somethings in a m-file from command window such as you want to add a row to a matrix in a specified m-file.
what I must write?
thanks.

Answers (1)

Ameer Hamza
Ameer Hamza on 9 Dec 2020
.m file is a text file, so you can use all the functions to manipulate text files; for example, check the list of the function here: https://www.mathworks.com/help/matlab/referencelist.html?type=function&listtype=cat&category=low-level-file-i-o

Categories

Find more on Environment and Settings 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!