Number of Inputs of a function

2 Ansichten (letzte 30 Tage)
Rica
Rica am 15 Sep. 2014
Beantwortet: Physiker192 am 15 Sep. 2014
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 Kommentar
Guillaume
Guillaume am 15 Sep. 2014
How do you select which input to use?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Physiker192
Physiker192 am 15 Sep. 2014
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

Kategorien

Mehr zu Linear and Nonlinear Regression finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by