cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

this value must be real

ptc-4346041
1-Newbie

this value must be real

Hello everyone,

My graphics don't to display because i have the errors :

this value must be real

And the second error is :

all evaluations resulted in iether an error or a complex result

Can you to help me , please.

Thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

10 REPLIES 10

Hello Olivier,

I'm not sure what your calculation is trying to produce but when you look at the values returned from the TF191 function all have a complex component & the graaph plotting routines cannot understand what to do.

One option may be to use the Re(...) function which returns only the real component.

Obviously this does lose information - so may not be the correct method

Hope this helps

Andy

This variable is undefined :

Do you can to help me ?

Thank you very much

Olivier

There was a problem in the definition of tpas. Since Nx = 0, tpas has values of 0 and -1, and -1 can't be used as a matrix subscript. H8 calculates imaginary values, so there is still a problem there.

Why xx(t.pas2) is not egal at 50 MHZ ?

I don't understand !

Thank you in advance.

Olivier

ModuleofH8(f 0, tpas2, tpas)=

this value must be real

Your function is TF191(f,tpas2), and you're plotting against tpas2. But f is a vector with many different values. If you piick one, that error goes away. (Mathcad learned error messages from Microsoft; the message is,"There's an error here, good luck.")

all evaluations resulted in iether an error or a complex result


Mathcad can't plot an imaginary result, but you can plot the real part and the imaginary part.(Usually one of them is what you want.)

My question is : How to plot a frequency of 50MHZ ans a frequency of 50.05MHz ?

My question is : How to plot 50MHz and 50.05MHz ?

Thank you very much

simple

Top Tags