JUK1
flipReal.m File Reference

Go to the source code of this file.

Variables

 function [stable_p]
 
we make it stable by flipping it back into the LHP Create negative mask if real part positive mask = -1*sign(real(p))
 
Flip all positive real parts zR = mask.*real(p)
 
Create new stable complex poles stable_p = zR + 1j*imag(p)
 

Variable Documentation

◆ function

function[stable_p]
Initial value:
= flipReal(p)
%FLIPREAL Flips real part of complex number if it is positive
% This function is for use with vector fitting. If a pole becomes unstable
% (moves into the RHP)
Find a complex rational model for freq domain data for a

Definition at line 1 of file flipReal.m.

◆ mask

we make it stable by flipping it back into the LHP Create negative mask if real part positive mask = -1*sign(real(p))

Definition at line 7 of file flipReal.m.

◆ stable_p

Create new stable complex poles stable_p = zR + 1j*imag(p)

Definition at line 13 of file flipReal.m.

◆ zR

Flip all positive real parts zR = mask.*real(p)

Definition at line 10 of file flipReal.m.