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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:25:13+00:00 2026-06-03T07:25:13+00:00

Consider having a 3D matrix in matlab where A(:,:,1) = [1 2 3;4 5

  • 0

Consider having a 3D matrix in matlab where

A(:,:,1) = [1 2 3;4 5 6;7 8 9];
A(:,:,2) = [11 22 33;44 55 66;77 88 99];
A(:,:,3) = [111 222 333;444 555 666;777 888 999];

Well when I ask for

A(1:end,1,:)

I get three different answers:

A(1:end,1,1) = [1 2 3];

A(1:end,1,2) = [11 22 33];

A(1:end,1,3) = [111 222 333];

I want to get this in one instruction possibly without cycles and so on:

[1 2 3;11 22 33;111 222 333]

How to get it?

I want a new matrix not a series of vectors.

Thankyou.

  • 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-03T07:25:14+00:00Added an answer on June 3, 2026 at 7:25 am
    squeeze(A(1,:,:))'
    

    works. I think that if I were either smarter or willing to spend more time on this I could do it without a transpose, but this should point you in the right direction.

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

Sidebar

Related Questions

Consider having a list - Ferrari, Mclaren, Red Bull on A2, A5, A8 cells,
Please consider this site . I'm having trouble stretching the submenu list items in
I am having a lil hard time with map and the valuetype allocation. consider
I have a matrix having around 1000 geospatial points(Longitude, Latitude) and i am trying
Consider a web page having grid-view connected to SqlDataSource having all permission to insert
I consider myself an Android developer, after having created four apps and learned a
I am trying to do a transformation like this. Consider I am having a
Consider that I am having the following location points in google maps: Latitude point:
Consider the following string: $MRK - Merck - ($AAPL, $MSFT, $F) having day $AA!
Consider the following statements We are not talking about a well established company in

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.