Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8685855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:40:59+00:00 2026-06-12T22:40:59+00:00

I have a txt file with data, so I used the following function M

  • 0

I have a txt file with data, so I used the following function

M = dlmread('data.txt', '\t');

But My data is getting converted to exp(-3) how do I avoid that?

Here how the data look like:

M =

   1.0e+03 *

         0    0.0080    0.3500    0.1500    4.6990    0.0145    0.0740         0
         0    0.0080    0.4000    0.1700    4.7460    0.0120    0.0710         0
         0    0.0080    0.4000    0.1750    4.3850    0.0120    0.0720         0
         0    0.0060    0.2500    0.0720    3.1580    0.0195    0.0750         0
         0    0.0080    0.3040    0.1500    3.8920    0.0125    0.0720         0
         0    0.0080    0.3500    0.1450    4.4400    0.0140    0.0750         0
         0    0.0060    0.2500    0.1050    3.8970    0.0185    0.0750         0
         0    0.0060    0.1630    0.1330    3.4100    0.0158    0.0780    0.0010
         0    0.0080    0.2600    0.1100    4.0600    0.0190    0.0770         0
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:41:00+00:00Added an answer on June 12, 2026 at 10:41 pm

    As H Muster says, this is a display issue.

    A better way (in my opinion) of displaying your data is via num2str.

    If you run

    num2str(M)
    

    you will see

    ans =
    
    0       0.008        0.35        0.15       4.699      0.0145       0.074           0
    0       0.008         0.4        0.17       4.746       0.012       0.071           0
    0       0.008         0.4       0.175       4.385       0.012       0.072           0
    0       0.006        0.25       0.072       3.158      0.0195       0.075           0
    0       0.008       0.304        0.15       3.892      0.0125       0.072           0
    0       0.008        0.35       0.145        4.44       0.014       0.075           0
    0       0.006        0.25       0.105       3.897      0.0185       0.075           0
    0       0.006       0.163       0.133        3.41      0.0158       0.078       0.001
    0       0.008        0.26        0.11        4.06       0.019       0.077           0
    

    which is probably what you were expecting in the first place.

    If you want more precision, pass a format string to num2str.

    For example:

     num2str(M,'%8g')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have state data in a txt file that I used to seed my
I have a txt file which contains data in the following format: X1 Y1
When I using the following code to read file: lines=file(data.txt).read().split(\n) I have the following
I have the following code that read input from txt file as follow Paris,Juli,5,3,6
i have a .txt file containing data like: He: 22.1 Ar: 21.1 K: 1.22
I have a file (dictionary.txt) with data field entries as follows - ABC This
I have a txt file that is generated on the server and contains newlines.
I have a txt file named 'a.txt' with the following content: Hi=Python Now, I
I have a .txt file that contains a list of names and some numbers.
hey guys, beginner here. I have written a program that outputs files to .txt's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.