1

I got a little problem with following MATLAB code:

obj.valueH = vectorValue(obj.E) / Z0;
obj.H = obj.vH * obj.valueH;

Those are values for variables used in that code:

                 E: [2.4431 +12.0558i 0 3.8736e-016 +3.4863e-016i]
                vH: [0 1 0]
            valueH: 0.0065 + 0.0320i
                Z0: 376.7303
vectorValue(obj.E): 2.4431 +12.0558i

Unfortunately instead of simple vH and valueH multiplication I get following error:

??? Error using ==> mtimes
Complex integer arithmetic is not supported.

Error in ==> point>point.point at 39
        obj.H = obj.vH * obj.valueH;

May I kindly ask you for an explanation what is wrong?

4

0 回答 0