how to use the functions

4 Ansichten (letzte 30 Tage)
Andrea Daloisio
Andrea Daloisio am 10 Nov. 2016
Kommentiert: Andrea Daloisio am 10 Nov. 2016
I'm doing an exercise with fem and i have 4 function. How do I use them one after the other to get a final result at the end?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 10 Nov. 2016
temp1 = first_function(YourInput);
temp2 = second_function(temp1);
temp3 = third_function(temp2);
output = fourth_function(temp3);
  3 Kommentare
Walter Roberson
Walter Roberson am 10 Nov. 2016
If kernel() does not have any inputs, then
temp1 = kernel();
temp2 = kernelII(temp1);
temp3 = kernelIII(temp2);
output = kernelIV(temp3);
Note: I used this form with assigning to variables each time because it can generalize to functions that have multiple outputs, such as
[temp1a, temp1b] = kernel();
temp2 = kernelII(temp1a, temp1b);
In the case where there is only ever one input and one output, you can use
output = kernelIV( kernelIII( kernelII( kernel() ) ) )
Andrea Daloisio
Andrea Daloisio am 10 Nov. 2016
thanks a lot walter

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by