Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
how to put the function sparse

Subject: how to put the function sparse

From: wahyoe Unggul

pink (view profile)

(wahyoe Unggul)

Date: 26 Mar, 2011 09:14:04

Message: 1 of 1

Can you give advice, how to put the function sparse in the following matrix form

for i=(1:m)
    RB=[Cx(i)/Cxz(i) 0 Cz(i)/Cxz(i);
        0 1 0 ;
        -Cz(i)/Cxz(i) 0 Cx(i)/Cxz(i)]
    RG=[Cxz(i) Cy(i) 0;
        -Cy(i) Cxz(i) 0;
        0 0 1]
    if Cxz(i)>0.001
        R=[0 Cy(i) 0;
          -Cy(i) 0 0;
          0 0 1]
    RT(:,:,i)=[R zeros(3,3);
               zeros(3,3) R]

Tags for this Thread

No tags are associated with this thread.

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.

Contact us