transform fprintf in disp
显示 更早的评论
hey, how do i turn this:
fprintf('\nPara i= %d\n e a= %f e a resposta é: %f ', i, n, c)
into the function disp?
1 个评论
Ameer Hamza
2020-5-19
Can you further explain what is your intended output?
回答(1 个)
Tommy
2020-5-20
Maybe this?
disp(sprintf('\nPara i= %d\n e a= %f e a resposta é: %f ', i, n, c))
You'll get a warning that fprintf is preferred.
类别
在 帮助中心 和 File Exchange 中查找有关 Quaternion Math 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
