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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:19:03+00:00 2026-06-11T08:19:03+00:00

New to matlab and I need some help. I need to create a .mat

  • 0

New to matlab and I need some help.

I need to create a .mat file , using matObj or save(), that has some information that will be passed from some variable. Lets say that variable x = 1,2,3,4,5

1|2|3|4|5|

Then I need to save that in test.mat

Then I need to load that file and save something like,

6|7|8|9|10|

So I get

1|2|3|4|5|

6|7|8|9|10|

and so on.

So every time I save it goes to a new row. The numbers that go inside they are not random the above numbers are just there to make things simple to see.

Can someone help me out.

  • 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-11T08:19:05+00:00Added an answer on June 11, 2026 at 8:19 am

    I’m sure any amount of googling will get you how to save a variable to a mat file – The matlab docs are absolutely spectacular, and such a simple operation will be covered along with examples showing exactly how to use the functions.

    As for the second part, use the concatenation property

    new = [old1 old2];
    

    to concatenate horizontally, and

    new = [old1;old2];
    

    to concatenate vertically. Then resave the same way that you just learned via google.

    Hope this helps, and in the future, i guarantee 99% of the answers to a new user’s questions will be in the top two google search results if you append “matlab” to your search. The Mathworks really set the bar on documentation in my opinion. (Of course, I last used MATLAB 3 years ago)

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

Sidebar

Related Questions

I'm completely new to Matlab and I need some help. I'm running a self-organising
I'm very new to matlab and need some help finding the correct syntax to
I am very new to matlab and python and need to use some values
I'm pretty new at Matlab so would need a baby-steps explanation. I have some
I am new to Python (coming from MATLAB) and was beginning to learn that
In MATLAB, when you click File -> New -> Function M-File, you get a
I'm trying to apply PCA on my data using princomp(x) , that has been
I have a file that contains a full set of values for some sentences
I need to create Generalized Gaussian Noise generator in Matlab. GGN is a random
I using pre-existing code in matlab that is organized into classes. Instead of using

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.