Contents

gdivide

Generalized division

Syntax

gdivide(a,b)

Description

This function generalizes matrix element-wise division to the division of cell arrays of matrices combined in an element-wise fashion.

gdivide(a,b) takes two matrices or cell arrays, and divides them in an element-wise manner.

Examples

Here matrix and cell array values are added.

gdivide([1 2 3; 4 5 6],[10;20])
gdivide({1 2; 3 4},{1 3; 5 2})
gdivide({1 2 3 4},{10;20;30})
Was this topic helpful?