Info

This question is closed. Reopen it to edit or answer.

format long does not work in a function

1 view (last 30 days)
marziye ghasemi
marziye ghasemi on 26 Nov 2018
Closed: Walter Roberson on 26 Nov 2018
i have a function i want to calculate in long format and i added ;
origFormat = get(0, 'format');
format('long');
% -- Work in long format --
set(0,'format', origFormat);
at the first line. but the output is in short fomat.

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!