WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

Finding sum of a Matrix | Loop and Break

Finding sum of a Matrix

We may use a single colon as an index into a matrix selects all the elements of the array and arranges them (in column order) into a single column vector, Like :

Example

>> A = [1,2,3; 4,5,6; 7,8,9]

A =

     1     2     3
     4     5     6
     7     8     9

>> A(:)

ans =

     1
     4
     7
     2
     5
     8
     3
     6
     9

Same colon used to find the sum of whole matrix as :

>> sum(A(:))

ans =

    45

We may find sum of Individual columns as :

>> A = [1,2,3; 4,5,6; 7,8,9]

A =

     1     2     3
     4     5     6
     7     8     9

>> sum(A)

ans =

    12    15    18
Share

You may also like...