How to change the function name to match its file name in a code?

3 views (last 30 days)
I have a simple question, I think!
If we have a function named hello.m but its file name is called Hi then how to change the function
name to Hi.m (to make it match the file name) NON-manually?
Imagine you need to do this for 565676577 number of files in a for-loop.
Do you know a way? it is greatly appreciated.
Mohammad Shojaei Arani
Mohammad Shojaei Arani on 6 Dec 2022
Soory Jan. Indeed, I am grateful to your very kind helps.
I solved my problem using your hints. Thanks!

Sign in to comment.

Answers (0)


Find more on Large Files and Big Data 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!