怎么用matlab解指数方程,用matlab写的这行程序 x=solve('300*1.08^(-3)+6*[1.08^(-1)+1.08^(-2)+1.08^(-3)]-x=0','x');出现这个错误:Warning:Explicit solution could not be found.是 哪里错了

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 13:42:44

怎么用matlab解指数方程,用matlab写的这行程序 x=solve('300*1.08^(-3)+6*[1.08^(-1)+1.08^(-2)+1.08^(-3)]-x=0','x');出现这个错误:Warning:Explicit solution could not be found.是 哪里错了
怎么用matlab解指数方程,
用matlab写的这行程序 x=solve('300*1.08^(-3)+6*[1.08^(-1)+1.08^(-2)+1.08^(-3)]-x=0','x');
出现这个错误:Warning:Explicit solution could not be found.是 哪里错了

怎么用matlab解指数方程,用matlab写的这行程序 x=solve('300*1.08^(-3)+6*[1.08^(-1)+1.08^(-2)+1.08^(-3)]-x=0','x');出现这个错误:Warning:Explicit solution could not be found.是 哪里错了
错误在于,你错用了括号,不能使用中括号和大括号.
>> x=solve('300*1.08^(-3)+6*(1.08^(-1)+1.08^(-2)+1.08^(-3))-x=0','x');
>> x
x =
253.61225422953818015546410608139

呵呵,完全没有错误,你看看是不是符号的问题,必须是英文半角符号才行,然后最后的分号去掉你就能看到结果了。