Skip to content

Commit e951ef3

Browse files
authored
Merge pull request #61 from mserkantan/patch-1
Update README.md
2 parents 2ae6947 + 3c4ba55 commit e951ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ Read a ``.mat`` file
8686
matioCpp::File input("input.mat");
8787
// You can check if input is open with the isOpen() method
8888
matioCpp::CellArray cellArray = input.read("cell_array").asCellArray(); //Read a Cell Array named "cell_array"
89-
matioCpp::Element<double> doubleVar = cellMatrix({1,2,3}).asElement<double>(); //Get the element in the cell array at position (1,2,3) (0-based), casting it as a double Element
89+
matioCpp::Element<double> doubleVar = cellArray({1,2,3}).asElement<double>(); //Get the element in the cell array at position (1,2,3) (0-based), casting it as a double Element
9090
doubleVar = 3.14; //Set the doubleVar to a new value
91-
assert(cellMatrix({1,2,3}).asElement<double>()() == 3.14); //Also the original cell array is modified, but not in the file.
91+
assert(cellArray({1,2,3}).asElement<double>()() == 3.14); //Also the original cell array is modified, but not in the file.
9292

9393
```
9494

0 commit comments

Comments
 (0)