ContentsIndexReferenceHome
PreviousUpNext
AtmStruct2Cell
MATLAB
[CellOut,CellNames] = AtmStruct2Cell(Atm,[LaunchExcel])
Description

Converts an Atm structure or array of structures into cell arrays for viewing with Microsoft Excel. There will be an Excel spreadsheet for each model in the input Atm structure and an additional spreadsheet titled 'Geom' containing z and dz. Each element of the output CellOut will be a cell array of data.

Parameters
Parameters 
Description 
Atm [struct array] 
Structure or array of structures from AtmStruct 
LaunchExcel [bool] 
1 to display structures in an Excel Worksheet. Defaults to 0 
Return Values
Return Values 
Description 
CellOut [cell] 
Cell array of cells containing structure field names and model data 
CellNames [cell] 
Cell array of strings indicating ordering of data in CellOut 
Examples

  • CellOut = AtmStruct2Cell([C.Atm],1)
    • Display data from all Atm structures in Excel. CellOut{1} is a cell array with z and dz. CellOut{2} contains data for the first model in the Atm struct array
  • [CellOut,CellNames] = AtmStruct2Cell([C.Atm],0);
  • Cn2 = CellOut{strcmp(CellNames,'Cn2')}
    • Get output from AtmStruct2Cell and display the cell array containing Cn2 data

See Also
Group
Made with Doc-O-Matic.
Copyright (c) 2009. All rights reserved.
What do you think about this topic? Send feedback!