Datatip, GUI screen and open Excel questions
Mostrar comentarios más antiguos
Hello!
Can please someone help me with a simple qustions.
1) I have a plot in my GUI and I enabled Data Cursor. Because I have dates on my X, I converted it successfully. But now, I want to add a character(g) to the Y.
Y is a number(mass in grams), so I just want the datatip showing grams next to the mass value.
pos = get(event_obj,'Position');
output_txt = {['Datum: ',datestr(pos(1), 'dd.mmm.yyyy')],...
['Masa: ',num2str(pos(2))]};
2) When I run my GUI, I want it to be in the center of the screen. I used movegui(center), but it did nothing. Where should I even place the command in my GUI code?
3) I want my GUI to open an .xls file in Excel and not in Editor.
Slobodan
Respuesta aceptada
Más respuestas (2)
Titus Edelhofer
el 30 de Nov. de 2011
Hi,
for 1): do you mean this:
output_txt = {['Datum: ',datestr(pos(1), 'dd.mmm.yyyy')],...
['Masa: ',num2str(pos(2)) 'g']};
3) Don't undertstand the question...
Titus
Slobodan Djordjevi?
el 30 de Nov. de 2011
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!