MATlab display calculated answer

1 次查看(过去 30 天)
Hello Support,
quick question in my GUI code I would love MATlab to give me an alert how many spaces are left in the command line. I have it set for 10 cars in line 98 and it gives me the result in my GUI graph but not in the command line. What would I have to imporive to let it do both?
Thank you so so much in advance

采纳的回答

Walter Roberson
Walter Roberson 2020-12-7
fprintf('%d spaces left\n', 10-handles.Num_object);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by