Why is it showing Matrix dimensions must agree and how do i fix this?

1 次查看(过去 30 天)
It shows this while i try to implement a while loop. I want the loop to keep repeating until user types the correct variable as written earlier.

采纳的回答

Walter Roberson
Walter Roberson 2018-4-14
Do not use = or ~= to compare character vectors. Use strcmp() instead.
(With R2016b or later, you can use = and ~= to compare string objects, but you are not using string objects.)
Reminder: we cannot copy and paste a screen snapshot to test with, especially when the screen snapshot cuts off the code.
  3 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by