I have a question about tables

the table has two variables x and y, variable x is have random sorted values in the range of 0-60
I want to bubble split the table in intervals of 0-5 5-10 ... 55-60 and keep the values in variable y along with their respective x values.

回答 (1 件)

Peter Perkins
Peter Perkins 2018 年 3 月 23 日

0 投票

It sounds like you want to use discretize to create a new variable in the table. Something like
t.z = discretize(t.x,...)

この質問は閉じられています。

タグ

質問済み:

2018 年 3 月 16 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by