Declare variable as function output [closed]
hello guys, i wrote a new function, lets call it "func", that has some matrix as input and also some matrix as output. the thing is, i want to declare the last output of the function as a new variable x ( x=func(A) for a given A) the problem is: if i say
x = func(A)
print x
i get :
none
I guess the problem is, that i calculate more than one thing while the function is running, but at the end i just want to able to use that one single output of the function for further use...
Could you please provide the code of your function so that we can understand the problem ?
It is ok :) I just forgot to use return ;)