简体   繁体   English

如何使用Matlab在inputdlg上插入列向量

[英]How to insert a column vector on inputdlg using Matlab

I'm new on Matlab. 我是Matlab的新手。 I'm going to use inputdlg command to create a dialog box in witch I introduce my input data. 在介绍输入数据的过程中,我将使用inputdlg命令创建一个对话框。 So I've a problem, my input data aren't scalar but column vectors: 所以我有一个问题,我的输入数据不是标量而是列向量:

ex.(my input data, t1,t2....are column vector of the txt file datigaressio.txt): 例如(我的输入数据,t1,t2 ...是txt文件datigaressio.txt的列向量):

h=load('datigaressio.txt');
anni=h(:,1);

t1=h(:,2);

t3=h(:,3);

t6=h(:,4);

t12=h(:,5);

t24=h(:,6);

How can I insert this data on my dialog box?! 如何在对话框中插入这些数据?

INPUTDLG is used for very simple dialog window. INPUTDLG用于非常简单的对话框窗口。

To show the table you will have to create a dialog window by yourself (see how to use GUIDE ) and show the data using UITABLE . 要显示该表,您必须自己创建一个对话框窗口(请参阅如何使用GUIDE ),并使用UITABLE显示数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM