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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:10:48+00:00 2026-06-12T03:10:48+00:00

I have an n-dimensional matrix Q. I can find the max values through the

  • 0

I have an n-dimensional matrix Q. I can find the max values through
the last dimension by:

m = max(Q,[],n).

However, I do not know how to find the max values through the last
“slice”. I need something “like”

m = max(Q,[],n-1,n).

For example, if I have

A(:,:,1) = [1 2 3 ; 4 50 6]
A(:,:,2) = [9 8 7 ; 10 12 1]

I would like to have m = [9 50].

Can you help me with this?

  • 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-12T03:10:49+00:00Added an answer on June 12, 2026 at 3:10 am

    You need a double call to max:

    m = max(max(A, [], 3), [], 2)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bunch of values in a 3-dimensional matrix, and I am finding
I have a problem. I need to iterate through every element in an n-dimensional
Hi I have a 3 dimensional matrix that I am trying to convert the
I have got a matrix which gives me a 2-dimensional discrete distribution (N²->R) in
I have a sparse matrix A of very high dimension around 30000x30000 . And
I have a need for a sparse matrix in up to 4 dimensions in
I have an 2 dimensional array. I write 3 values into the array during
I have a two dimensional array int matrix[numNodes][numArcs]. This is an Incidence matrix. Now,
I have an one dimensional ObservableCollection. How can I display it as a multi-dimensional
I have a sparse matrix that is not symmetric I.E. the sparsity is somewhat

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.