need help with conditional statement

Need help with the line that checks for size.

1 commentaire

Rik
Rik le 28 Août 2020
You forgot to respond here, and you forgot to tag your follow up question as homework.

Réponses (1)

madhan ravi
madhan ravi le 26 Août 2020
isequal(size(A), size(B))

1 commentaire

Feed that to assert() with a custom error message.
doc assert

Cette question est clôturée.

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by