format long does not work in a function

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.

回答 (0 件)

この質問は閉じられています。

質問済み:

2018 年 11 月 26 日

閉鎖済み:

2018 年 11 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by