Number of Inputs of a function

조회 수: 1 (최근 30일)
Rica
Rica 2014년 9월 15일
답변: Physiker192 2014년 9월 15일
Hi all,
I have a problem with choosing the Input of this function:
[Outputs]=function[In1,In2,In3,In4,..In7]
M=regress(In1,In2)
...
...
...
end
I want tobe able to choose
M=regress(In1,In2) or M=regress(In1,In3), M=regress(In1,In4) ,.....M=regress(In1,In7) or M=regress (In1, IN2 In3,..IN5);
or to ignore an inputs when it doesnot occured.
I hope my question is clear.
Thank you
  댓글 수: 1
Guillaume
Guillaume 2014년 9월 15일
How do you select which input to use?

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

답변 (1개)

Physiker192
Physiker192 2014년 9월 15일
if there is any criteria for using M=regress(In1,In2) or M=regress(In1,In3)..... u can use the switch/case as: switch switch_expression case case_expression statements case case_expression statements ... ... otherwise statements end

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by