Suppose you have a spreadsheet open in the Safety Analysis
Manager, and you select the cell in the second row and second column. Retrieve the
SpreadsheetCell object in the spreadsheet.
myValue = safetyAnalysisMgr.getCurrentSelection
myValue =
SpreadsheetCell with properties:
Row: 2
Column: 2
ColumnLabel: 'Label2'
Value: 'text in cell'
Description: ''
Retrieve Cells from Spreadsheet
Suppose you have a spreadsheet open in the Safety Analysis
Manager, and you select two cells. Retrieve the SpreadsheetCell
objects in the spreadsheet.
myValue = safetyAnalysisMgr.getCurrentSelection
myValue =
1×2 SpreadsheetCell array with properties:
Row
Column
ColumnLabel
Value
Description
Retrieve Rows from Spreadsheet
Since R2024b
Suppose you have a spreadsheet open in the Safety Analysis
Manager, and you select two rows. Retrieve the SpreadsheetRow
objects in the spreadsheet.
myValue = safetyAnalysisMgr.getCurrentSelection
myValue =
1×2 SpreadsheetRow array with properties:
Index
Cells
Description
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: United States.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.