Surf and reshape for 4D plot

Hi all,
I would like to make a plot using surf. I have a time vector with 17281x1, frequency of 17281x1, and a signal of 161x1.
I would like to make a plot with surf(t,f,X). How should I reshape the array X to be able to use surf?

4 件のコメント

KSSV
KSSV 2021 年 5 月 24 日
What is dimension of X?
GCats
GCats 2021 年 5 月 24 日
sorry, X is the 161x1 signal!
KSSV
KSSV 2021 年 5 月 24 日
surf(X,Y,Z)
In the above X, Y, Z should be matrices of same size. In your case how this is possible?
GCats
GCats 2021 年 5 月 24 日
f and t are the same size, however X is not. That is why I need to use the reshape function I believe, or any other fuction which would "resize" the array X to be able to use surf().

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

回答 (0 件)

カテゴリ

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

タグ

質問済み:

2021 年 5 月 24 日

コメント済み:

2021 年 5 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by