Not able to Extract DATA from Row and Column
古いコメントを表示
I got the code below that is meant to extract specific signals and their corresponding data from .dat file. and output them in a table / row and column with signal name and data. however my FS_DATA is not correct what have I done wrong ? the SIGNAL 1x32 struct with 6 while the DATA is 6906x32 double.
[DATA SIGNALS] = tmsread('A359_FIB2_F817.dat');%read data and gives back DATA and SIGNALS names
FS_list= {};%empty cell to populate with Filtered FS signals
n=0;%count
for i=1:length(SIGNALS)
if strfind(upper(SIGNALS(i).Name),'FS')%filter throught the SIGNALS list and locates FS only signals
n = n+1;%count
FS_list{n} = SIGNALS(i).Name;%populates the FS signals
end
end
FS_data=cell(size(DATA,1),size(FS_list,1)); %extract the corresponding DAT for EachFSsignal
for i=1:length(FS_list)
FS_data{:,i},DATA(:,i); %creates a table/ row and column with FS signals and its DATA
end
8 件のコメント
Paolo
2018 年 6 月 13 日
Can you upload A359_FIB2_F817.dat ?
victor Mwarumba
2018 年 6 月 13 日
Paolo
2018 年 6 月 13 日
What is tmsread?
victor Mwarumba
2018 年 6 月 13 日
FS_data{:,i},DATA(:,i);
Is not valid matlab syntax. What is the intent of the above?
Oh! And which version of matlab are you using?
victor Mwarumba
2018 年 6 月 13 日
編集済み: Guillaume
2018 年 6 月 13 日
victor Mwarumba
2018 年 6 月 13 日
編集済み: Guillaume
2018 年 6 月 13 日
victor Mwarumba
2018 年 6 月 13 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Descriptive Statistics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!