필터 지우기
필터 지우기

I have a question about using table

조회 수: 2 (최근 30일)
Capulus_love
Capulus_love 2020년 8월 21일
댓글: Rik 2020년 8월 21일
load patients
whos
Then the result shows
Name Size Bytes Class Attributes
Age 100x1 800 double
Diastolic 100x1 800 double
Gender 100x1 12212 cell
Height 100x1 800 double
LastName 100x1 12416 cell
Location 100x1 15008 cell
SelfAssessedHealthStatus 100x1 12340 cell
Smoker 100x1 100 logical
Systolic 100x1 800 double
Weight 100x1 800 double
T = table(Gender,Smoker,Height,Weight);
Then the variable T's class is table.
If I make a new variable 'test'
test = [T.Height T.Weight]
class test
Is test's class is table or double?
I'm not sure about this. Code says class of 'test' is 'char'
  댓글 수: 2
Rik
Rik 2020년 8월 21일
This time I edited your question for you. Next time, please use the tools explained on this page to make your question more readable.
Capulus_love
Capulus_love 2020년 8월 21일
Thank you! Next time I'll fix my question myself like this

댓글을 달려면 로그인하십시오.

채택된 답변

Rik
Rik 2020년 8월 21일
You should use a different syntax:
class(test)
Your current syntax is equivalent to
class('test')
  댓글 수: 2
Capulus_love
Capulus_love 2020년 8월 21일
Oh... I got it..! Thank you so much!
Rik
Rik 2020년 8월 21일
You're welcome. If I solved your question, please consider marking it as accepted.
If not, feel free to comment with any remaining issues or questions.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dimensionality Reduction and Feature Extraction에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by