Stuart’s MATLAB Videos

Watch and Learn

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Extracting the Variable Names of a Logical Table

Posted by Stuart McGarrity,

I have a table of logical data, with only one true in a row. I want to find the variable name (column header) for each row where the value is true.

Features covered in this code-along style video include:

  • find
  • Table indexing

Follow me (@stuartmcgarrity) if you want to be notified via Twitter when I post.

Play the video in full screen mode for a better viewing experience. 

Add A Comment

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

Preview: hide