matlab-novice-inflammation icon indicating copy to clipboard operation
matlab-novice-inflammation copied to clipboard

Lesson Contribution - Matrix Math

Open Talishask opened this issue 3 years ago • 0 comments

I'm a member of The Carpentries staff and I'm submitting this issue on behalf of another member of the community. In most cases, I won't be able to follow up or provide more details other than what I'm providing below.


I have been reading the course material for Matlab Programming and I find out matrix mathematics is missing in this teaching which is one of the great benefits of using Matlab. It can even be used instead of "for loop" which increase the speed of programming. A section can be added that showed the difference between cross () and dot-cross (.) in addition to compare running time with tic-toc function when "for loop" and cross are used. An example of this needs a question and data set to describe.

Also, matrix mathematics can be used to solve two equation-two variables quickly. Example: 2x+3y=5 -2x+4y=10 matlab solution: A= [2 3; -2 4] B= [5; 10] [x; y] = A\B

Talishask avatar Mar 22 '21 19:03 Talishask