MATLAB doesn't overwrite variable's content once saved and re-opened

3 vues (au cours des 30 derniers jours)
Siddhant Shivram
Siddhant Shivram le 15 Avr 2017
Hi all,
I have a certain vector called dates which contains a 262 rows of dates. I delete the first date using the following code
dates(1) = []
and save MATLAB after using the size command to verify that I now have 261 rows. Upon reopening MATLAB, my dates still has 262 rows :/ Note: All the new variables I created in the previous session correctly display the data they hold - its just this one variable that doesn't overwrite its old value when MATLAB is saved and re-opened.
I'd appreciate any help. Thank you !
  2 commentaires
dpb
dpb le 15 Avr 2017
Don't just tell, show the sessions that illustrate the problem. As the other variables show, Matlab doesn't behave that way in general, you've got a functional error somewhere in the commands that is causing the symptom.
Possibly what you've got is a cell array that has an empty cell now, but the array is still the same size; we need to see precisely what you did in the sequence in which you did it to provide the precise reason.
Darshan Ramakant Bhat
Darshan Ramakant Bhat le 18 Avr 2017
What do you mean by MATLAB is saved and reopened? Are you doing it in a .m file? Are you closing the MATLAB and reopening it?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by