I have several data contain different size of cells. the data size mostly are [n*3]. [:,1] of each cells is timeline. however not all the time in each cell counted from 1 also the timerange are different form each. the plot I want would be many lines on the plot using [:,2] of each cells. While the functions i tried always said that i need to assign the same size of cells for it or there are many result come out. Is there any function can plot for this problem or what code should i need to write for it? Very Thanks!!

4 件のコメント

KSSV
KSSV 2018 年 7 月 11 日
Run a loop for each cell.
Kuang-Yu WANG
Kuang-Yu WANG 2018 年 7 月 11 日
ah, I had tried what u suggest. however the cells are quite a lot. I still need to find a loop or function else can plot these cells.
KSSV
KSSV 2018 年 7 月 11 日
Share the file...we can help you.
Kuang-Yu WANG
Kuang-Yu WANG 2018 年 7 月 11 日
編集済み: Kuang-Yu WANG 2018 年 7 月 11 日
the file is one of the data set i need to analyze. as u can see. the dimension and timerange are not very well. the data are in nfkbX. (:,2)in each cell are time. and (:,4) of each are what i need to plot.I do it with
plot(thething{1,1}(:,2),thething{1,1}(:,4))
hold on
plot(thething{2,1}(:,2),thething{2,1}(:,4))
plot(thething{3,1}(:,2),thething{3,1}(:,4))
plot(thething{4,1}(:,2),thething{4,1}(:,4))
plot(thething{5,1}(:,2),thething{5,1}(:,4))
plot(thething{6,1}(:,2),thething{6,1}(:,4))
plot(thething{7,1}(:,2),thething{7,1}(:,4))
plot(thething{8,1}(:,2),thething{8,1}(:,4))
plot(thething{9,1}(:,2),thething{9,1}(:,4))
plot(thething{10,1}(:,2),thething{10,1}(:,4))
plot(thething{11,1}(:,2),thething{11,1}(:,4))
plot(thething{12,1}(:,2),thething{12,1}(:,4))
plot(thething{13,1}(:,2),thething{13,1}(:,4))
plot(thething{14,1}(:,2),thething{14,1}(:,4))
plot(thething{15,1}(:,2),thething{15,1}(:,4))
plot(thething{16,1}(:,2),thething{16,1}(:,4))
plot(thething{17,1}(:,2),thething{17,1}(:,4))
plot(thething{18,1}(:,2),thething{18,1}(:,4))
plot(thething{19,1}(:,2),thething{19,1}(:,4))
plot(thething{20,1}(:,2),thething{20,1}(:,4))
plot(thething{21,1}(:,2),thething{21,1}(:,4))
plot(thething{22,1}(:,2),thething{22,1}(:,4))
plot(thething{23,1}(:,2),thething{23,1}(:,4))
plot(thething{24,1}(:,2),thething{24,1}(:,4))
set(gca,'Xlim',xlim)
and look like
</matlabcentral/answers/uploaded_files/124823/%E6%9C%AA%E5%91%BD%E5%90%8D.jpg> but as you can see i only plot 24. and there are more data. btw, thething is nfkbX{:,1}

サインインしてコメントする。

 採用された回答

KSSV
KSSV 2018 年 7 月 11 日

0 投票

file = 'neg 20_1_Mnalyzed.mat' ;
S = load(file) ;
A = S.nfkbX ;
figure
hold on
for i = 1:size(A,1)
plot(A{i,1}(:,2),A{i,1}(:,4))
end

1 件のコメント

Kuang-Yu WANG
Kuang-Yu WANG 2018 年 7 月 11 日
Many thanks!!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

製品

質問済み:

2018 年 7 月 11 日

コメント済み:

2018 年 7 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by