diff --git a/README.md b/README.md index d99d2aad..4e0b2a81 100644 --- a/README.md +++ b/README.md @@ -86,9 +86,9 @@ Read a ``.mat`` file matioCpp::File input("input.mat"); // You can check if input is open with the isOpen() method matioCpp::CellArray cellArray = input.read("cell_array").asCellArray(); //Read a Cell Array named "cell_array" -matioCpp::Element doubleVar = cellMatrix({1,2,3}).asElement(); //Get the element in the cell array at position (1,2,3) (0-based), casting it as a double Element +matioCpp::Element doubleVar = cellArray({1,2,3}).asElement(); //Get the element in the cell array at position (1,2,3) (0-based), casting it as a double Element doubleVar = 3.14; //Set the doubleVar to a new value -assert(cellMatrix({1,2,3}).asElement()() == 3.14); //Also the original cell array is modified, but not in the file. +assert(cellArray({1,2,3}).asElement()() == 3.14); //Also the original cell array is modified, but not in the file. ```