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 个评论

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;
Have you tried pressing F5 and/or restarting? Occasionally the workspace can stop updating, though it's fairly rare.

请先登录,再进行评论。

回答(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);

类别

评论:

2019-3-20

Community Treasure Hunt

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

Start Hunting!

Translated by