Deleting a certain base variable, from a function

조회 수: 2 (최근 30일)
Chris
Chris 2014년 4월 23일
답변: Walter Roberson 2014년 4월 23일
I'm writing a program with user inputs, split into sub functions, I want to be able to redo a certain part of the program, without running the whole program again.
At the start of the sub function I'd like to delete the previous set variable, which is a matrix array. But clear x, clearvars x doesn't work for me :(
Any ideas?
Thanks in advance!

답변 (1개)

Walter Roberson
Walter Roberson 2014년 4월 23일
evalin('base', 'clear x');

카테고리

Help CenterFile Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by