Skip to content

Commit

Permalink
Change minimum supported release to MATLAB 2022b
Browse files Browse the repository at this point in the history
  • Loading branch information
ehennestad committed Oct 1, 2024
1 parent 9b17089 commit 4fd33a4
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
MATLABVersion: [R2021b, R2022a, R2022b, R2023a, R2023b, R2024a, R2024b]
MATLABVersion: [R2022b, R2023a, R2023b, R2024a, R2024b]
# The type of runner that the job will run on
runs-on: ubuntu-latest

Expand Down
Binary file modified code/livescripts/crewMemberCollection.mlx
Binary file not shown.
2 changes: 1 addition & 1 deletion dev/MLToolboxInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"AuthorCompany": "openMetadataInitiative",
"Summary": "A MATLAB toolbox to create metadata instances using the openMINDS metadata models",
"Description": "MATLAB package for the openMINDS metadata models. The package contains all the latest openMINDS schemas as MATLAB classes in addition to schema base classes and utility methods",
"MinimumMatlabRelease": "R2021b",
"MinimumMatlabRelease": "R2022b",
"MaximumMatlabRelease": ""
}
27 changes: 16 additions & 11 deletions docs/tutorials/crewMemberCollection.html

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions docs/tutorials/crewMemberCollection.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 4fd33a4

Please sign in to comment.