% figure % plot3(...); % xlabel('X轴'); % ylabel('Y轴'); % zlabel('Z轴'); % title('标题'); % grid on %打开网格 % % for i=1:2:360 % %view(a,b):a是角度,b是仰视角 % view(i,20); % pause(0.06); % end 例子,show_3D.m: clear all; close all; clc a=cell(384,1); folder = 'F:\F桌面文件\New_data\bin_2'; files = dir([folder '\*.txt']); for i = 1 : length(files) name = files(i).name; a{i} = load(name); end t = cat(1,a{:}); x = t(:,1); y = t(:,2); z = t(:,3); % subplot(2,2,4); pic4=plot3(x,y,z,'r.'); xlabel('X'); ylabel('Y'); zlabel('Z'); title('全部txt的X-Y-Z变化趋势');标签:files,name,三维,视图,Matlab,plot3,txt From: https://www.cnblogs.com/liylllove/p/17912896.html