-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change minimum supported release to MATLAB 2022b
- Loading branch information
1 parent
9b17089
commit 4fd33a4
Showing
6 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,10 +194,15 @@ disp(collection.Nodes) | |
"_:[email protected]" ⟼ {[[email protected]] (ContactInformation)} | ||
``` | ||
|
||
A note here: Since the collection holds a mix of different types, each type is inside a cell (as indicated by the curly brackets). In order to get an instance from the <samp>Nodes</samp>, we need to use curly bracket indexing: | ||
A note here: Since the collection holds a mix of different types, each type is inside a cell (as indicated by the curly brackets). In order to get an instance from the <samp>Nodes</samp>, we need to index into a cell object: | ||
|
||
```matlab | ||
person = collection.Nodes{"_:arthur-dent"} | ||
if isMATLABReleaseOlderThan("R2023a") | ||
cellValue = collection.Nodes("_:arthur-dent"); | ||
person = cellValue{1} | ||
else | ||
person = collection.Nodes{"_:arthur-dent"} % Curly brace syntax introduced in R2023a | ||
end | ||
``` | ||
|
||
```TextOutput | ||
|
Oops, something went wrong.