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 7809479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:26:58+00:00 2026-06-02T03:26:58+00:00

I am trying to load feature vectors into classifiers such as a k-nearest neighbors

  • 0

I am trying to load feature vectors into classifiers such as a k-nearest neighbors classifier.

I have my code for GLCM, so I get contrast, correlation, energy, homogeneity in numbers (feature vectors).

My question is, how can I save every set of feature vectors from all the training images? I have seen somewhere that people had a .set file to load into classifiers (may be it is a special case for the particular classifier toolbox).

load 'mydata.set';

for example.

I suppose it does not have to be a .set file.
I’d just need a way to store all the feature vectors from all the training images in a separate file that can be loaded.

I’ve google,
and I found this that may be useful
but I am not entirely sure.

Thanks for your time and help in advance.

Regards.

  • 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-02T03:26:59+00:00Added an answer on June 2, 2026 at 3:26 am

    If you arrange your feature vectors as the columns of an array called X, then just issue the command

    save('some_description.mat','X'); 
    

    Alternatively, if you want the save file to be readable, say in ASCII, then just use this instead:

    save('some_description.txt', 'X', '-ASCII');
    

    Later, when you want to re-use the data, just say

    var = {'X'}; % <-- You can modify this if you want to load multiple variables.
    
    load('some_description.mat', var{:});
    load('some_description.txt', var{:}); % <-- Use this if you saved to .txt file.
    

    Then the variable named 'X' will be loaded into the workspace and its columns will be the same feature vectors you computed before.

    You will want to replace the some_description part of each file name above and instead use something that allows you to easily identify which data set’s feature vectors are saved in the file (if you have multiple data sets). Your array of feature vectors may also be called something besides X, so you can change the name accordingly.

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

Sidebar

Related Questions

i m trying load UIImages from server asynchronously in UITableViewCell. My code worked fine
I have a problem with out of memory when I'm trying load a few
trying to load in a bunch of images into a list from a directory...my
Im trying to load a image at runtime in WPF using the following code
I am trying to load a very basic XML document but everytime I get
I'm trying to load Gravatars into Flash. Luckily, they provided a crossdomain.xml file at
I'm trying to load a new view into an existing view controller, but I
I'm trying to have a background image on an image control in WPF, such
I have been trying to get slimv (http://www.vim.org/scripts/script.php?script_id=2531) working for a while now, but
I am trying to design an Picture Upload feature into a web site. I

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.