Trying to separate Quaternion coefficients into array.
Mostrar comentarios más antiguos
function g = actfun(q) % Activity function is LTF
gw = (abs(q.w+1)-abs(q.w-1))/2;
gx = (abs(q.x+1)-abs(q.x-1))/2;
gy = (abs(q.y+1)-abs(q.y-1))/2;
gz = (abs(q.z+1)-abs(q.z-1))/2;
g = quaternion(gw,gx,gy,gz);
end
Here q is a quaternion
Unrecognized method, property, or field 'w' for class 'quaternion'.
Error in plotQVNNs>actfun (line 71)
gw = (abs(q.w+1)-abs(q.w-1))/2;
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Axes Transformations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!