Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's 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 its 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

SimonPrg1234SimonPrg1234 Posts: 9Member
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)
body
endfunction

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

thanks

Sign In or Register to comment.