How to chnage the coefficent for transfer function?
4 次查看(过去 30 天)
显示 更早的评论
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:
0 个评论
回答(3 个)
Sam Chak
2024-2-5
编辑:Sam Chak
2024-2-7
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 个评论
Sam Chak
2024-2-7
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
2024-2-4
@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 个评论
Star Strider
2024-2-4
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!