Andre3600
Andre3600

Reputation: 17

Operands to the || and && operators must be convertible to logical scalar values. Symbolic vars

Operands to the || and && operators must be convertible to logical scalar values.

the code is to evaluate the editfield if they are empty, there an equation is inserted in each one; what I am trying to do is that if the fields of the editfield are empty, the error will appear, but if not, the code will be executed; the error I mention in the title

        cla;
        syms x y ;
        Eqn1=str2sym(app.Ecu1.Value);
        Eqn2=str2sym(app.Ecu2.Value);
        if (isnan(Eqn1) || isnan(Eqn2))
            errordlg('File not found','File Error');
        else
            %ejecute code
        end

Upvotes: 0

Views: 167

Answers (0)

Related Questions