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. If the input Atm structure is continuous, the output will be a single element cell array with the model evaluations that would get put into a single Excel spreadsheet. Otherwise, the output will result in 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] 
Structure or array of structures from AtmStruct 
LaunchExcel [bool] 
true to display structures in an Excel Worksheet. Defaults to false 
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

>> Atm = ChangeAtm(AtmStruct,'alpha',[0 1 2 3 4]); 

>> CellOut = AtmStruct2Cell(Atm,true) 

  • 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(AtmStruct,false); 

>> 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!