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

Contact us at files@mathworks.com