Can't see variables in workspace when run from a function

조회 수: 4 (최근 30일)
Carsten
Carsten 2014년 12월 4일
답변: John Petersen 2014년 12월 4일
I have attempted to create a program for school. I have only started with matlab.
I have only made the first to choices in the menu. But i don't get any variables showing up in the workspace window. It seems to run the first choice ok, but i can't see if the file is loaded. When i try to run the NeXT choice which is aggregation function, the variables from the load_measurement isn't there. I am so lost here.
The functions are individually tested and they Work as the should. But i am having problems connecting them in a mainscript. I am sure i am doing something wrong in using the functions in the mainscript.
HELP :O)
  댓글 수: 1
Star Strider
Star Strider 2014년 12월 4일
It is difficult to understand how your scripts and functions relate to each other.
What scripts call what functions (and what functions call other functions), and how should your code work?
What file does not appear, and what function is supposed to load it?
I do not see that ‘mainMenu.m’ or ‘menu.m’ actually call any of your functions.

댓글을 달려면 로그인하십시오.

답변 (1개)

John Petersen
John Petersen 2014년 12월 4일
I see where you are calling the other functions, but you are ignoring the return variables. Is that the problem? What specifically do you see when you run menu?

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by