I use:
>>scatter(COG.X,COG.Z)
then set up the scatter plot as on the picture:
Go to 'File', 'Generate code'
I get my createfigure function, which I save, then command it as:
>>createfigure(COG.X,COG.Z)
and I get this:
Which is the wrong Z – Axis (Y) and my X- Axis has spaces in front and at the back, why? how?
What am I doing wrong??
Best Answer