How to chnage the coefficent for transfer function?
2 views (last 30 days)
Show older comments
How do I change the 'deng' coefficient where it shows (s+11.17)(s+10.89)(s^2+0.033s+0.553) at the end. Trying to figure out but been stuck. Let me the changes need to made ASAP:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1607951/image.png)
0 Comments
Answers (3)
Sam Chak
on 5 Feb 2024
Edited: Sam Chak
on 7 Feb 2024
I believe that the following result is probably what you are seeking.
Update 2: As per what you want.
numg = conv([1 0.37], [1 2.26]);
deng = [ 1, 22.093, 122.92228, 16.2133429, 67.2676389];
K = -8;
G = zpk(K*tf(numg, deng))
Update 1: There is probably a typo in the denominator in your original code.
numg = [-0.37, -2.26];
% deng = [ 1, 22.093, 122.92228, 16.2133429, 6.72676389]; % <-- there is probably a mistake here
deng = [ 1, 22.093, 122.92228, 16.2133429, 67.2676389];
K = -8;
% G = zpk(numg, deng, K)
G = zpk(K*tf(numg, deng))
2 Comments
Sam Chak
on 7 Feb 2024
Take a look at Update 2 above. If you find the solution helpful, please consider clicking 'Accept' ✔ on the answer and voting 👍 for it. Thanks a bunch! By the way, you should also vote for other helpful answers as tokens of appreciation.
Hassaan
on 4 Feb 2024
@Shambaven Srimurugathas Try this:
% Define the coefficients for the denominator polynomial
deng = [1, 22.093, 122.92228, 16.2133429, 6.72676389];
% Assuming numg and K have been defined correctly as before
numg = [-0.37 -2.26];
K = -8;
% Create the zero-pole-gain model
G = zpk(numg, deng, K);
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Professional Interests
- Technical Services and Consulting
- Embedded Systems | Firmware Developement | Simulations
- Electrical and Electronics Engineering
Feel free to contact me.
2 Comments
Star Strider
on 4 Feb 2024
What do you want to change it to?
The displayed result is the format that the zpk function produces. If you want them otherwise, omit the zpk call, and just multiply the numerator by -8.
1 Comment
See Also
Categories
Find more on National Instruments Frame Grabbers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!