Displaying the FIR filter coefficent...

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.

Answers (1)

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())

This question is closed.

Asked:

on 23 Dec 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!