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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:15:16+00:00 2026-06-15T04:15:16+00:00

Suppose I have a dataset called data that was created from dataset(xls2struct(‘file.xls’) : subj_CDI:

  • 0

Suppose I have a dataset called data that was created from dataset(xls2struct('file.xls'):

             subj_CDI: {1166x1 cell}
      age_at_test_CDI: [1166x1 double]
developmental_age_CDI: [1166x1 double]

The expression:

data(data.developmental_age_group_CDI==3, 'subj_CDI') 

Will return cells from data.subj_CDI. No problem.

However, if I try to search by a cell matching “HA18”, by this expression:

data(data.subj_CDI=={'HA18'}, 'developmental_age_group_CDI')

I get this error:

??? Undefined function or method 'eq' for input arguments of type 'cell'.

I understand that this is a data mismatch, but I can’t figure out how to get around it…I’ve tried to convert data.subj_CDI to a struct, but wasn’t successful accessing it…

Thanks

  • 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-15T04:15:18+00:00Added an answer on June 15, 2026 at 4:15 am

    You should use strcmp instead. It will give you the index of the element (or elements!) that you are looking for.

    index = strcmp('HA18',data.subj_CDI);
    

    Then to get the value/values, use

    data.age_at_test_CDI{index}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a class Baz that inherits from classes Foo and Bar ,
I have created an application which inserts data into a SQL database. Basically, from
Suppose that I have the following code: private void UpdateDB(QuoteDataSet dataSet, Strint tableName) {
I have a sequential dataset which has some data formatted in columns. suppose below
Suppose I have a SAS dataset that looks like this: id x 1 1234
Suppose I have a dataset: data animals; input animal $ group $ control $;
Suppose I have a irregular, random, shape generated from a dataset. How do I
I have a dataset obtained from MySQL that goes like this: Array ( [0]
Suppose I have a dataset: test = data.frame(x=c(1:11), y=as.character(c(1:11))) where the collumn 'y' is
Suppose I have a pure virtual method in the base interface that returns to

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.