Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: Creating a large Matrix

Subject: Creating a large Matrix

From: Muhammad Rana

Date: 16 Jul, 2008 00:28:02

Message: 1 of 17

Hi,

I want to create a matrix of dimensions m x n with m = 2000
and n = 4000. How can i do it without having to write whole
of it manually. Please help me out with this.

Subject: Re: Creating a large Matrix

From: John D'Errico

Date: 16 Jul, 2008 00:36:02

Message: 2 of 17

"Muhammad Rana" <ehsanrana@gmail.com> wrote in message
<g5jfai$osg$1@fred.mathworks.com>...
> Hi,
>
> I want to create a matrix of dimensions m x n with m = 2000
> and n = 4000. How can i do it without having to write whole
> of it manually. Please help me out with this.

Insufficient information to suggest much
more than

  rand(2000,4000)

There are many ways to build a matrix.

John

Subject: Re: Creating a large Matrix

From: Matt Fig

Date: 16 Jul, 2008 00:38:02

Message: 3 of 17

"Muhammad Rana" <ehsanrana@gmail.com> wrote in message
<g5jfai$osg$1@fred.mathworks.com>...
> Hi,
>
> I want to create a matrix of dimensions m x n with m = 2000
> and n = 4000. How can i do it without having to write whole
> of it manually. Please help me out with this.

What do you want in your matrix?
see:

ones
zeros
gallery

Subject: Re: Creating a large Matrix

From: Muhammad Rana

Date: 16 Jul, 2008 01:46:02

Message: 4 of 17

Hi,
well basically i want to generate a Parity check matrix H of
zeros and ones with N = 4000 and K = 2000.

I have looked in the help but cannot find the command to
generate such a matrix.

Subject: Re: Creating a large Matrix

From: Muhammad Rana

Date: 16 Jul, 2008 01:49:01

Message: 5 of 17

"Matt Fig" <spamanon@yahoo.com> wrote in message
<g5jfta$8ph$1@fred.mathworks.com>...
> "Muhammad Rana" <ehsanrana@gmail.com> wrote in message
> <g5jfai$osg$1@fred.mathworks.com>...
> > Hi,
> >
> > I want to create a matrix of dimensions m x n with m = 2000
> > and n = 4000. How can i do it without having to write whole
> > of it manually. Please help me out with this.
>
> What do you want in your matrix?
> see:
>
> ones
> zeros
> gallery
>
Hi,

well i basically want to generate a Parity Check matrix H of
zeros and ones with order (N-K,N) , where N-K = M = 2000 and
N = 4000.

Subject: Re: Creating a large Matrix

From: Teg Veece

Date: 16 Jul, 2008 04:47:13

Message: 6 of 17

It's still not really clear if you want a specific order to the ones and zeroes in your matrix.

If you don't, this should do the trick:
round(rand(2000,4000))

Subject: Re: Creating a large Matrix

From: Muhammad Rana

Date: 24 Jul, 2008 12:47:05

Message: 7 of 17

Teg Veece <103529100@student.ucc.ie> wrote in message
<18271575.1216183663664.JavaMail.jakarta@nitrogen.mathforum.org>...
> It's still not really clear if you want a specific order
to the ones and zeroes in your matrix.
>
> If you don't, this should do the trick:
> round(rand(2000,4000))

Yea I want a specific order for ones and zeros in my matrix.
The column weight should be 3 and the row weight should be 3
as well.

So basically the matrix is of 2000 rows and 4000 columns
with row weight and column weight of 3

Subject: Re: Creating a large Matrix

From: Gavrilo Bozovic

Date: 24 Jul, 2008 13:02:05

Message: 8 of 17

"Muhammad Rana" <ehsanrana@gmail.com> wrote in message
<g69tk8$910$1@fred.mathworks.com>...
> Teg Veece <103529100@student.ucc.ie> wrote in message
>
<18271575.1216183663664.JavaMail.jakarta@nitrogen.mathforum.org>...
> > It's still not really clear if you want a specific order
> to the ones and zeroes in your matrix.
> >
> > If you don't, this should do the trick:
> > round(rand(2000,4000))
>
> Yea I want a specific order for ones and zeros in my matrix.
> The column weight should be 3 and the row weight should be 3
> as well.
>
> So basically the matrix is of 2000 rows and 4000 columns
> with row weight and column weight of 3

If you want to get some help, you'll need to explain exactly
how your matrix is built.

is there an algorithm that determines whether each element
is 0 or 1? if yes, what is it?

if no, do you have the data that you have to introduce in
some file??

Subject: Re: Creating a large Matrix

From: Muhammad Rana

Date: 24 Jul, 2008 13:24:02

Message: 9 of 17

"Gavrilo Bozovic" <gavrilo.bozovic@helbling.ch> wrote in
message <g69ugd$m4m$1@fred.mathworks.com>...
> "Muhammad Rana" <ehsanrana@gmail.com> wrote in message
> <g69tk8$910$1@fred.mathworks.com>...
> > Teg Veece <103529100@student.ucc.ie> wrote in message
> >
>
<18271575.1216183663664.JavaMail.jakarta@nitrogen.mathforum.org>...
> > > It's still not really clear if you want a specific order
> > to the ones and zeroes in your matrix.
> > >
> > > If you don't, this should do the trick:
> > > round(rand(2000,4000))
> >
> > Yea I want a specific order for ones and zeros in my matrix.
> > The column weight should be 3 and the row weight should be 3
> > as well.
> >
> > So basically the matrix is of 2000 rows and 4000 columns
> > with row weight and column weight of 3
>
> If you want to get some help, you'll need to explain exactly
> how your matrix is built.
>
> is there an algorithm that determines whether each element
> is 0 or 1? if yes, what is it?
>
> if no, do you have the data that you have to introduce in
> some file??

Basically, the matrix i want to build is a sparse parity
check matrix H with M = 2000 and N = 4000. The dimensions of
my parity check matrix say H1 should be M x K, where K = N-M.

I hope you can find a solution to my problem.
Thanks
There is no specific algorithm for this matrix, but the
column weight and row weights are 3, which means it is a
regular parity check matrix.

Subject: Re: Creating a large Matrix

From: John D'Errico

Date: 16 Jul, 2008 00:36:02

Message: 10 of 17

"Muhammad Rana" <ehsanrana@gmail.com> wrote in message
<g5jfai$osg$1@fred.mathworks.com>...
> Hi,
>
> I want to create a matrix of dimensions m x n with m = 2000
> and n = 4000. How can i do it without having to write whole
> of it manually. Please help me out with this.

Insufficient information to suggest much
more than

  rand(2000,4000)

There are many ways to build a matrix.

John

Subject: Re: Creating a large Matrix

From: Matt Fig

Date: 16 Jul, 2008 00:38:02

Message: 11 of 17

"Muhammad Rana" <ehsanrana@gmail.com> wrote in message
<g5jfai$osg$1@fred.mathworks.com>...
> Hi,
>
> I want to create a matrix of dimensions m x n with m = 2000
> and n = 4000. How can i do it without having to write whole
> of it manually. Please help me out with this.

What do you want in your matrix?
see:

ones
zeros
gallery

Subject: Re: Creating a large Matrix

From: Muhammad Rana

Date: 16 Jul, 2008 01:46:02

Message: 12 of 17

Hi,
well basically i want to generate a Parity check matrix H of
zeros and ones with N = 4000 and K = 2000.

I have looked in the help but cannot find the command to
generate such a matrix.

Subject: Re: Creating a large Matrix

From: Muhammad Rana

Date: 16 Jul, 2008 01:49:01

Message: 13 of 17

"Matt Fig" <spamanon@yahoo.com> wrote in message
<g5jfta$8ph$1@fred.mathworks.com>...
> "Muhammad Rana" <ehsanrana@gmail.com> wrote in message
> <g5jfai$osg$1@fred.mathworks.com>...
> > Hi,
> >
> > I want to create a matrix of dimensions m x n with m = 2000
> > and n = 4000. How can i do it without having to write whole
> > of it manually. Please help me out with this.
>
> What do you want in your matrix?
> see:
>
> ones
> zeros
> gallery
>
Hi,

well i basically want to generate a Parity Check matrix H of
zeros and ones with order (N-K,N) , where N-K = M = 2000 and
N = 4000.

Subject: Re: Creating a large Matrix

From: Teg Veece

Date: 16 Jul, 2008 04:47:13

Message: 14 of 17

It's still not really clear if you want a specific order to the ones and zeroes in your matrix.

If you don't, this should do the trick:
round(rand(2000,4000))

Subject: Re: Creating a large Matrix

From: Muhammad Rana

Date: 24 Jul, 2008 12:47:05

Message: 15 of 17

Teg Veece <103529100@student.ucc.ie> wrote in message
<18271575.1216183663664.JavaMail.jakarta@nitrogen.mathforum.org>...
> It's still not really clear if you want a specific order
to the ones and zeroes in your matrix.
>
> If you don't, this should do the trick:
> round(rand(2000,4000))

Yea I want a specific order for ones and zeros in my matrix.
The column weight should be 3 and the row weight should be 3
as well.

So basically the matrix is of 2000 rows and 4000 columns
with row weight and column weight of 3

Subject: Re: Creating a large Matrix

From: Gavrilo Bozovic

Date: 24 Jul, 2008 13:02:05

Message: 16 of 17

"Muhammad Rana" <ehsanrana@gmail.com> wrote in message
<g69tk8$910$1@fred.mathworks.com>...
> Teg Veece <103529100@student.ucc.ie> wrote in message
>
<18271575.1216183663664.JavaMail.jakarta@nitrogen.mathforum.org>...
> > It's still not really clear if you want a specific order
> to the ones and zeroes in your matrix.
> >
> > If you don't, this should do the trick:
> > round(rand(2000,4000))
>
> Yea I want a specific order for ones and zeros in my matrix.
> The column weight should be 3 and the row weight should be 3
> as well.
>
> So basically the matrix is of 2000 rows and 4000 columns
> with row weight and column weight of 3

If you want to get some help, you'll need to explain exactly
how your matrix is built.

is there an algorithm that determines whether each element
is 0 or 1? if yes, what is it?

if no, do you have the data that you have to introduce in
some file??

Subject: Re: Creating a large Matrix

From: Muhammad Rana

Date: 24 Jul, 2008 13:24:02

Message: 17 of 17

"Gavrilo Bozovic" <gavrilo.bozovic@helbling.ch> wrote in
message <g69ugd$m4m$1@fred.mathworks.com>...
> "Muhammad Rana" <ehsanrana@gmail.com> wrote in message
> <g69tk8$910$1@fred.mathworks.com>...
> > Teg Veece <103529100@student.ucc.ie> wrote in message
> >
>
<18271575.1216183663664.JavaMail.jakarta@nitrogen.mathforum.org>...
> > > It's still not really clear if you want a specific order
> > to the ones and zeroes in your matrix.
> > >
> > > If you don't, this should do the trick:
> > > round(rand(2000,4000))
> >
> > Yea I want a specific order for ones and zeros in my matrix.
> > The column weight should be 3 and the row weight should be 3
> > as well.
> >
> > So basically the matrix is of 2000 rows and 4000 columns
> > with row weight and column weight of 3
>
> If you want to get some help, you'll need to explain exactly
> how your matrix is built.
>
> is there an algorithm that determines whether each element
> is 0 or 1? if yes, what is it?
>
> if no, do you have the data that you have to introduce in
> some file??

Basically, the matrix i want to build is a sparse parity
check matrix H with M = 2000 and N = 4000. The dimensions of
my parity check matrix say H1 should be M x K, where K = N-M.

I hope you can find a solution to my problem.
Thanks
There is no specific algorithm for this matrix, but the
column weight and row weights are 3, which means it is a
regular parity check matrix.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics