我如何添加一个额外的额外的数据覆盖总体传奇3 x1次要情节,也已经有一个传奇的3块吗?
4视图(30天)
显示旧的评论
莎拉
2013年8月2日
我正在写一个脚本,该脚本创建一个3 x1次要情节的各种数据读入文本文件。最后绘制动态变化,取决于在从文件读取数据。一旦它们被绘制,我需要覆盖的每个情节用符号表示不同的行动的阴谋。这些行动将需要一个传奇。然而,只有1传说是必要的,因为他们都是相同的符号。每一个次要情节都有自己的传说,从每一个次要情节与数据。我想知道如果有可能有第四个传说在这个阴谋的符号覆盖3块。当这些符号覆盖在土地上,可能有8个符号。并不是所有使用它将使用之前是未知的。我想我可以有一个硬编码的传说8可能符号放置在一边的次要情节,然后都说即使他们不是所有使用。 Any ideas on how to go about this would be appreciated. Thank you. I don't know that it's helpful to add the code I'm working on here, as its very long, but I would be happy to share it if it would help.
4评论
dpb
2013年8月3日
想到的一个想法是覆盖另一个次要情节地区界限轴轴并添加“super-legend”。找到一块地把它放在可能是个问题。
我认为你可以出现你想实现的本质,并提供一个示例代码w /随机iputs还是直线和post,哦,我想说25行。(我可以确定那首歌? ? ?笔记!:))并不需要所有的复杂性完整的看到显示的要点。
莎拉
2013年8月5日
我想要1传说第二组数据,这将出现在每一个图:野田佳彦nodB, nodX,优柔寡断,洛杉矶,ta_pos_goto coord_init, coord_correct。我正在想这个传说甚至可以出现在另一个图窗口,以防它占用太多空间的图3 x1次要情节。否则,我可以把它从一方或下面相同的图窗口原来的次要情节。这是绘制数据集的代码。
% %创建一个3 x1的条形图表3上面描述的情节。
图(1)
次要情节(1,1)
%的情节1从陀螺漂移数据获取的数据。
plot1 =情节(时间、ta_tsc_tsc_mcs_hk_atc_gyro_drift_el“b”次,ta_tsc_tsc_mcs_hk_atc_gyro_drift_xel‘g’次,ta_tsc_tsc_mcs_hk_atc_gyro_drift_los“r”);
网格在
legend1 =传奇(plot1 legendArray1,“位置”,“最佳”);
集(legend1,“字形大小”10);
datetick (“x”,“HH: MM: SS”,“keeplimits”)
标题([“TA陀螺漂移”UTtimeCharArray (19)“- - >”UTtimeCharArray(结束,12点)“犹他”),“字形大小”,10)
xlim ([min(次),max(次)])
包含(“时间(UT)”);
ylabel (“漂移(" /秒)”);
持有在
% %添加命令从斯科特米勒的hk_monitor_plot_03_5标记代码
%这段代码标志着情节的时候指定命令的字符串
%的log_parsing作为参数传递给函数。这段代码可能会
%注释掉了和通常的hk_monitor_plot应该没有问题。
start_time = * (1);
end_time = *(长度(次));
%用户选择日志文件目录。Gr_F111的日志文件
%以下路径:/用户/ sofiauser / GreatCommisioningFlights / 2013 - 07 - 12 _gr_f111 /日志/ cmdlogs
如果~ (“LogDir”,“var”)
显示器(“选择日志文件目录”)
LogDir = uigetdir (“~ / GreatCommisioningFlights”,“选择日志文件目录”)
结束
cd (LogDir)
%如果日志文件目录不正确的选择,如果你导航到一个
%不同的目录并选择日志文件将不能正常开放
如果~ (“logname”,“var”)
logname = uigetfile (“~ / * . txt”,“选择日志文件来识别和绘制命令”)
结束
[log_file] = command_log_read_in (logname);
%的命令结构定义
%注意:修改“plot_yaxis”领域,让它工作在情节;例如,
%轴上的一些变化限制在plot_y_axis变量捕获
plot_y_axis = ylim;
命令= command_marker_definitions (plot_y_axis);
%选择命令你想覆盖在重心的阴谋
%选择“正确的”,否则将“假”
commands.nodA。切换= true;
commands.nodB。切换= true;
commands.nodX。切换= true;
commands.dither。切换= true;
commands.LOS。切换= true;
commands.ta_pos_goto。切换= true;
commands.coord_init。切换= true;
commands.coord_correct。切换= true;
%这个检查如果用户选择切换是真的,然后情节
%合适的命令次图
如果commands.nodA。切换= = true;
[plot1,命令。野田佳彦]= command_marker_plot_v2 (log_file commands.nodA,“命令日志”,end_time start_time plot1);
结束
如果commands.nodB。切换= = true;
[plot1,命令。nodB] = command_marker_plot_v2 (log_file commands.nodB,“命令日志”,end_time start_time plot1);
结束
如果commands.nodX。切换= = true;
[plot1,命令。nodX] = command_marker_plot_v2 (log_file commands.nodX,“命令日志”,end_time start_time plot1);
结束
如果commands.dither。切换= = true;
[plot1,命令。犹豫]= command_marker_plot_v2 (log_file commands.dither,“命令日志”,end_time start_time plot1);
结束
如果commands.LOS。切换= = true;
[plot1,命令。洛]= command_marker_plot_v2 (log_file commands.LOS,“命令日志”,end_time start_time plot1);
结束
如果commands.ta_pos_goto。切换= = true;
[plot1,命令。ta_pos_goto] = command_marker_plot_v2 (log_file commands.ta_pos_goto,“命令日志”,end_time start_time plot1);
结束
如果commands.coord_init。切换= = true;
[plot1,命令。coord_init] = command_marker_plot_v2 (log_file commands.coord_init,“命令日志”,end_time start_time plot1);
结束
如果commands.coord_correct。切换= = true;
[plot1, commands.coord_correct。切换]= command_marker_plot_v2 (log_file commands.coord_correct,“命令日志”,end_time start_time plot1);
结束
次要情节(1、2)
plot2 =情节(时间、ta_trc_trc_tracking_table_cent_ref_track_aoi“b”次,ta_trc_trc_tracking_table_cent_ref_track_camera‘g’次,ta_trc_trc_rof_table_ref_rof1_aoi“r”次,ta_trc_trc_rof_table_ref_rof2_aoi“k”);
网格在
legend2 =传奇(plot2 legendArray2,“位置”,“最佳”,“翻译”,“没有”);
集(legend2,“字形大小”10);
datetick (“x”,“HH: MM: SS”,“keeplimits”)
标题([“助教跟踪子系统”UTtimeCharArray (19)“- - >”UTtimeCharArray(结束,12点)“犹他”),“字形大小”,10)
xlim ([min(次),max(次)])
ylim ([min (ta_trc_trc_tracking_table_cent_ref_track_aoi), max (ta_trc_trc_tracking_table_cent_ref_track_aoi) + 1])
包含(“时间(UT)”);
ylabel (“价值”);
持有在
%这个检查如果用户选择切换是真的,然后情节
%合适的命令次图
plot_y_axis = ylim;
命令= command_marker_definitions (plot_y_axis);
%选择命令你想覆盖在重心的阴谋
%选择“正确的”,否则将“假”
commands.nodA。切换= true;
commands.nodB。切换= true;
commands.nodX。切换= true;
commands.dither。切换= true;
commands.LOS。切换= true;
commands.ta_pos_goto。切换= true;
commands.coord_init。切换= true;
commands.coord_correct。切换= true;
如果commands.nodA。切换= = true;
[plot2,命令。野田佳彦]= command_marker_plot_v2 (log_file commands.nodA,“命令日志”,end_time start_time plot2);
结束
如果commands.nodB。切换= = true;
[plot2,命令。nodB] = command_marker_plot_v2 (log_file commands.nodB,“命令日志”,end_time start_time plot2);
结束
如果commands.nodX。切换= = true;
[plot2,命令。nodX] = command_marker_plot_v2 (log_file commands.nodX,“命令日志”,end_time start_time plot2);
结束
如果commands.dither。切换= = true;
[plot2,命令。犹豫]= command_marker_plot_v2 (log_file commands.dither,“命令日志”,end_time start_time plot2);
结束
如果commands.LOS。切换= = true;
[plot2,命令。洛]= command_marker_plot_v2 (log_file commands.LOS,“命令日志”,end_time start_time plot2);
结束
如果commands.ta_pos_goto。切换= = true;
[plot2,命令。ta_pos_goto] = command_marker_plot_v2 (log_file commands.ta_pos_goto,“命令日志”,end_time start_time plot2);
结束
如果commands.coord_init。切换= = true;
[plot2,命令。coord_init] = command_marker_plot_v2 (log_file commands.coord_init,“命令日志”,end_time start_time plot2);
结束
如果commands.coord_correct %。切换= = true;
% (plot2 commands.coord_correct。切换]= command_marker_plot_v2 (log_file commands.coord_correct,“命令日志”,start_time,end_time,plot2);
%结束
次要情节(3、1,3)
% %除了最后的情节
% 3一致的元素的情节
hplt =情节(时间、coord_pos_sibs_xfpi“m——”,“DisplayName的”,“coord \ _pos \ _sibs \ _xfpi”);
持有在
hplt =情节(时间、coord_pos_sibs_yfpi“米”,“DisplayName的”,“coord \ _pos \ _sibs \ _yfpi”);
持有在
hplt =情节(时间、coord_pos_fpi_fov_vpa“k”,“DisplayName的”,“coord \ _pos \ _fpi \ _fov \ _vpa ');
持有在
hleg =传奇(“-DynamicLegend”);
集(hleg,“字形大小”10);
网格在
datetick (“x”,“HH: MM: SS”,“keeplimits”)
标题([“FPI同胞的位置”UTtimeCharArray (19)“- - >”UTtimeCharArray(结束,12点)“犹他”),“字形大小”,10)
xlim ([min(次),max(次)])
包含(“时间(UT)”);
ylabel (“价值”);
持有在
%添加她的情节:
%找到一个独特的列表的所有跟踪她的过程中观察。从列表中删除0。
AOI_unique =独特(C2);
而isequal (AOI_unique (1), 0)
AOI_unique (1) = [];
结束
%把每个独特的光学和颜色,回收通过
%的颜色时,他们都被使用。
颜色= {' r ' ' g ' b ' c '};
colors_dashed = {“r——”“g——”“b——”“c——”};
为每个这些独一无二的苍老师的%,绘制与时间和行和列。
%的时间
为i = 1:长度(AOI_unique)
如果AOI_unique (i) = = 1
[filename_aoi_1 pathname_aoi_1] = uigetfile (“~ / * _AOI_1_out_Z.txt”,“* * _AOI_1_out_Z.txt”下选择适当的测试文件);
filepath_aoi1 = fullfile (pathname_aoi_1 filename_aoi_1);
[TimeHdr CameraID1 Col1第一行Quality1 Width1 RA1 Dec1 Error_est1] = textread (filepath_aoi1 repmat (' % s '1 9)1);
[Timecell cam1 col1第一行qual1 wid1 ra1 dec1 error1] = textread (filepath_aoi1,' % s % % f % f % % % f % f % f ',“headerlines”1);
% %的阴谋
hplt =情节(时间、col1颜色{mod(4张)+ 1},“DisplayName的”,第一列的);
持有在
hplt =情节(时间、第一行colors_dashed {mod(4张)+ 1},“DisplayName的”,的第一行);
持有在
hleg =传奇(“-DynamicLegend”);
集(hleg,“字形大小”10);
网格在
elseifAOI_unique (i) = = 2
[filename_aoi_2 pathname_aoi_2] = uigetfile (“~ / * _AOI_2_out_Z.txt”,“* * _AOI_2_out_Z.txt”下选择适当的测试文件);
filepath_aoi2 = fullfile (pathname_aoi_2 filename_aoi_2);
叫Dec2 Error_est2 [TimeHdr CameraID2 Col2 Row2 Quality2 Width2红警2]= textread (filepath_aoi2 repmat (' % s '1 9)1);
叫dec2 error2 [Timecell cam2 col2 row2 qual2 wid2红警2]= textread (filepath_aoi2,' % s % % f % f % % % f % f % f ',“headerlines”1);
% %的阴谋
hplt =情节(时间、col2颜色{mod(4张)+ 1},“DisplayName的”,第2列的);
持有在
hplt =情节(时间、row2 colors_dashed {mod(4张)+ 1},“DisplayName的”,“第2行”);
持有在
hleg =传奇(“-DynamicLegend”);
集(hleg,“字形大小”10);
网格在
elseifAOI_unique (i) = = 3
[filename_aoi_3 pathname_aoi_3] = uigetfile (“~ / * _AOI_3_out_Z.txt”,“* * _AOI_3_out_Z.txt”下选择适当的测试文件);
filepath_aoi3 = fullfile (pathname_aoi_3 filename_aoi_3);
[TimeHdr CameraID3 Col3 Row3 Quality3 Width3 RA3中Dec3 Error_est3] = textread (filepath_aoi3 repmat (' % s '1 9)1);
[Timecell cam3 col3 row3 qual3 wid3 ra3中dec3 error3] = textread (filepath_aoi3,' % s % % f % f % % % f % f % f ',“headerlines”1);
% %的阴谋
hplt =情节(时间、col3颜色{mod(4张)+ 1},“DisplayName的”,第三列的);
持有在
hplt =情节(时间、row3 colors_dashed {mod(4张)+ 1},“DisplayName的”,“第三行”);
持有在
hleg =传奇(“-DynamicLegend”);
网格在
%这个检查如果用户选择切换是真的,然后情节
%合适的命令次图
如果commands.nodA。切换= = true;
[hplt,命令。野田佳彦]= command_marker_plot_v2 (log_file commands.nodA,“命令日志”,end_time start_time hplt);
结束
如果commands.nodB。切换= = true;
[hplt,命令。nodB] = command_marker_plot_v2 (log_file commands.nodB,“命令日志”,end_time start_time hplt);
结束
如果commands.nodX。切换= = true;
[hplt,命令。nodX] = command_marker_plot_v2 (log_file commands.nodX,“命令日志”,end_time start_time hplt);
结束
如果commands.dither。切换= = true;
[hplt,命令。犹豫]= command_marker_plot_v2 (log_file commands.dither,“命令日志”,end_time start_time hplt);
结束
如果commands.LOS。切换= = true;
[hplt,命令。洛]= command_marker_plot_v2 (log_file commands.LOS,“命令日志”,end_time start_time hplt);
结束
如果commands.ta_pos_goto。切换= = true;
[hplt,命令。ta_pos_goto] = command_marker_plot_v2 (log_file commands.ta_pos_goto,“命令日志”,end_time start_time hplt);
结束
如果commands.coord_init。切换= = true;
[hplt,命令。coord_init] = command_marker_plot_v2 (log_file commands.coord_init,“命令日志”,end_time start_time hplt);
结束
如果commands.coord_correct。切换= = true;
[hplt, commands.coord_correct。切换]= command_marker_plot_v2 (log_file commands.coord_correct,“命令日志”,end_time start_time hplt);
结束
集(legendAxListener,“启用”,“上”);;
% %保存文件
任何帮助都是感激。谢谢你!
莎拉
2013年8月5日
好吧,我希望这可以帮助。谢谢你再看这个。这将是1图,数据覆盖的阴谋。我想,如果我能有一个“超级传奇”连同一个传奇1情节,它应该翻译3 x1条形图表。另一件我想,既然我还是相对较新的matlab,也许有人可以发表意见,是否我应该覆盖第二情节在第一次使用轴命令吗?然后我可以有一个单独的传说第二轴和第一。让我知道这将是一个好主意。谢谢。
苍老师= [0 0 0 0 0 0 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 3 3 3 3 3 3 3 3 3 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 8 8 8 8 8 8];
第一行= 36.5 (35 35 35 35 36 37 35 37 35 36 37 36 35 37 34 35 36 36 36 37 37 37 38 38 34 35 35 35 36.5 35 35 35 35 35 35 36 37 35 37 36 35 37 34 35 36 36 36 37 37 37 38 38 34 35 35 35 35 35);
col1 =[56 57 57 58 56 57 56 56 56 57 45岁46 46 46 44 45岁46 46 47 47 48 48 46 46 45 46 45 46 47 56 56 57 57 58 56 57 56 56 56 57 45岁46 46 46 44 45岁46 46 47 47 48 48 46 46 45 46 45 46 47);
row2 = 36.5 (35 35 35 35 36 37 35 37 35 36 37 36 35 37 34 35 36 36 36 37 37 37 38 38 34 35 35 35 36.5 35 35 35 35 35 35 36 37 35 37 36 35 37 34 35 36 36 36 37 37 37 38 38 34 35 35 35 35 35);
col2 =[56 57 57 58 56 57 56 56 56 57 45岁46 46 46 44 45岁46 46 47 47 48 48 46 46 45 46 45 46 47 56 56 57 57 58 56 57 56 56 56 57 45岁46 46 46 44 45岁46 46 47 47 48 48 46 46 45 46 45 46 47);
row3 = 36.5 (35 35 35 35 36 37 35 37 35 36 37 36 35 37 34 35 36 36 36 37 37 37 38 38 34 35 35 35 36.5 35 35 35 35 35 35 36 37 35 37 36 35 37 34 35 36 36 36 37 37 37 38 38 34 35 35 35 35 35);
col3 =[56 57 57 58 56 57 56 56 56 57 45岁46 46 46 44 45岁46 46 47 47 48 48 46 46 45 46 45 46 47 56 56 57 57 58 56 57 56 56 56 57 45岁46 46 46 44 45岁46 46 47 47 48 48 46 46 45 46 45 46 47);
row4 = 26.5(25 25 25 25 26 27 25 27 25 26 27 25 26日27日24日24日25日26日26日27日27日27日28日28日24日24日25日26日25 25 25 25 25 25 25 25 26 26.5 25 26日27日25 27日24日24日25日26日27日26日27日27日27日28日28日24日24日25日26日25 25 25 25);
col4 =[56 57 57 58 56 57 56 56 56 57 45岁46 46 46 44 45岁46 46 47 47 48 48 46 46 45 46 45 46 47 56 56 57 57 58 56 57 56 56 56 57 45岁46 46 46 44 45岁46 46 47 47 48 48 46 46 45 46 45 46 47);
row5 = 36.5 (35 35 35 35 36 37 35 37 35 36 37 36 35 37 34 35 36 36 36 37 37 37 38 38 34 35 35 35 36.5 35 35 35 35 35 35 36 37 35 37 36 35 37 34 35 36 36 36 37 37 37 38 38 34 35 35 35 35 35);
col5 = (66 67 67 68 66 67 66 66 66 67 65 65 66 66 66 64 65 65 66 66 67 67 68 68 66 66 65 66 65 66 67 66 66 67 67 68 66 67 66 66 66 67 65 65 66 66 66 64 65 65 66 66 67 67 68 68 66 66 65 66 65 66 67);
row6 = 36.5 (35 35 35 35 36 37 35 37 35 36 37 36 35 37 34 35 36 36 36 37 37 37 38 38 34 35 35 35 36.5 35 35 35 35 35 35 36 37 35 37 36 35 37 34 35 36 36 36 37 37 37 38 38 34 35 35 35 35 35);
col6 =[56 57 57 58 56 57 56 56 56 57 45岁46 46 46 44 45岁46 46 47 47 48 48 46 46 45 46 45 46 47 56 56 57 57 58 56 57 56 56 56 57 45岁46 46 46 44 45岁46 46 47 47 48 48 46 46 45 46 45 46 47);
row7 = 36.5 (35 35 35 35 36 37 35 37 35 36 37 36 35 37 34 35 36 36 36 37 37 37 38 38 34 35 35 35 36.5 35 35 35 35 35 35 36 37 35 37 36 35 37 34 35 36 36 36 37 37 37 38 38 34 35 35 35 35 35);
col7 =[56 57 57 58 56 57 56 56 56 57 45岁46 46 46 44 45岁46 46 47 47 48 48 46 46 45 46 45 46 47 56 56 57 57 58 56 57 56 56 56 57 45岁46 46 46 44 45岁46 46 47 47 48 48 46 46 45 46 45 46 47);
row8 = [2:2:126];
col8 =[56 57 57 58 56 57 56 56 56 57 45岁46 46 46 44 45岁46 46 47 47 48 48 46 46 45 46 45 46 47 56 56 57 57 58 56 57 56 56 56 57 45岁46 46 46 44 45岁46 46 47 47 48 48 46 46 45 46 45 46 47);
coord = [2:2:126];
* = [1:63];
AOI_unique =独特(AOI);
num_AOI =长度(AOI_unique);
颜色= {' r ' ' g ' b ' c '};
%,num_AOI >长度(颜色)
hplt =情节(时间、coord“DisplayName的”,“coord \ _pos \ _sibs \ _xfpi”);
持有在
hleg =传奇(“-DynamicLegend”);
集(hleg,“字形大小”10);
网格在
datetick (“x”,“HH: MM: SS”,“keeplimits”)
标题([“FPI同胞的位置”])
xlim ([min(次),max(次)])
包含(“时间(UT)”);
ylabel (“价值”);
持有在
为i = 1:长度(AOI_unique)
如果AOI_unique (i) = = 1
% %的阴谋
hplt =情节(时间、col1颜色{mod(4张)+ 1},“DisplayName的”,第一列的);
持有在
hplt =情节(时间、第一行“c——”,“DisplayName的”,的第一行);
持有在
hleg =传奇(“-DynamicLegend”);
集(hleg,“字形大小”10);
网格在
elseifAOI_unique (i) = = 2
% %的阴谋
hplt =情节(时间、col2颜色{mod(4张)+ 1},“DisplayName的”,第2列的);
持有在
hplt =情节(时间、row2“g——”,“DisplayName的”,“第2行”);
持有在
hleg =传奇(“-DynamicLegend”);
集(hleg,“字形大小”10);
网格在
elseifAOI_unique (i) = = 3
% %的阴谋
hplt =情节(时间、col3颜色{mod(4张)+ 1},“DisplayName的”,第三列的);
持有在
hplt =情节(时间、row3“b——”,“DisplayName的”,“第三行”);
持有在
hleg =传奇(“-DynamicLegend”);
网格在
elseifAOI_unique (i) = = 4
% %的阴谋
hplt =情节(时间、col4颜色{mod(4张)+ 1},“DisplayName的”,“列4”);
持有在
hplt =情节(时间、row4“r——”,“DisplayName的”,“行4”);
持有在
hleg =传奇(“-DynamicLegend”);
集(hleg,“字形大小”10);
网格在
elseifAOI_unique (i) = = 5
% %的阴谋
hpltA =情节(时间、col5颜色{mod(4张)+ 1},“DisplayName的”,“列5”);
持有在
hplt =情节(时间、row5“c——”,“DisplayName的”,“五行”);
持有在
hleg =传奇(“-DynamicLegend”);
集(hleg,“字形大小”10);
网格在
elseifAOI_unique (i) = = 6
% %的阴谋
hplt =情节(时间、col6颜色{mod(4张)+ 1},“DisplayName的”,“列6”);
持有在
hpltA =情节(时间、row6“g——”,“DisplayName的”,“行6”);
持有在
hleg =传奇(“-DynamicLegend”);
集(hleg,“字形大小”10);
网格在
elseifAOI_unique (i) = = 7
% %的阴谋
hplt =情节(时间、col7颜色{mod(4张)+ 1},“DisplayName的”,“列7”);
持有在
hplt =情节(时间、row7“b——”,“DisplayName的”,“行7”);
持有在
hleg =传奇(“-DynamicLegend”);
集(hleg,“字形大小”10);
网格在
elseifAOI_unique (i) = = 8
% %的阴谋
hplt =情节(时间、col8颜色{mod(4张)+ 1},“DisplayName的”,“列8”);
持有在
hplt =情节(时间、row8“r——”,“DisplayName的”,“行8”);
持有在
hleg =传奇(“-DynamicLegend”);
集(hleg,“字形大小”10);
网格在
结束
结束
%选择命令你想覆盖在重心的阴谋
%选择“正确的”,否则将“假”
commands.nodA。切换= true;
commands.nodB。切换= true;
commands.nodX。切换= true;
commands.dither。切换= true;
commands.LOS。切换= true;
commands.ta_pos_goto。切换= true;
commands.coord_init。切换= true;
commands.coord_correct。切换= true;
x = 0:62;
N =元素个数(x);
野田佳彦=兰德(1,N);
nodB = 5。*兰德(1,N) + 5;
nodX = 50。*兰德(1,N) -50;
优柔寡断=兰德(1,N);
洛杉矶= 5。*兰德(1,N) + 5;
ta_pos_goto = 50。*兰德(1,N) -50;
coord_init = 5。*兰德(1,N) + 5;
coord_correct = 50。*兰德(1,N) -50;
%这个检查如果用户选择切换是真的,然后情节
%合适的命令次图
如果commands.nodA。切换= = true;
hplt =情节(野田佳彦);
结束
如果commands.nodB。切换= = true;
hplt =情节(nodB *);
结束
如果commands.nodX。切换= = true;
hplt =情节(nodX *);
结束
如果commands.dither。切换= = true;
hplt =情节(优柔寡断,乘以);
结束
如果commands.LOS。切换= = true;
hplt =情节(洛杉矶时间);
结束
如果commands.ta_pos_goto。切换= = true;
hplt =情节(ta_pos_goto *);
结束
如果commands.coord_init。切换= = true;
hplt =情节(coord_init *);
结束
如果commands.coord_correct。切换= = true;
hplt =情节(coord_correct *);
结束
接受的答案
dpb
2013年8月5日
编辑:dpb
2013年8月6日
我有一个例子更像谨记以下几点…
x = 1:10;y =兰德(12、10);%绘制一些数据
l = cellstr (num2str([1:尺寸(y, 1)] "));%,标签…
何鸿燊=次要情节(3、1,1:3);阿宝=得到(ho)“位置”)%的位置
阿宝=
0.1300 0.1100 0.7750 0.8150
删除(ho)%不希望,只是位置
为i = 1:3% y在每个情节
i1和i2 = 3 = 3 *我2;*我;
hs (i) =次要情节(3 1我);
情节(x, y (i1: i2:))
传奇(l (i1: i2))%的标签…
结束
为i = 1:3%好,现在缩小情节
p = get (hs(我),“位置”);%增加轴的空间
p (3) = 0.675;%超级传奇
集(hs(我),“位置”,p)
结束
hl =轴(“位置”[0.85 - 0.11 .105 0.815]);%,轴
hlin =情节(hl, x, y);集(hlin,“可见”,“关闭”);%不传奇w / o线
集(霍奇金淋巴瘤,“可见”,“关闭”)%不希望看到轴
传奇(hl,左)%和全球的传说
类似的效果你正在寻找?(见多少实际是要求显示看看,顺便说一句吗?我把它变成20行!:)试图削减你的问题的本质,而不是整个应用程序的人试图涉水)。
显然,我做了一些“幻数”的位置尺寸;这就是为什么我得到了整体位置向量开始,我可以看看这些数字,找出一组值使用的效果。你可以使用更复杂的计算方法来生成基于实际尺寸和代码。
像往常一样,“盐适合……”:)
注:我做
不
花时间去匹配线风格;我只是让他们自动循环。如果你控制哪些风格匹配线的整体与每一个次要情节那么传说将匹配,。
1评论
更多的答案(0)
一个错误发生
无法完成的行动,因为页面所做的更改。重新加载页面更新状态。
你也可以从下面的列表中选择一个网站
表现最好的网站怎么走吗
选择中国网站(中文或英文)最佳站点的性能。其他MathWorks国家网站不优化的访问你的位置。