Info

This question is closed. Reopen it to edit or answer.

need help with conditional statement

1 view (last 30 days)
Steve Avilesmejia
Steve Avilesmejia on 26 Aug 2020
Closed: MATLAB Answer Bot on 20 Aug 2021
Need help with the line that checks for size.
  1 Comment
Rik
Rik on 28 Aug 2020
You forgot to respond here, and you forgot to tag your follow up question as homework.

Answers (1)

madhan ravi
madhan ravi on 26 Aug 2020
isequal(size(A), size(B))
  1 Comment
madhan ravi
madhan ravi on 26 Aug 2020
Feed that to assert() with a custom error message.
doc assert

This question is closed.

Community Treasure Hunt

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

Start Hunting!