How to find the roots of equations in Matlab v7.12
显示 更早的评论
how can I find roots for equation x^3=a
where a is a defined variable = 0.3 (a=0.3) and '^' means 'power'
Please help
thanks MissA
回答(2 个)
Muruganandham Subramanian
2012-12-12
编辑:Muruganandham Subramanian
2012-12-12
try this:
a=0.3;
x=nthroot(a,(-1/3));
for more info,
>>help nthroot
Walter Roberson
2012-12-12
roots([1 0 0 -a])
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!