Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
array return with a function
Good day all i really hope anybody can help, I've got a project in varcity and i have one problem, have a great idea for the program but onething i don't know how to do:
I'm trying to create a function that has a return value that is an array for example
function [values] = myfunction(x1,x2)
my problem is the above is how my function look like currently (o by the way this is a subfunction) and values will eventually have the value of
values = ["one","two","three"]
the body part is not my problem on the defining and calling part could some one please let me know how to do this if this is even posible with matlab o yea we are working on a extention program of matlab called octave if that helps