Home How to remove global flag from variable in workspace
Reply: 0

How to remove global flag from variable in workspace

user822
1#
user822 Published in May 27, 2018, 3:35 am

I have some data (.mat) which was set to global as it was saved and which is now saved as a global cell. When I load it into the workspace it automatically is set to global.

Is there a way to remove the global flag from this variable, without removing the variable itself from the workspace, only the global attribute?

When I copy this array it automatically copies its global attribute as well and in the documentation it only says how to set to global and not how to remove it. I am using MATLAB R2015a.

global exportmat
exportmat = cell(889,12);
filename = 'test.mat';
save(filename)

clear -globals exportmat

load('test.mat')
whos

  Name              Size            Bytes  Class    Attributes

  exportmat       889x12            85344  cell     global   
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.307984 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO