Koj tig 45 degree matrix li cas?
Koj tig 45 degree matrix li cas?

Video: Koj tig 45 degree matrix li cas?

Video: Koj tig 45 degree matrix li cas?
Video: टूटी हुई कूल्हे Hip की गोल हड्डी | फ्रैक्चर Neck femur |#hipbone #hiprehab #hipreplacementsurgery | 2024, Hlis ntuj nqeg
Anonim

Cov mis ntawm no kev sib hloov is: RM[x + y - 1][n - x + y] = M[x][y], where RM txhais tau tias tig matrix , M pib matrix , thiab n qhov dimension ntawm qhov pib matrix (uas yog n x n). Yog li, a32, los ntawm kab thib peb thiab kab thib ob yuav tau mus rau kab plaub thiab kab plaub.

Yog li ntawd, koj tig lub kaum sab xis 45 degree li cas?

Yog tias peb sawv cev rau lub ntsiab lus (x, y) los ntawm tus lej x + iy, ces peb tuaj yeem ua tau tig nws 45 degrees clockwise tsuas yog muab faib los ntawm tus lej complex (1−i) / √2 thiab tom qab ntawd nyeem lawv cov x thiab y ua haujlwm.

Tsis tas li ntawd, cov qauv rau kev sib hloov yog dab tsi? 180 degrees yog (-a, -b) thiab 360 yog (a, b). 360 degrees tsis hloov vim nws yog tag nrho kev sib hloov los yog ib lub voj voog puv. Thiab qhov no yog rau counterclockwise kev sib hloov . Yog koj xav ua clockwise kev sib hloov ua raws li cov no cov qauv : 90 = (b, -a); 180 = (-a, -b); 270 = (-b, ib); 360 = (ib, b).

Yuav ua li cas koj tig lub matrix 45 degrees hauv Matlab?

RotateA = imrotate(A, 45 ); Qhov no txhais tau tias peb xav tau tig data array A los ntawm 45 degrees thiab txuag nws hauv array RotateA. Nco ntsoov tias cov kev sib hloov yog nyob rau hauv ib tug counterclockwise kev taw qhia nyob ib ncig ntawm lub array lub center point. Koj tuaj yeem qhia tus nqi tsis zoo rau lub kaum sab xis tig daim duab clockwise.

Txoj cai rau tig 90 degrees counterclockwise yog dab tsi?

Tus general txoj cai rau kev sib hloov ntawm ib yam khoom 90 degrees yog (x, y) ------ (-y, x). Koj tuaj yeem siv qhov no txoj cai rau tig ib daim duab ua ntej los ntawm kev noj cov ntsiab lus ntawm txhua qhov vertex, txhais lawv raws li qhov txoj cai , thiab kos duab.

Pom zoo: