matlab codes for a simple matrix

2 views (last 30 days)
bassam saif
bassam saif on 11 Nov 2021
Edited: Jan on 11 Nov 2021
A =
1 2 5 7
-1 2 1 -2
4 6 8 0
how can i get these
a)a13+a12.
(b) Three times the 3rdcolumn ofA.
(c) Twice the second row ofAminus the 3rdrow.
(d) The sum of all of the columns of ofA
  4 Comments
bassam saif
bassam saif on 11 Nov 2021
like how can i add the a12 to a34
Steven Lord
Steven Lord on 11 Nov 2021
This type of basic arithmetic and indexing is covered in the MATLAB Onramp tutorial. But if you don't have the time to go through the MATLAB Onramp I recommend reading the Getting Started section of the documentation.

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!