Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Importing data using GUI

2 vues (au cours des 30 derniers jours)
Dzhamshed
Dzhamshed le 24 Juil 2012
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hello to everyone, I have got an *.xlsx database, which refreshes each 20 sec and add some rows of data. I need to make a GUI to make some temp-time graph, with an ability of saving graphs. How can I do this? I don'tknow anything about MATLab, I tried like here http://blogs.mathworks.com/videos/2007/08/13/video-series-reading-excel-data-into-matlab-with-a-gui/ it seems to be the thing I want. But it doesn't work I don't know why. Please, help me if you are able.

Réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 25 Juil 2012
Modifié(e) : Azzi Abdelmalek le 25 Juil 2012
%try this
for k=1:24
data=xlsread('exemple.xlsx') %data is an array that contains your data
n=size(data,1) % n: number of rows
plot(data) % plot data in one figure(it's up to you how you want to plot
filename=strcat('file',num2str(k)) %create files: file1 file2 file3...
save(filename,'data') %save data in file 1, after 1hour it saves on file2...
pause(3600) % wait one hour, then repeat .
end

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by