2.1.14.4.9 save_data_2_Wks


Description

put XY or XYZ data to worksheet

Syntax

void save_data_2_Wks( Worksheet & wks, vector & vX, vector & vY, vector & vZ = NULL )

Parameters

wks
[input] the worksheet to store data
vX
[input] x coordinates of the data
vY
[input] y coordinates of the data
vZ
[input] optional z coordinates of the data

Return

No return

Examples

EX1

void save_data_2_Wks_ex1()
{
    vector vx = {1, 2, 3, 4, 5};
    vector vy = {0, 1, 2, 3, 4};
    Worksheet wks("book1");
    save_data_2_Wks(wks, vx, vy);
}

Remark

This function will reset the worksheet as XY or XYZ. All extra columns will be removed.

See Also

Header to Include

origin.h

Reference