Code not running when using &&
显示 更早的评论
Why is my code not running when using a && operator??
for i = 1:length (Power); if Power (i,1) >= 0.3*(max(Power)); Power_Boolean(i,1) = 1; else Power_Boolean(i,1) = 0; end end
for i = 1:length (RPM_Boolean); if (RPM_Boolean == 1) & (Torque_Boolean == 1) & (Power_Boolean == 1); Condition(i,1) = 1; else Condition (i,1) = 0; end end
I want to have the values where all three conditions are met
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Language Fundamentals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!