workspace doesnt show variables

I downloaded the new 2018 Matlab trial per month. I wrote the code but it does not let me run it and I can not see the variables in the workspace either.
I would appreciate your help,
Karin.

6 Comments

What do you mean by 'does not let me run it'? Does it give an error or there is no option to run it or what? also, presumably if you cannot run your code you would not expect any variables to appear in the workspace? Or do you mean you can run code from command line and the variables you create there do not show?
it doest give me any error . I pressed run and nothing happened. No variables were shown and I did not get results. I tried to run it from the command window but it did not work either
Are you using a script or a function?
It might be easier to answer your question if you attach your code.
N does not appear in your workspace if you put this in command line?
N=1000;
no, it doesnt.
Have you tried pressing F5 and/or restarting? Occasionally the workspace can stop updating, though it's fairly rare.

Sign in to comment.

Answers (1)

I am using a code:
I can sand you a part of my code. I tried also to run just a couple of lines but it doesnt work.
N=1000;
Electron=randn(1,N);
Pion=randn(1,N)+2;
significanceLevel=(length(find(Electron>1))/N);

Asked:

on 20 Mar 2019

Commented:

on 20 Mar 2019

Community Treasure Hunt

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

Start Hunting!