Creating a table with labeled columns in a procedure

I have a procedure which is fitting a batch of curves and compiling the parameters. Currently, said paramaters are saved in a multidimensional wave (2D). Thanks to help from here, I now know how to manually overwrite column labels in a table, but I have yet to figure out how to make the wave into the table in the procedure (and then save the modified table). Is there a way to do this other than from the command line? Doing this would make using the data much more accessible.

Just once more for clarity: in my procedure I want to make my 2D wave into a table with custom column labels, and save a copy of the modified table. Thank you for your help!
I don't fully understand your question but here is how I would do it:

Function DemoColumnTitles()
	Make/O/N=(2,2) mat
	Edit mat.d		// Edit data only
	ModifyTable title[1]="Title0"		// Set column title
	ModifyTable title[2]="Title1"		// Set column title
End


and save a copy of the modified table

I don't know what you mean by this. What kind of copy and why? What are you attempting to achieve?

hrodstein wrote: I don't fully understand your question but here is how I would do it:

Function DemoColumnTitles()
	Make/O/N=(2,2) mat
	Edit mat.d		// Edit data only
	ModifyTable title[1]="Title0"		// Set column title
	ModifyTable title[2]="Title1"		// Set column title
End


and save a copy of the modified table

I don't know what you mean by this. What kind of copy and why? What are you attempting to achieve?


Thank you. I tried something similar but it wasn't working. However, the ".d" on the edit command got it to work. Is there a similar way to label rows?
Is there a similar way to label rows?


No. I recommend that you create a text wave with the desired labels.
Is there a similar way to label rows?


I frequently use dimension labels to annotate numeric data:


Function MakeResultWave()
	Make/O/N=(3,2)	wResult
	SetDimLabel 0, 0, Volume, wResult		//Set row labels
	SetDimLabel 0, 1, Density, wResult
	SetDimLabel 0, 2, Weight, wResult
	
	SetDimLabel 1, 0, DataSet_1, wResult		//Set column labels
	SetDimLabel 1, 1, DataSet_2, wResult
	
	edit wResult.ld
end


Or use the following snippet to label waves:
http://www.igorexchange.com/node/6249