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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:56:35+00:00 2026-06-04T15:56:35+00:00

I am coding with Matlab, and I get the following error for the bold

  • 0

I am coding with Matlab, and I get the following error for the bold line (containers = [containers(1:j-1); containers(j+1:end)]😉

Error using vertcat
CAT arguments dimensions are not consistent.

Error in fillContainerWithPolygons (line 77)
                containers = [containers(1:j-1); containers(j+1:end)];

The problem is that I get it just sometimes(not always).

Just in case, containers is a set of the matrix, for example I got error for `containers(1:j-1) = [13×2 double] and containers(j+1:end) =[4×2 double]

I searched and googled a lot but I did not find the problem,
Any idea will be appreciated.

  • 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-04T15:56:36+00:00Added an answer on June 4, 2026 at 3:56 pm

    Hmm, you can avoid that by just saying

    containers(j, :) = []
    

    Also there’s something off in your question because containers(1:j-1) can’t be 13×2, it’s got to be nx1. I assume you mean containers(1:j-1, :).

    I think the reason is that j+1:end is probably just one element, and it’s being treated like a column because you’re not specifying j+1:end, :.

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

Sidebar

Related Questions

This coding i got from here. I get error in log cat view like
Coding standards in place mean I do not have an option of using ajax
I have a small problem in coding confusion 3x3 matrix by using matlab... I
Coding for PHP on Mac OSX Lion, using the following within the httpd.conf file:
Coding footer naively, if there's not enough content, then there will be empty space
While coding python I'm using only 2 spaces to indent, sure PEP-8 really recommend
I am a newbie at matlab and I am trying to solve the following
I want to get better at vectorizing my loops in MATLAB. At the moment,
I've been using F# for a while now to model algorithms before coding them
I'd like to know if there's a way that when using Matlab, instead of

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.