Accidentally edited .m file

14 Ansichten (letzte 30 Tage)
inkability
inkability am 8 Mär. 2022
Kommentiert: Star Strider am 8 Mär. 2022
Idiot that I am, I accidentally edited my sphere.m file and now I can't use it properly. Can anyone plz help me with the original code of this file?

Akzeptierte Antwort

Star Strider
Star Strider am 8 Mär. 2022
If you did not close MATLAB after the unfortunate edit, it might be possible to reverse the edits by using the ‘undo' arrow (counter-clockwise arrow in the rightmost part of the Editor top toolstrip, also implemented by CTRL+Z) as many times as necessary to restore the original code. Alternatively, look at the cylinder function, since they might have common code.
It‘s a core MATLAB function, so another option is to Contact Support and ask MathWorks to send you a copy. If worst comes to worst, re-install MATLAB.
Regardless, you have my sympathies!
  2 Kommentare
inkability
inkability am 8 Mär. 2022
Thx a lot, problem solved!
Star Strider
Star Strider am 8 Mär. 2022
As always, my pleasure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by