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.

Answers (1)

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

This question is closed.

Tags

Asked:

on 16 Mar 2018

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!