Upper script Variable in the text
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a fit equation like
a*x^b
I am obtaining the coefficients like this
COEFF = coeffvalues(fittedmodel) a=COEFF(1) b=COEFF(2)
And try to write the equation on plot window.But the upper script (^b section) is always failing. Only the minus sign goes to uppersciprt always
Here is the code
txt = ['y=', num2str(a) ,'*x','^', num2str(b)]
text(50,999,txt);
Any Help???
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!