How to re-generate script from already built workspace

I am having some difficulty in finding my script for several differential equations solution. Please someone help me in how to regenerate MATLAB script from workspace because i have variable workspace. when i first loaded the script it was saved in workspace format and i can not retrieve the script again because of lack of experience

 Accepted Answer

The script, if you saved it is a file somewhere on your computer. We have no way fo knowing where you put it. However, if you remember the name of the script you can execute,
which -all thefilename.m
from the command line and, as long as the file is on your Matlab path the output of the above will tell you its location.

4 Comments

i couldn't save the scripts first but now i need thise scripts. i am a beginner so i thought maybe it can be retrieved again
No, if they weren't saved, there's nowhere to retrieve them from.
Thank you so much fro your response. now i will keep this in mind for other calculations
You're welcome, but please Accept-click the answer if the question is now answered.

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2022a

Asked:

on 30 May 2024

Commented:

on 30 May 2024

Community Treasure Hunt

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

Start Hunting!