From Script Panel

The Script Panel (accessed via the context menu of a Workbook's title bar) is a hybrid of the Script Window and Command Window.

  • Like the Script Window, it can hold multiple lines and you can highlight select lines and press Enter to execute.
  • Like the Command Window, there is a history of what has been executed.
  • Unlike the Script window, whose content is not saved when Origin closes, these scripts are saved in the project.
// Scale column 2 by 10

// Shift minimum value of 'mV' column to zero
stats col(mV);

// Set column 3 to column 2 normalized to 1
stats 2;
col(3) = col(2)/stats.max;