I have this function writen in matlab:
function out = summa(in1,in2)
out = in1(1)+ in1(2)+ in1(3)+ in1(4)+ in1(5)+ in1(6)+ in2(1)+ in2(2)+ in2(3)
And I've implemented it in simulink as follows:
And inside the matlab function block I've writen
summ(u(1),u(2))
I get the following error:
The function works fine if I input the vectors from the console, as follows:
summa([1 2 3 4 5 6],[1 2 3])
I get 27 as output
What am I doing wrong? I have a feeling the mux does not work like I want it to or that the arguments to the block are incorrect.