필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to use variables of one file to other

조회 수: 1 (최근 30일)
yaser arafat kazi
yaser arafat kazi 2015년 3월 21일
마감: MATLAB Answer Bot 2021년 8월 20일
In main.m program mean, standard deviation and energy is calculated as,
Mean = mean(ch1);
standard_Deviation = std(ch1);
energy = sum(abs(ch1).^2);
classifier;
these variables are declared as global but when I try to run classifier.m it shows error at line
test=[Mean standard_Dviation energy];
  댓글 수: 2
Konstantinos Sofos
Konstantinos Sofos 2015년 3월 21일
A good point to start is here: Share Data Between Workspaces
The most secure way to extend the scope of a function variable is to use function input and output arguments, which allow you to pass values of variables and not to use global variables
Regards
dpb
dpb 2015년 3월 21일
I can find no TMW function classifier at www.mathworks.com so no way to know but one would presume this is also a function so besides the link above start with
help classifier % for specific expectations of the function
and then read the "Getting Started" section in the online doc's to understand the use of Matlab in general.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by