From 3c4ba55734f126d7a62ae27aa07f1c5d16a12717 Mon Sep 17 00:00:00 2001 From: serkan tan Date: Tue, 4 Oct 2022 09:57:39 +0300 Subject: [PATCH] Update README.md Typo fix for the variable name. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. ```