Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

ej1m

x = [0,2/pi,2*pi];
x
A=[0 0 0;0 0 0;0 0 0];
for i=1:3
    for j=1:3
        if i==1
            A(j,i)=x(j);
        elseif i==2
            A(j,i)=cos(x(j));
        else
            A(j,i)=sin(x(j));
        end
        
    end
end
A

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.