Unable to change data from row to column by using transpose

조회 수: 3 (최근 30일)
Gil Cheah
Gil Cheah 2017년 6월 20일
댓글: Gil Cheah 2017년 6월 21일
I imported the data from excel file, and the data is needed to run with wavelet 1-D analysis. After entering the wavemenu, it said that my data is not in 1-D dimension, so i guess that my data have to listed as column instead of row. However, I have unable to transpose the data by using A.' or A'
This is the showed on my command window "Error using ' (line 148) Undefined function 'ctranspose' for input arguments of type 'table'."
Anyone can tell me why? Thanks in advance

채택된 답변

Wayne King
Wayne King 2017년 6월 20일
Is the data in your workspace in the form of a MATLAB table?
What does the >>whos
command print out in your workspace? or better yet, let's say the data is stored in your MATLAB workspace as X, what does >>class(X)
print out.
  댓글 수: 3
Wayne King
Wayne King 2017년 6월 20일
편집: Wayne King 2017년 6월 20일
You can also extract a numeric vector from a a table() with table2array()
load patients
patients = table(LastName,Gender,Age,Height,Weight,Smoker,Systolic,Diastolic);
weight = table2array(patients(:,4)); % extract weight variable as vector
The Wavelet 1-D tool will not care if your signal is a row or column vector.
Gil Cheah
Gil Cheah 2017년 6월 21일
Thanks, now i can extract those information with that!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Wavelet Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by