quaterions to string in matlab

3 visualizzazioni (ultimi 30 giorni)
AMAL targhi
AMAL targhi il 7 Giu 2016
Risposto: James Tursa il 8 Giu 2016
i need a function like num2str for quaterions in matlab u can help me
  2 Commenti
James Tursa
James Tursa il 7 Giu 2016
Modificato: James Tursa il 7 Giu 2016
How are your quaternions stored? Can you give an example of an input and desired output?
AMAL targhi
AMAL targhi il 8 Giu 2016
for example i want to display a quaterion intp disp
for example my quaterion is dynamique his form is = [ a b c d ] and i need to display it into a loop
disp(['Iteration: ', num2str(n), ' / ' 'Error: ', num2str(network.sumsqrerr(n) / size(inputs, 2))]);
network.sumsqrerr(n) " it s a quaternion'

Accedi per commentare.

Risposta accettata

James Tursa
James Tursa il 8 Giu 2016
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))

Più risposte (0)

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by