Trying to separate Quaternion coefficients into array.
显示 更早的评论
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;
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Axes Transformations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!