Hello,(adsbygoogle = window.adsbygoogle || []).push({});

I am curious why the following concatenation is not working the way I thought it would.

Code (Text):B = [0 5 1; 2 4 3]

B =

0 5 1

2 4 3I don't really understand what this command is extracting from the matrix and how it is arranging it. It looks like B([1 2]) gets the 1st and 2nd element of B, but then the [1 3] part is not the 1st and 3rd element.Code (Text):B([1 2], [1 3])

ans =

0 1

2 3

**Physics Forums - The Fusion of Science and Community**

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

# Matlab concatenation

Tags:

Loading...

Similar Threads - Matlab concatenation | Date |
---|---|

Matlab Coding angular spectrum of waves in a fluid | Thursday at 7:30 AM |

How to program this in Matlab | Feb 28, 2018 |

Matlab Making a short test for self-adjointness | Feb 23, 2018 |

Vector concatenation without using a for loop (MATLAB) | Jan 22, 2014 |

Vector concatenation in for loop (MATLAB) | Jul 11, 2010 |

**Physics Forums - The Fusion of Science and Community**