tema 2 cna

# tema 2 cna - Liacu Bogdan 331AA TEMA 2 1.Sa se precizeze a...

This preview shows pages 1–4. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Liacu Bogdan 331AA TEMA 2 1.Sa se precizeze: a) Sa se precizeze cum se pot genera matrice cu valori proprii oarecare (a se vedea rand)-pentru a genera o matrice oarecare de orice tip(adica patratica, sau oarecare), folosim functia rand: A=rand(m,n); pt matrice oarecare A=rand(m); pt agenra o matrice de mxm b) Sa se precizeze cum se pot obtine matrice triunghiulare stabile folosind datele gemerate cu rss si ssdata-rss genereaza matrice oarecare stabila, iar prin aducerea acesteia la forma Schur se pastreaza valorile proprii, deci se pastreaza stabilitatea: ss = rss(n); [A, B, C, D] = ssdata(ss); [U, S] = schur(A); c) Sa se precizeze cum se pot genera aleatoriu matrice triunghiulare. A = triu(rand(5)) – pentru matrici superior triunghiulare A = tril(rand(5)) – pentru matrici inferior triunghiulare 2. Sa se testeze 4 din algoritmii de rezolvare a ecuatiilor Sylvester si Liapunov cu date de ordinul 10 generate automat in Matlab. Matricele cu care se va lucra: S, T superior triunghiulare, A,B,C matrici oarecare care indeplinesc conditiile impuse de algoritm: >> S=triu(rand(10)) S = 0.5828 0.2091 0.4154 0.2140 0.6833 0.4514 0.6085 0.0841 0.1210 0.2319 0 0.3798 0.3050 0.6435 0.2126 0.0439 0.0158 0.4544 0.4508 0.2393 0 0 0.8744 0.3200 0.8392 0.0272 0.0164 0.4418 0.7159 0.0498 0 0 0 0.9601 0.6288 0.3127 0.1901 0.3533 0.8928 0.0784 0 0 0 0 0.1338 0.0129 0.5869 0.1536 0.2731 0.6408 0 0 0 0 0 0.3840 0.0576 0.6756 0.2548 0.1909 0 0 0 0 0 0 0.3676 0.6992 0.8656 0.8439 0 0 0 0 0 0 0 0.7275 0.2324 0.1739 0 0 0 0 0 0 0 0 0.8049 0.1708 0 0 0 0 0 0 0 0 0 0.9943 >> T=triu(rand(10)) T = 0.4398 0.9342 0.1370 0.4225 0.2974 0.3759 0.1939 0.6273 0.7165 0.1146 0 0.2644 0.8188 0.8560 0.0492 0.0099 0.9048 0.6991 0.5113 0.6649 0 0 0.4302 0.4902 0.6932 0.4199 0.5692 0.3972 0.7764 0.3654 0 0 0 0.8159 0.6501 0.7537 0.6318 0.4136 0.4893 0.1400 0 0 0 0 0.9830 0.7939 0.2344 0.6552 0.1859 0.5668 0 0 0 0 0 0.9200 0.5488 0.8376 0.7006 0.8230 0 0 0 0 0 0 0.9316 0.3716 0.9827 0.6739 0 0 0 0 0 0 0 0.4253 0.8066 0.9994 0 0 0 0 0 0 0 0 0.7036 0.9616 0 0 0 0 0 0 0 0 0 0.0589 >> A=rand(10) A = 0.3603 0.4319 0.7327 0.3567 0.6700 0.9090 0.8121 0.9566 0.1879 0.2460 0.5485 0.6343 0.4222 0.4983 0.2009 0.5962 0.6101 0.1472 0.4906 0.5874 0.2618 0.8030 0.9614 0.4344 0.2731 0.3290 0.7015 0.8699 0.4093 0.5061 0.5973 0.0839 0.0721 0.5625 0.6262 0.4782 0.0922 0.7694 0.4635 0.4648 0.0493 0.9455 0.5534 0.6166 0.5369 0.5972 0.4249 0.4442 0.6109 0.5414 0.5711 0.9159 0.2920 0.1133 0.0595 0.1614 0.3756 0.6206 0.0712 0.9423 0.7009 0.6020 0.8580 0.8983 0.0890 0.8295 0.1662 0.9517 0.3143 0.3418 0.9623 0.2536 0.3358 0.7546 0.2713 0.9561 0.8332 0.6400 0.6084 0.4018 0.7505 0.8735 0.6802 0.7911 0.4091 0.5955 0.8386 0.2473 0.1750 0.3077 0.7400 0.5134 0.0534 0.8150 0.4740 0.0287 0.4516 0.3527 0.6210 0.4116 >> B=rand(10) B = 0.2859 0.7241 0.8289 0.3663 0.2219 0.0490 0.2093 0.1998 0.5979 0.9995 0.3941 0.2816 0.1663 0.3025 0.7037 0.7553 0.4551 0....
View Full Document

## This note was uploaded on 11/05/2011 for the course AUTOMATIC 18 taught by Professor Corneliupopeea during the Spring '11 term at UPB Colombia.

### Page1 / 8

tema 2 cna - Liacu Bogdan 331AA TEMA 2 1.Sa se precizeze a...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online