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 日

0 投票

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 件のコメント

Gil Cheah
Gil Cheah 2017 年 6 月 20 日
編集済み: Gil Cheah 2017 年 6 月 20 日
yes, it is a table. I just realised that this only happens when I import data directly via 'Import Data' on the 'Home' tab. And if I typed xlsread(x), it became 'double' class which I can transpose.
But it is not convenient because through xlsread(x), some 'date' data is missing
I glad you helped
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 件)

カテゴリ

ヘルプ センター および File Exchange で Large Files and Big Data についてさらに検索

質問済み:

2017 年 6 月 20 日

コメント済み:

2017 年 6 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by