Email: helpdesk@telkomuniversity.ac.id

This Portal for internal use only!

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Categories
  • Microsoft
    • Microsoft Apps
    • Office
    • Operating System
    • VLS
    • Developer Tools
    • Productivity Tools
    • Database
    • AI + Machine Learning
    • Middleware System
    • Learning Services
    • Analytics
    • Networking
    • Compute
    • Security
    • Internet Of Things
  • Adobe
  • Matlab
  • Google
  • Visual Paradigm
  • WordPress
    • Plugin WP
    • Themes WP
  • Opensource
  • Others
More Categories Less Categories
  • Get Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • My Account
    • Download
    • Cart
    • Checkout
    • Login
  • About Us
    • Contact
    • Forum
    • Frequently Questions
    • Privacy Policy
  • Forum
    • News
      • Category
      • News Tag

iconTicket Service Desk

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Menu
  • Home
    • Download Application Package Repository Telkom University
    • Application Package Repository Telkom University
    • Download Official License Telkom University
    • Download Installer Application Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • All Pack
    • Microsoft
      • Operating System
      • Productivity Tools
      • Developer Tools
      • Database
      • AI + Machine Learning
      • Middleware System
      • Networking
      • Compute
      • Security
      • Analytics
      • Internet Of Things
      • Learning Services
    • Microsoft Apps
      • VLS
    • Adobe
    • Matlab
    • WordPress
      • Themes WP
      • Plugin WP
    • Google
    • Opensource
    • Others
  • My account
    • Download
    • Get Pack
    • Cart
    • Checkout
  • News
    • Category
    • News Tag
  • Forum
  • About Us
    • Privacy Policy
    • Frequently Questions
    • Contact
Home/Matlab/Question about logical indexing

Question about logical indexing

PuTI / 2025-01-20
Question about logical indexing
Matlab News

I am relatively new to MatLab and am having a tough time with organizing a set of data for work. I have the data in two separate tables. The first table is a master list of traps and cumulative catch per trap with variable names: Year (using integers in place of actual years), Site (again, integers instead of site names), Week (integers again), Trap (integer – unique Tag ID), Catch (response measured – count data). Example below:
Year Site Week Trap Catch
____ ____ ____ ____ _____

1 1 1 29 9
1 1 1 28 0
1 1 1 18 4
1 1 1 27 0
1 1 1 622 19
1 1 1 10 0
1 1 1 17 10

The second table is the raw data describing each individual animal collected in each trap. Example with variable names below:

Year Week Site Trap Sex CL Legal Greater60
____ ____ ____ ____ ___ ____ _____ _________

1 1 2 41 2 71.1 0 1
1 1 2 41 2 50 0 0
1 1 2 42 2 73.9 0 1
1 1 2 42 2 57.3 0 0
1 1 2 42 2 61.5 0 1

Year, Week, Site, and Trap all appear in both tables. In table two. Catch, in table 1 is the total number of animals caught by each unique trap in a year, week, site combination. Legal and Greater60 in table two are binary responses based on the size of the animal (1 = true, 0 = false). All traps in Table two appear in table one, but if a trap did not catch anything, it does not appear in table two.

My goal is to use logical indexing to add two columns (Legal, Greater60) to Table 1 after Catch wherein I have a sum of the Legal and Greater60 values in Table two for each trap in each year, week, site combination.
I hope that makes sense. Any help is much appreciated.I am relatively new to MatLab and am having a tough time with organizing a set of data for work. I have the data in two separate tables. The first table is a master list of traps and cumulative catch per trap with variable names: Year (using integers in place of actual years), Site (again, integers instead of site names), Week (integers again), Trap (integer – unique Tag ID), Catch (response measured – count data). Example below:
Year Site Week Trap Catch
____ ____ ____ ____ _____

1 1 1 29 9
1 1 1 28 0
1 1 1 18 4
1 1 1 27 0
1 1 1 622 19
1 1 1 10 0
1 1 1 17 10

The second table is the raw data describing each individual animal collected in each trap. Example with variable names below:

Year Week Site Trap Sex CL Legal Greater60
____ ____ ____ ____ ___ ____ _____ _________

1 1 2 41 2 71.1 0 1
1 1 2 41 2 50 0 0
1 1 2 42 2 73.9 0 1
1 1 2 42 2 57.3 0 0
1 1 2 42 2 61.5 0 1

Year, Week, Site, and Trap all appear in both tables. In table two. Catch, in table 1 is the total number of animals caught by each unique trap in a year, week, site combination. Legal and Greater60 in table two are binary responses based on the size of the animal (1 = true, 0 = false). All traps in Table two appear in table one, but if a trap did not catch anything, it does not appear in table two.

My goal is to use logical indexing to add two columns (Legal, Greater60) to Table 1 after Catch wherein I have a sum of the Legal and Greater60 values in Table two for each trap in each year, week, site combination.
I hope that makes sense. Any help is much appreciated. I am relatively new to MatLab and am having a tough time with organizing a set of data for work. I have the data in two separate tables. The first table is a master list of traps and cumulative catch per trap with variable names: Year (using integers in place of actual years), Site (again, integers instead of site names), Week (integers again), Trap (integer – unique Tag ID), Catch (response measured – count data). Example below:
Year Site Week Trap Catch
____ ____ ____ ____ _____

1 1 1 29 9
1 1 1 28 0
1 1 1 18 4
1 1 1 27 0
1 1 1 622 19
1 1 1 10 0
1 1 1 17 10

The second table is the raw data describing each individual animal collected in each trap. Example with variable names below:

Year Week Site Trap Sex CL Legal Greater60
____ ____ ____ ____ ___ ____ _____ _________

1 1 2 41 2 71.1 0 1
1 1 2 41 2 50 0 0
1 1 2 42 2 73.9 0 1
1 1 2 42 2 57.3 0 0
1 1 2 42 2 61.5 0 1

Year, Week, Site, and Trap all appear in both tables. In table two. Catch, in table 1 is the total number of animals caught by each unique trap in a year, week, site combination. Legal and Greater60 in table two are binary responses based on the size of the animal (1 = true, 0 = false). All traps in Table two appear in table one, but if a trap did not catch anything, it does not appear in table two.

My goal is to use logical indexing to add two columns (Legal, Greater60) to Table 1 after Catch wherein I have a sum of the Legal and Greater60 values in Table two for each trap in each year, week, site combination.
I hope that makes sense. Any help is much appreciated. logical indexing, data organization MATLAB Answers — New Questions

​

Tags: matlab

Share this!

Related posts

test one two three four
2025-05-20

test one two three four

Is it possible to make this tiny loop faster?
2025-05-19

Is it possible to make this tiny loop faster?

Solar Wind Battery Hybrid Integration
2025-05-19

Solar Wind Battery Hybrid Integration

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Categories

  • Matlab
  • Microsoft
  • News
  • Other
Application Package Repository Telkom University

Tags

matlab microsoft opensources
Application Package Download License

Application Package Download License

Adobe
Google for Education
IBM
Matlab
Microsoft
Wordpress
Visual Paradigm
Opensource

Sign Up For Newsletters

Be the First to Know. Sign up for newsletter today

Application Package Repository Telkom University

Portal Application Package Repository Telkom University, for internal use only, empower civitas academica in study and research.

Information

  • Telkom University
  • About Us
  • Contact
  • Forum Discussion
  • FAQ
  • Helpdesk Ticket

Contact Us

  • Ask: Any question please read FAQ
  • Mail: helpdesk@telkomuniversity.ac.id
  • Call: +62 823-1994-9941
  • WA: +62 823-1994-9943
  • Site: Gedung Panambulai. Jl. Telekomunikasi

Copyright © Telkom University. All Rights Reserved. ch

  • FAQ
  • Privacy Policy
  • Term

This Application Package for internal Telkom University only (students and employee). Chiers... Dismiss