need help with conditional statement

Need help with the line that checks for size.

1 Commento

Rik
Rik il 28 Ago 2020
You forgot to respond here, and you forgot to tag your follow up question as homework.

Risposte (1)

isequal(size(A), size(B))

1 Commento

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

Questa domanda è chiusa.

Richiesto:

il 26 Ago 2020

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by