how to construct the matrix of 10x1000

14 views (last 30 days)
asram eluru
asram eluru on 26 Mar 2014
Edited: Azzi Abdelmalek on 26 Mar 2014
meshgrid(1:10) is giving 10x10 matrix and values are between 1 to 10. I want 10 rows and 1000 columns, values are between 1 to 10 same as meshgrid(1:10); please , is there any camand help me

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 26 Mar 2014
Edited: Azzi Abdelmalek on 26 Mar 2014
out=meshgrid(repmat(1:10,1,100),1:10)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!