フィルターのクリア

how to resize my large vector to a smaller one for plotting?

6 ビュー (過去 30 日間)
Bojan
Bojan 2014 年 6 月 9 日
コメント済み: José-Luis 2014 年 6 月 9 日
hey guys, I have a large vector with length of 185437, i want to make a new one, reshaped vector with mean values of this one but I need new length to be 180*delay because on x axis i must have like this, for example:
delay=0.1
x_axis=0:delay:180
i need y axis (this new vector) to be same size as this x_axis so I can plot it. I tried something like:
values_delay_sum_plot=mean(reshape(values_delay_sum,1/delay,length(values_delay_sum)*delay));
but it is not working. First errors was for integer values, later that I can't change size of vector. Note that, values_delay_sum is my large vector, a from it I wanna make a new one for my plot. thanks in advance.

回答 (1 件)

José-Luis
José-Luis 2014 年 6 月 9 日
  6 件のコメント
Bojan
Bojan 2014 年 6 月 9 日
It returns
>> class(values_delay_sum)
ans =
double
>> size(values_delay_sum)
ans =
1 16019
José-Luis
José-Luis 2014 年 6 月 9 日
What's the time stamp of that vector?

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

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by