Info

此问题已关闭。 请重新打开它进行编辑或回答。

I have 2 set of numbers A & B with elements 1-10, I want to determine an expression which requires different values of A & B such like, when A>=6 and B<=3 but my if statement giving the error || and && must be convertible to logical scalar

1 次查看(过去 30 天)
I have 2 set of numbers A & B with elements 1-10, I want to determine an expression which requires different values of A & B such like, when A>=6 and B<=3 but my if statement giving the error || and && must be convertible to logical scalar

回答(1 个)

Walter Roberson
Walter Roberson 2015-6-29
Don't use && and || then. Use & and |

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by