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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:51:43+00:00 2026-05-25T18:51:43+00:00

I have a 3d array. 1st dim is xcoordinate of pixel 2nd dimension is

  • 0

I have a 3d array. 1st dim is xcoordinate of pixel

2nd dimension is y – coordinate of pixel.
3rd coordinate is time (or could be though of as the frame number).

I want to do a test to see if any pixel is equal to zero for every single frame (along 3rd dimension).

How would I write this test?

I need returned the pixels which are ALWAYS true!!!

  • 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-25T18:51:43+00:00Added an answer on May 25, 2026 at 6:51 pm

    Rather than all you could use any. If I understand you correctly, the code would go something like this for a single “pixel”

    any(A(x,y,:))
    

    where A is the 3d matrix. If the result is 1, then the given pixel does have a non-zero value for at least one frame, and 0 otherwise.

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

Sidebar

Related Questions

i have 2 array 1st array if full 2nd array is empty i want
I have array of timer.I want timer0 work with 1st dataValue in _dataValues, 2nd
I have a multi-dimensional array with 4 entries in each value - (1st name,
I have an issue with the below array, where the 1st one (should be
i have a csv file like this: i,0 <-- 1st line f,1,2,3 <-- 2nd
I have two array like this and want to merge like Take 1st index
i have 2 tables 1st table called services has id_service, name, date. description 2nd
I have two arrays one like 1 | 1st name 2 | 2nd name
I have array of select tag. <select id='uniqueID' name=status> <option value=1>Present</option> <option value=2>Absent</option> </select>
I have array like this: $path = array ( [0] => site\projects\terrace_and_balcony\mexico.jpg [1] =>

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.