Matlab question: usage of save -


in following matlab code,

random_numbers = randn(1,1000); j=1; i=1:length(random_numbers) if random_numbers(i) > 2.0 extracted(j) = random_numbers(i); j = j + 1; end end save 'sample1' extracted 

we following error:

??? error ==> save unable write file sample1: permission denied.  error ==> test @ 9 save 'sample1' extracted  

please advise.

a permission denied error suggest trying save directory not have write permission. since have specified base name filename, save try save mat-file current working directory, can determine running command pwd. can check permissions of current directory running

[success, message] = fileattrib 

and inspecting userwrite field of returned message.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -