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

  • SEARCH
  • Home
  • 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 8380349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:26:09+00:00 2026-06-09T16:26:09+00:00

I have a MATLAB dataset and I want to extract the numbers only without

  • 0

I have a MATLAB dataset and I want to extract the numbers only without reading the headers. Is there any straightforward way to do that?

I HAVE THIS:

                                      MeanOfTrainingMSE    MeanOfTestMSE
Naive Regression                          26.291            26.327      
Linear Regression (attribute 400)         1.2466            1.2592      
Linear Regression (attribute 357)          1.214            1.2356      
Linear Regression (attribute 440)         1.1494            1.1562      
Linear Regression (attribute 404)         1.0072            1.0111      
Linear Regression (attribute 238)        0.92402           0.93002      
Linear Regression (attribute 473)        0.89838           0.90397      
Linear Regression (all attributes)    4.1155e-07            877.58      
Ridge Regression                      2.9044e-10            0.2533      
Kernel Ridge Regression                   1054.8            1023.2  

I WANT TO GET THIS:

26.291            26.327
1.2466            1.2592
1.214             1.2356
1.1494            1.1562
1.0072            1.0111
0.92402           0.93002
0.89838           0.90397
4.1155e-07        877.58
2.9044e-10        0.2533
1054.8            1023.2
  • 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-09T16:26:11+00:00Added an answer on June 9, 2026 at 4:26 pm

    If your dataset is named aFile, for example, you can retrieve the values of those columns of interest by

    >> X=[aFile.MeanOfTrainingMSE aFile.MeanOfTestMSE]
    

    Edit to answer your comment:

    There may be a better way, but you could do something like:

    >> m=length(aFile.Properties.ObsNames);
    >> n=length(aFile.Properties.VarNames);
    >> data=ones(m,n);
    >> names=aFile.Properties.VarNames; 
    >> for a =1:n
         data(:,a)=aFile.(names{a});
       end
    

    Of course this assumes each column in your data is numeric.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Matlab function that creates a cell array with matrixes inside. It
I have a Matlab program that generates a list x = 6.1692 8.1863 5.8092
I have a Matlab program that is running longer than I'd like it to.
I have a matlab GUI....I'd like to load ANY file type(doc,txt,dat,xls) into matlab as
I have a matlab script, lets call it master.m, that loads a file called
I'd like to have a MATLAB array fill a column with numbers in increments
I have a training set that has input and outputs in this way: Input:
I have some Matlab code and a GUI for it and I want to
I have written a set of Matlab functions and I want to distribute it
I have two example datasets, A and B below, that I want to join

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.