%读取卫星编号
if ~icount == 0;
Prn{icount,iresert} = Satelite_ID; %历元与卫星编号数组
tempsat_pos = {icount,Satelite_ID,X,Y,Z};
satpos={tempsat_pos;satpos};
end
这段代码 satpos 之后变成了这样
satpos={tempsat_pos;satpos};
想要实现这样的效果应该如何修改
%读取卫星编号
if ~icount == 0;
Prn{icount,iresert} = Satelite_ID; %历元与卫星编号数组
tempsat_pos = {icount,Satelite_ID,X,Y,Z};
satpos=[tempsat_pos;satpos]; % 这里改成 [ ]
end
附:把cell1(A)的值合并到cell2(B)中
%%
clc;
clear all;
A = {'1', '2', '3'; '4', '5', '6'};
B = {'7', '8', '9'; '10', '11', '12'};
%%
% 把A存在B里
B = [B; A];