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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:51:48+00:00 2026-05-23T21:51:48+00:00

Right now I am creating mapstructs in Matlab and then exporting them individually as

  • 0

Right now I am creating mapstructs in Matlab and then exporting them individually as shape files using the shapewrite() function.

However, instead of exporting them individually I want to store all of them into an array and then save it at the end as one single shapefile which holds all of the points from the mapstructs stored in the array.

My problem is I don’t know how to initialize an array to hold these mapstructs. I’ve tried

`a = struct(sizeofarray)`

but it isn’t compatible with mapstructs. I would appreciate any help!

  • 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-05-23T21:51:49+00:00Added an answer on May 23, 2026 at 9:51 pm

    You can store any kind of data in a cell array:

    a = cell(sizeofarray,1);
    

    You can then assign them like this:

    a{1} = firstmapstruct;
    a{2} = secondmapstruct;
    

    However, if I understand you correctly you have mapstructs from the MATLAB Mapping Toolbox and want to concat structs of this form:

    firstmapstruct = 
    609x1 struct array with fields:
        Geometry
        BoundingBox
        X
        Y
        STREETNAME
        RT_NUMBER
        CLASS
        ADMIN_TYPE
        LENGTH
    

    So you should probably do

    a = firstmapstruct; 
    a(end+1:end+numel(secondmapstruct))= secondmapstruct; 
    

    and so on…

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

Sidebar

Related Questions

I am creating a store using Active Merchant and PayPal sandbox right now. It
I want to create objects dynamically. Right now I'm creating them manually like this
right now I'm creating an array and using: render :json => @comments This would
Right now I'm stuck between using PHP's native session management, or creating my own
Right now, I'm particularly interested in reading the data from MP3 files (ID3 tags?),
Right now I am creating a UITableView in a FlipsideView nib. I don't seem
Right now i'm creating polygons with bezier handles. It's working well, except right now
Right now I'm creating a web-app which requires that multiple sets of data (including
Right now i been creating a form for a comment section, a Login section,
right now I'm following an Matlab tutorial http://www.mathworks.com/help/techdoc/creating_guis/brpat2g.html . The Problem is my Matlab

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.