Skip to main content
19-Tanzanite
June 28, 2021
Solved

Transfer Function - Discrepancy Results - Mathcad vs Matlab

  • June 28, 2021
  • 2 replies
  • 11058 views

Hello,

I have a discrepancy in the results of the 2 transfer functions.
The implementations in Mathcad and Matlab are identical, so normally I should have the same result.

Mathcad result:

CornelBejan_0-1624913103033.png


Matlab result:

CornelBejan_2-1624913729983.png



What could be the reason why the 2 results would not be equal?

Thanks.

Best answer by Werner_E

Try using integer values throughout to avoid the symbolic fall into float mode (where it obviously can't cancel expressions).

Here MC15:

Werner_E_0-1624923536087.png

 

2 replies

Werner_E25-Diamond IAnswer
25-Diamond I
June 28, 2021

Try using integer values throughout to avoid the symbolic fall into float mode (where it obviously can't cancel expressions).

Here MC15:

Werner_E_0-1624923536087.png

 

Cornel19-TanzaniteAuthor
19-Tanzanite
June 29, 2021

Thank you very much.

21-Topaz II
June 29, 2021

I would do this: I define the complex pulsation s as user 1 as well as x in the program. Then I reset all the variables:

 

Cornel19-TanzaniteAuthor
19-Tanzanite
June 29, 2021

Good. Thank you very much.

@-MFra- 
Why did you delete the solution and remove the Mathcad file?

Cornel19-TanzaniteAuthor
19-Tanzanite
June 29, 2021

@-MFra- 
Maybe other users will find the solution proposed by you very useful and a very good alternative if they encounter such problems.