Using a string vector as legend string of a graph


I am trying to make a function to plot some objects. For that, I am creating the string names with the objects that I want to have.

string string_names={"SG1" "SG2" "SG3" };

when comes to the legend string of a graph and I do this:

string legend_string = string_names;

There is a mistake ( I have tried using the symbols $,^, but nothing works).

The following command does the job:

string legend_string = {"SG1" "SG2" "SG3" };

How can I do something like this:

string legend_string = string_names;

Thank you

You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 30 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy