Accidentally edited .m file

조회 수: 14 (최근 30일)
inkability
inkability 2022년 3월 8일
댓글: Star Strider 2022년 3월 8일
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?

채택된 답변

Star Strider
Star Strider 2022년 3월 8일
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
inkability
inkability 2022년 3월 8일
Thx a lot, problem solved!
Star Strider
Star Strider 2022년 3월 8일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by