how to stop the working of format longg after some line execute in matlab
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
format longg
t=clock;
T1=(t([5,6]))
CT=text(X6,Y6,num2str(N3),'FontWeight','bold','fontsize',12,'color','r'),pause(.4)
now i wish to format longg is used before CT execute or terminate the working of long before CT execute. because it will be long the value of CT like
CT=604.002563476563
0 Kommentare
Antworten (1)
Jan
am 13 Jun. 2015
The format command has effects only for the display in the command window. It does not concern the values inside the code. In your example format does not influence the value of T1, only the display in the command window.
The value displayed for CT is the handle of the text object. The format command is not useful here, but set a semicolon at the end of the command to suppress the output to the command window:
CT = text(X6,Y6,num2str(N3),'FontWeight','bold','fontsize',12,'color','r');
0 Kommentare
Siehe auch
Kategorien
Mehr zu Text Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!