array return with a function - Programmers Heaven

Howdy, Stranger!

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


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)

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


Sign In or Register to comment.