I want to extract the coefficient of P in fractional form equal to or more than 5 decimal points

조회 수: 1 (최근 30일)
c
clear all
clc
syms s
a=-0.01;
wn=3.06309;
k1=0.5;
k2=-1;
td=0.1;
wf=3.43;
zf=0.175;
P = (s^2+a*s+wn^2)*(s^2+2*zf*wf*s+wf^2);
coeffs(P)
now from the program i want to extract the coefficient of P in fractional form equal to or more than 5 decimal points the output is like
[ 17491108526356076144474795390179/158456325028528675187087900672, 12549355434302586327/1125899906842624000, 37181815892978056717/1759218604441600000, 2381/2000, 1 ]. Now how to get the coefficients in fractional form??

답변 (0개)

카테고리

Help CenterFile Exchange에서 NaNs에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by