need help with conditional statement

Need help with the line that checks for size.

1 Comment

You forgot to respond here, and you forgot to tag your follow up question as homework.

Answers (1)

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

1 Comment

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

This question is closed.

Asked:

on 26 Aug 2020

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!