Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: About the element of Matrix in Matlab
Date: Mon, 26 Oct 2009 04:41:02 +0000 (UTC)
Organization: National Central University
Lines: 11
Message-ID: <hc398u$lvl$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 1256532062 22517 172.30.248.38 (26 Oct 2009 04:41:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 26 Oct 2009 04:41:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2059509
Xref: news.mathworks.com comp.soft-sys.matlab:579976


I have a difficulty in using Matlab to create a matrix. The matrix have its element is a random function of time-varying valuable t such  as Gaussian or Sin. When t changes the matrix is changed and my system will use this matrix to calculate.

My example:

A is a square matrix 3,3.

A(1,1)  = 2 sin(t), A(1,2)=1 sin(t), A(1,3)= 3cos(t).
A(2,1) = 1 cos(t),A(2,2) = 3sin(t), A(2,3) = 2cos(t).
A (3,1)= 0.5sin(t),A(3,2) = 1.5sin(t),A(3,3)=3sin(t).

A will be changed when t is running. So how I can matrix A to calculate. Please help me about Matlab code. Thanks.