Here's an example code of how to write a function fddtemprod that takes in 6 variables and returns two arrays in Matlab:
main.m360 chars13 linesIn this example, the function takes in 6 input variables var1, var2, var3, var4, var5, var6 and performs some operations on them to obtain temp1, temp2, and temp3. The function then assigns these values to two separate output arrays: array1 and array2.
You can call this function in Matlab by providing 6 values for the input variables, like this:
main.m41 chars2 lines
This would result in a1 being [6, 9, -1] and a2 being [36, 81, 1].
gistlibby LogSnag