Thread Subject: About the element of Matrix in Matlab

Subject: About the element of Matrix in Matlab

From: Viet Dang

Date: 26 Oct, 2009 04:41:02

Message: 1 of 2

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.

Subject: About the element of Matrix in Matlab

From: Jun

Date: 26 Oct, 2009 07:26:01

Message: 2 of 2

you can use a loop and a timer to keep updating the elements of matrix A

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
 

MATLAB Central Terms of Use

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 Terms prior to use.

Contact us at files@mathworks.com