buildq command method



I have a plot using the following code.

str1:"plot2d([x^1";
str1:concat(str1, "],[x,0,1],[plot_format,gnuplot],[legend,false])");
eval_string(str1);

This works but I think I remember someone posting that this can be done better using the buildq command but I have had no success that way.  Could someone show me how to generate this plot with buildq?

Thanks,

Rich