whats wrong with this code?

조회 수: 3 (최근 30일)
Muazma Ali
Muazma Ali 2021년 12월 17일
답변: Muazma Ali 2021년 12월 17일
Hi!
I am wondering what is wrong with the code below:
When my program comes to the execution of this line code , I get the error message as statred below.
(vannaktivitet_kalsiumklorid_losning==vannaktivitet_magnesiumklorid_losning)&&(vannaktivitet_kalsiumklorid_losning==vannaktivitet_ammoniumklorid_losning)
this is the error message I get:
Operands to the || and && operators must be convertible to
logical scalar values.
How am I else suppose to write the code if this is the incorrect way of writing the code?

답변 (1개)

Muazma Ali
Muazma Ali 2021년 12월 17일
will the code above not execute if vannaktivitet_kalsiumcloride or the other variables are decimal numbers..?

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by