第1个回答 2019-05-07
struct.x = rand(4,1);
struct.y = rand(4,1);
struct.z = rand(4,1);
disp([struct.x,struct.y,struct.z])
[val,ind] = sort(struct.y,'descend');
new.x = struct.x(ind,:);
new.y = struct.y(ind,:);
new.z = struct.z(ind,:);
disp([new.x,new.y,new.z])本回答被网友采纳