24小时热门版块排行榜    

查看: 372  |  回复: 2

SETSUNALI

铁杆木虫 (著名写手)

[求助] matlab问题求教!

是帮我一个朋友问的
两个参数的结果应该怎样写?


Here is the signature:
%Input
% poly : coefficient vector of a polynomial
%Output
% positiveRo o t s : list of the roots of poly where the real part is positive
%Example
% I f the polynomial i s -60 +x^4-5x^3-3x^2 +43x ,
% then poly =[1 ,-5 ,-3 ,43 ,-60] ;
% and positiveRoots = [ 4 , 2+i , 2-i ] .
%Example
% cn positiveRoot ( [ 1 , 2 ] ) gives [ ] .
function [ positiveRoots ] = cn_positiveRoot ( poly )
code here
end




谢谢大家
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

tb25604

银虫 (小有名气)

【答案】应助回帖

感谢参与,应助指数 +1
好像没说清楚,是求方程-60 +x^4-5x^3-3x^2 +43x=0的根吗?
如果是,建议利用Matlab中的Help看看,里面一般都有较为简洁清晰的例题借鉴。
祝你好运!
2楼2013-01-26 10:31:23
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

SETSUNALI

铁杆木虫 (著名写手)

引用回帖:
2楼: Originally posted by tb25604 at 2013-01-26 10:31:23
好像没说清楚,是求方程-60 +x^4-5x^3-3x^2 +43x=0的根吗?
如果是,建议利用Matlab中的Help看看,里面一般都有较为简洁清晰的例题借鉴。
祝你好运!

3楼2013-01-26 23:27:37
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 SETSUNALI 的主题更新
信息提示
请填处理意见