Info

此问题已关闭。 请重新打开它进行编辑或回答。

Displaying the FIR filter coefficent...

1 次查看(过去 30 天)
Yunsung Kim
Yunsung Kim 2011-12-23
关闭: MATLAB Answer Bot 2021-8-20
Hi
Here is calculated FIR filter coefficent "-1.5422e-05" in the uitable.
I need the answer is shown like this "-0.000015422" without "e"
The command "format long g" is not working.. the 'e' still is shown.
So..how can i do this?
I have to copy the filter coeffient and paste to other application.

回答(1 个)

Walter Roberson
Walter Roberson 2011-12-23
The only way to do it is to make the entry a string and format the value as a string before writing it to the table. (Make sure to convert it back from a string before using it.)
The only alternative numeric format for uitable is "bank".
The "format" command does not affect uitable at all (only disp() and display())

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by