Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Arrays MATLAB中的四元数数组_Arrays_Matlab_Quaternions - Fatal编程技术网

Arrays MATLAB中的四元数数组

Arrays MATLAB中的四元数数组,arrays,matlab,quaternions,Arrays,Matlab,Quaternions,我想在MATLAB中创建一个四元数数组(或向量) 我正在做一个插值,我想把插值的四元数的值存储在一个数组中 问题是如何定义这个数组,以便for循环的每个结果都存储在四元数的数据结构中 我使用机器人工具箱来计算四元数。在Matlab中,四元数是1x4向量,因此四元数数组是nx4矩阵 %create: x=zeros(n,4); %access: x(2,:)

我想在MATLAB中创建一个四元数数组(或向量)

我正在做一个插值,我想把插值的四元数的值存储在一个数组中

问题是如何定义这个数组,以便for循环的每个结果都存储在四元数的数据结构中


我使用机器人工具箱来计算四元数。

在Matlab中,四元数是1x4向量,因此四元数数组是nx4矩阵

%create:
x=zeros(n,4);
%access:
x(2,:)