how to return two variables in matlab function code example Example: two return variables in matlab function [x, y, z] = function_name(c)