quaterions to string in matlab
3 次查看(过去 30 天)
显示 更早的评论
i need a function like num2str for quaterions in matlab u can help me
2 个评论
James Tursa
2016-6-7
编辑:James Tursa
2016-6-7
How are your quaternions stored? Can you give an example of an input and desired output?
采纳的回答
James Tursa
2016-6-8
I still don't know how your quaternions are stored. Maybe a class object? However, one thing you might try is converting it to a double first before calling num2str. E.g., if network.sumsqrerr(n) is a quaternion, then maybe try this formulation:
num2str(double(network.sumsqrerr(n)) / size(inputs, 2))
0 个评论
更多回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!