How do i clear all except one variable?
679 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Kritank Kalyan
il 18 Dic 2018
Commentato: Matthew Creek
il 24 Ago 2023
I want to clear all variables except one
entering all variable to be cleared is a lengthy process, has many variables and function
0 Commenti
Risposta accettata
Walter Roberson
il 18 Dic 2018
clearvars -except NAME
2 Commenti
Pedapudi Bharath Raja Bhoopal
il 14 Dic 2020
Thankyou it worked
clearvars -except X %deletes all variables except X in workspace
Matthew Creek
il 24 Ago 2023
Here are some links to related documentation:
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Workspace Variables and MAT Files in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!