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

i have a vector, z which size is 1 by m.

z = [1 2 3 4 5 6 7 8]

then i want to make a matrix with m by m

Z= [z; z; z; z; z; z; z; z]

if m become bigger i couldn't do it like mentioned above. how could i generate the matrix by a single command?

thank you in advance.

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

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!

# Creating m by m matrix in matlab

Loading...

Similar Threads - Creating matrix matlab | Date |
---|---|

How to create a matrix with variables? | Jan 28, 2016 |

Matlab - I want to create row matrix | Apr 20, 2012 |

Creating Matrix from List in Mathematica | Jul 21, 2011 |

How to create a labelled matrix in LaTeX? | May 28, 2008 |

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