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.

Réponses (1)

Peter Perkins
Peter Perkins le 23 Mar 2018

0 votes

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

Cette question est clôturée.

Tags

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by