Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to assign a vector to a structure?
Date: Mon, 15 Jun 2009 03:56:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <h14goh$6lc$1@fred.mathworks.com>
References: <h141it$d34$1@fred.mathworks.com> <h14479$o0f$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1245038161 6828 172.30.248.38 (15 Jun 2009 03:56:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 15 Jun 2009 03:56:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1652144
Xref: news.mathworks.com comp.soft-sys.matlab:547423


Sadik,

Thanks for your response, but that doesn't achieve what I wanted to do. What you did is done by:

s.number = numbers';
s.bankID = bankID';

I want the following:

s(1).number = 1
s(3).bankID = 1
s(7).bankID = 2
and so on...

Thanks!
Kian