MATLAB Programming Techniques, Extracting Portions of a table
Hello,
in the course "Programming Techniques" theses lines show how you can extract portions of a table:
https://matlabacademy.mathworks.com/R2024a/portal.html?course=mlpr#chapter=2&lesson=4§ion=2
t2 = t1(6:15,[1 5 end-1:end])
or
t2 = t1(6:15,["A" "E" "N" "O"])
Why do I need
end-1:end
in the first version?
LisaHello,
in the course "Programming Techniques" theses lines show how you can extract portions of a table:
https://matlabacademy.mathworks.com/R2024a/portal.html?course=mlpr#chapter=2&lesson=4§ion=2
t2 = t1(6:15,[1 5 end-1:end])
or
t2 = t1(6:15,["A" "E" "N" "O"])
Why do I need
end-1:end
in the first version?
Lisa Hello,
in the course "Programming Techniques" theses lines show how you can extract portions of a table:
https://matlabacademy.mathworks.com/R2024a/portal.html?course=mlpr#chapter=2&lesson=4§ion=2
t2 = t1(6:15,[1 5 end-1:end])
or
t2 = t1(6:15,["A" "E" "N" "O"])
Why do I need
end-1:end
in the first version?
Lisa table, extract data MATLAB Answers — New Questions