Re: how to display real numbers



In article <ef58a35.-1@xxxxxxxxxxxxxxxxxxxxxxx>,
Paulina <paulia7@xxxxxxxxxxx> wrote:

my matrix looks smth like this:

Channel Occurrences Difference MinDiff MaxDiff wItself
1.0000 3.0000 0.0954 0.0747 0.1078 0.8576
1.0000 3.0000 0.1241 0.1011 0.1615 1.0000
1.0000 1.0000 0.1096 0.1096 0.1096 1.0000

I would like to display first two columns of it as real numbers (I
mean as 1, 2, 3, etc, and not 1.000, 2.000). But at the same time to
keep all other columns in it's current number format.
How do I do that?

How are you displaying it now?

I suggest that you use a %0.3g format

num2str([1.000 3.000 0.0954323032932],'%0.3g ')
ans =

1 3 0.0954

--
All is vanity. -- Ecclesiastes
.



Relevant Pages

  • Re: Price Data Formatting
    ... that the data format is NOT KNOWN during design time but is based on the format of the data loaded during runtime. ... In other words, perhaps you should be looking for the MAXIMUM number of decimal digits in the data items, ignoring "odd balls" that have a lot more than the average. ... The other thing we have asked that you haven't yet provided an answer to is *where are you displaying the resultant output*. ...
    (microsoft.public.vb.general.discussion)
  • Re: Cant format (erase) hard drive
    ... > well with the new C drive, I tried to format the old drive E. I ... > window is displaying the contents of the drive. ... > program or disk utility could be open since I would not have changed the ...
    (microsoft.public.windowsxp.hardware)
  • RE: Averaging Time
    ... When entering times if you enter the ... use the square brackets around the hours to prevent ... summed times converting to days and time and therfore displaying incorrectly. ... Note that you can enter the times with the dates and still format as hours ...
    (microsoft.public.excel.programming)
  • Re: ddMMMMyyyy
    ... Create a query, and explicitly format the dates there. ... > but in the Word document after merging the ... > date can appear with what should be the day displaying as ...
    (microsoft.public.access.tablesdbdesign)
  • Re: DTpicker format
    ... >> seems to indicate that you think pressing the left arrow when the ... >> field is highlighted somehow exits the control. ... First off, to find out which format the control is displaying in, simply ...
    (microsoft.public.vb.controls)