I'm not very familiar with matlab, trying to learn it little by little by watching some tutorials. However to be able to figure out how it works I need some samples. So, here what I'm trying to do is create a function which takes a matrix, say B matrix, and then divides it into three range;(adsbygoogle = window.adsbygoogle || []).push({});

[0 10), [10 100), and [100 1000)

Then it puts those arrays into 3 different 1x3 cells

Suppose A = [2,4,100,50,40,800]

cell1 = 2,4

cell2 = 40, 50

cell3 = 100, 800

Like that.

Is it possible anyone to create that function, thus I can inspect it to understand the structure.

Suppose not a big deal for someone who's familiar with matlab.

Thanks in advance for any attempt of help

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# A simple question on matlab

Loading...

Similar Threads for simple question matlab |
---|

MATLAB MATLAB: forces acting on an object |

MATLAB Matlab histogram |

MATLAB Sovling Bernoulli's differential equation in matlab? |

LaTeX \vec command |

Mathematica Question about updating functions |

**Physics Forums | Science Articles, Homework Help, Discussion**