MATLAB Answers

how to subtract/divide corresponding rows and columns of two tables?

18 views (last 30 days)
Zeynab Mousavikhamene
Zeynab Mousavikhamene on 29 Nov 2019
Commented: J Chen on 29 Nov 2019
There are twoe tables that have the same number of columns and rows. How can I substractdivide each correpsonindg elelments?
They are very large tables (many rows and columns) so I am searching for a standard matlab command.

  0 Comments

Sign in to comment.

Answers (1)

J Chen
J Chen on 29 Nov 2019
put the tables in to two variables of matrices. Use element-wise operation: ./ or .*

  2 Comments

Zeynab Mousavikhamene
Zeynab Mousavikhamene on 29 Nov 2019
@ J Chen: As they are large table, I am searching for efficient method like a matlab command.
J Chen
J Chen on 29 Nov 2019
./ and .* are standard matlab command. they should be efficient. give them a try.

Sign in to comment.

Sign in to answer this question.

Tags