MATLAB: Undefined operator ‘-‘ for input arguments of type ‘cell’.

error

Having this error. I just want to subtract the data in my cell.
l = Data(:,total+4);
b = Data(:,total+5);
disp(l-b);

Best Answer

l = Data{:,total+4};
b = Data{:,total+5};
disp(l-b);
YOu have to access cell's by {}.