Tags: array, copy, copying, editor, excelfile, face, format, hii, matlab, paste, pasting, programming, strange, textfile

Copying and Pasting

On Programmer » Matlab

3,573 words with 3 Comments; publish: Fri, 02 May 2008 00:47:00 GMT; (20078.13, « »)

Hi

I am trying to copy and paste some data from array editor into a textfile or

excel

file. I face a strange problem. I choose the format long and copy some data

from one array editor and try to paste it to another editor. Surprisngly MAT

LAB

does not pate is as format long. It ignores digits after some decimal points

. For

expample I copy 0.00000345678643 but when I paste this, MATLAB shows only

0. Does anyone know that why this is happening?

Regards

Naveen

All Comments

Leave a comment...

  • 3 Comments
    • In article <foq2ok$n30$1.matlab.itags.org.fred.mathworks.com>,

      Naveen <naveenyadav.matlab.itags.org.gmail.com> wrote:

      >I am trying to copy and paste some data from array editor into a textfile o

      r excel

      >file. I face a strange problem. I choose the format long and copy some dat

      a

      >from one array editor and try to paste it to another editor. Surprisngly MA

      TLAB

      >does not pate is as format long. It ignores digits after some decimal point

      s. For

      >expample I copy 0.00000345678643 but when I paste this, MATLAB shows only

      >0. Does anyone know that why this is happening?

      I see the same issue if the grid lines are shown in the array editor,

      but I do not see the same issue if the grid lines are not there.

      The grid lines show up for 1D or 2D vectors but do not seem to appear

      for 3D vectors.

      "There are some ideas so wrong that only a very intelligent person

      could believe in them." -- George Orwell

      #1; Fri, 02 May 2008 00:48:00 GMT
    • "Naveen " <naveenyadav.matlab.itags.org.gmail.com> wrote in message

      <foq2ok$n30$1.matlab.itags.org.fred.mathworks.com>...

      > Hi

      > I am trying to copy and paste some data from array editor

      into a textfile or excel

      > file. I face a strange problem. I choose the format long

      and copy some data

      > from one array editor and try to paste it to another

      editor. Surprisngly MATLAB

      > does not pate is as format long. It ignores digits after

      some decimal points. For

      > expample I copy 0.00000345678643 but when I paste this,

      MATLAB shows only

      > 0. Does anyone know that why this is happening?

      > Regards

      > Naveen

      if you're putting it into excel, excel will round values.

      make sure that the format of the cell you're entering it

      into in excel (right-click on the cell, cell properties) is

      set to number and set a high number of decimal places to

      make sure that that's not the problem.

      #2; Fri, 02 May 2008 00:49:00 GMT
    • "Ian Clarkson" <ian.clarkson.matlab.itags.org.gesturetek.com> wrote in message

      <foq4cv$dg2$1.matlab.itags.org.fred.mathworks.com>...

      > "Naveen " <naveenyadav.matlab.itags.org.gmail.com> wrote in message

      > <foq2ok$n30$1.matlab.itags.org.fred.mathworks.com>...

      > into a textfile or excel

      > and copy some data

      > editor. Surprisngly MATLAB

      > some decimal points. For

      > MATLAB shows only

      > if you're putting it into excel, excel will round values.

      > make sure that the format of the cell you're entering it

      > into in excel (right-click on the cell, cell properties) is

      > set to number and set a high number of decimal places to

      > make sure that that's not the problem.

      I will try to implement your advice. However even in MATLAB itself this is

      happening. For example if I copy some data from one row to other row.

      MATLAB also round off the data. Which is very strange.

      #3; Fri, 02 May 2008 00:50:00 GMT