How can I plot a txt file in a GUI?

1 visualización (últimos 30 días)
Serhat Sayim
Serhat Sayim el 10 de Mzo. de 2021
Comentada: Rik el 11 de Mzo. de 2021
I have sound and flow data for 5 different patients in text form. The text files starting with yk are the data of the patients' sound and flow. 5 text files such as firstwswe, secondwswe ... are the data of the start and end points of the patients' wheezing in that sound. How can I draw these text files for each individual patient. For example, when the user selects option 1, the data of the first patient will be on the screen.I am attaching the first text files here in order to see the content of the text. I will be glad if you can help.

Respuestas (1)

Mathieu NOE
Mathieu NOE el 10 de Mzo. de 2021
hello
for each case, once you have loaded the data you can easily plot them like this :
data1 = load('yk130505sk403.txt');
samples = size(data1,1);
figure(1);
subplot(2,1,1),plot(1:samples,data1(:,1),'b');
subplot(2,1,2),plot(1:samples,data1(:,1),'r');
% you can follow the same logic for the second file
  5 comentarios
Mathieu NOE
Mathieu NOE el 11 de Mzo. de 2021
maybe someone else can figure it , I do not really work with apps
Rik
Rik el 11 de Mzo. de 2021
AddDesigner works with UIFigures.
That means you will have to explicitly state the handle to your uiaxes object in which you want to plot.

Iniciar sesión para comentar.

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by