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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:34:29+00:00 2026-06-14T16:34:29+00:00

To my code idxcell{:,1} for 1:10 iterations gives the following results: ans = 9

  • 0

To my code idxcell{:,1} for 1:10 iterations gives the following results:

ans =
         9    10    14    15    19    20    24    25
    ans =
      Columns 1 through 13
         7     8    11    12    13    14    16    17    18    19    21    22    23
      Column 14
        24
    ans =
        13    14    15    18    19    20    23    24    25
    ans =
         6     7    11    12    16    17    21    22
    ans =
        16    17    21    22
    ans =
         6     7    11    12    13    16    17    21
    ans =
         4     5     8     9    10    13    14    15    19    20
    ans =
         4     5     8     9    10    14    15
    ans =
        11    12    13    14    16    17    18    19    21    22    23    24
    ans =
         1     2     3     6     7     8    11    12    13

How can i get the most repeated value of those cell’s elements (i think on that paradigm is the ’14’)? I dont want index of it only the value.
I have tried

idxcell{:,1}
temp = idxcell{:,1};
M = mode(temp)

but got result for first cell only and i am not sure that mode() is what i have to use for my purpose.


This was answered by angainor: mode([idxcell{:}])


Revised: Also is it possible to search for all cell arrays/rows in once for i iterations to find the most repeated value and sort the results, most repeated to less, inside a cell array or matrix in descending order?


|Answered by me after angainor’s tip: Sort = sort([idxcell{:}])


Thanks in advance.

  • 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-14T16:34:31+00:00Added an answer on June 14, 2026 at 4:34 pm

    If I understand correctly, you need to concatenate all the cell vectors into one before you call mode

    mode([idxcell{:}])
    ans =
    
    13
    

    If you want to get the most frequently appearing value for all cells, you can use cellfun

    cellfun(@mode, idxcell)
    ans =
    
     9    10    14    15    19    20    24    25
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Code: $exchangesnapin = Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010; $output = shell_exec('powershell '.$exchangesnapin.';get-mailboxdatabase 2>&1'); echo( '<pre>' ); echo(
I have 13 properties following similar syntax as the one below: Public Property Get
Code I have: cell_val = CStr(Nz(fld.value, )) Dim iter As Long For iter =
Code that is untestable really annoys me. The following things make oo-code untestable: global
Code: digits.each do |digit| puts digit.content #&0000000000032056.00000032 056 value = digit.content[24..-1].strip puts value #32
code as following: \#define CS 0x18 asm (pushl CS ); or something as an
Code in here: jsfiddle Demo I wanna to get the div#content height when it
Code: if (!IDTextField.value && !FirstNameField.value && !LastNameField.value && !DateOfBirthField.value!GenderField.value) { alert('No criteria Added'); return;
Code is like this $.get( //'index.php?route=sale/order/infoforhome&token=<?php echo $token; ?>', 'index.php?route=common/home/orderinfo&token=<?php echo $token; ?>', {
Code can be found here: http://www.myhorizon.ca/client_central/sortable_test.php Hello folks of Stackoverflow, I have a list

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.