Yuav Qhia Li Cas, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB: 12 Cov Kauj Ruam

Cov txheej txheem:

Yuav Qhia Li Cas, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB: 12 Cov Kauj Ruam
Yuav Qhia Li Cas, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB: 12 Cov Kauj Ruam

Video: Yuav Qhia Li Cas, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB: 12 Cov Kauj Ruam

Video: Yuav Qhia Li Cas, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB: 12 Cov Kauj Ruam
Video: Musicians talk about Buckethead 2024, Tej zaum
Anonim

MATLAB yog txoj haujlwm muaj zog heev. Nrog nws, koj tuaj yeem ua txhua yam los ntawm kev ua lej yooj yim mus rau kev kawm qib siab. Txawm li cas los xij, yog tias koj yog tus neeg siv tsis muaj kev paub dhau los, koj yuav xav paub qee qhov pib kom koj pib. Phau ntawv qhia no yuav pab koj txhais cov lej thiab tom qab ntawd ntxiv lossis rho tawm lawv.

Cov kauj ruam

Ntu 1 ntawm 2: Txheeb Matrices

Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 1
Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 1

Kauj Ruam 1. Tua MATLAB thiab tos kom txog thaum koj tau txais lub vijtsam zoo ib yam li qhov pom

Nyob ntawm koj tsab ntawv, koj tuaj yeem tau txais cov lus hais tias "Daim Ntawv Tso Cai Tub Kawm Ntawv -". Qhov no tsis yog qhov yuam kev thiab yuav tsum tsis txhob cuam tshuam kev ua haujlwm.

Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 2
Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 2

Kauj Ruam 2. Ntaus ib tsab ntawv, lo lus, lossis lwm yam cim yooj yim rau koj tus lej tshiab hauv lub qhov rai hais kom ua

Nco ntsoov tias tus cim yuav tsis muaj qhov chaw thiab txhua tus cim yog tus neeg mob. Yog li, "A" tsis zoo ib yam li "a". Hauv qhov piv txwv no, peb yuav txhais peb cov lej ua "A".

Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 3
Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 3

Kauj Ruam 3. Ntaus ib qho "=" ua raws los ntawm kab zauv sab laug, "["

Kev ntaus ntawv, "A = [" zoo ib yam li, "A = [". Kev sib nrug ntawm cov cim no yog qhov siv tau.

Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 4
Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 4

Kauj Ruam 4. Pib ntxiv qhov tseem ceeb rau koj cov lej

Cov txiaj ntsig no tuaj yeem yog tus lej lossis lwm yam kev hloov pauv ua ntej. Hauv qhov no, peb yuav lo rau tag nrho cov lej xwb. Cov kab hauv cov lej sib cais tau cais nrog cov chaw, piv txwv li nias "Space Bar" tom qab ntaus tus lej lossis sib txawv. Kab sib cais nrog semicolons. Kaw lub matrix nrog txoj cai bracket, "]".

Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 5
Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 5

Kauj Ruam 5. Nyem ↵ Enter txhawm rau txheeb xyuas koj tus lej cim

Cov lej uas koj nyuam qhuav tau txhais yuav luam nws tus kheej hauv "Command Window". Nws tseem yuav pom hauv "Qhov Chaw Ua Haujlwm" qhov rai.

Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 6
Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 6

Kauj Ruam 6. Txheeb xyuas koj txoj haujlwm

Yog tias koj txaus siab nrog txoj kev uas koj tus lej tau teev tseg, tam sim no koj tuaj yeem ua haujlwm nrog nws.

Yog tias koj cov lej tsis tshwm raws li qhov xav tau, koj tuaj yeem rov txhais nws yooj yim dua. Ua raws cov theem tib yam nkaus li saum toj no. Tsuav koj xaiv tus yam ntxwv zoo ib yam, lub matrix qub yuav raug hloov kho nrog cov ntaub ntawv tshiab. Nco tseg qhov kev hloov pauv hauv "Chaw Ua Haujlwm" qhov rai

Ntu 2 ntawm 2: Ntxiv lossis Rho Tawm Matrices

Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 7
Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 7

Kauj Ruam 1. Txheeb xyuas cov qib kawm uas xav tau, raws li tau piav qhia saum toj no

Hauv qhov piv txwv no, peb yuav siv ob daim ntawv kawm tiav. Cov no muaj cov cim "A" thiab "B".

Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 8
Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 8

Kauj Ruam 2. Nkag siab tias, txhawm rau txhawm rau ntxiv lossis rho tawm, ob qhov kev kawm yuav tsum muaj qhov ntev thiab dav ib yam

Yog tias lawv tsis yog, koj yuav tau txais cov lus yuam kev.

Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 9
Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 9

Kauj Ruam 3. Ntaus tus cim ntawm thawj tus lej ua raws nrog cov cim ntxiv, "+", yog tias koj xav ua ntxiv, lossis "-" kos npe yog tias koj xav rho tawm

Ntaus tus cim ntawm tus lej thib ob ntxiv rau. Mus txuas ntxiv cov txheej txheem no rau txhua qhov kev kawm xav tau, ua kom ntseeg tau cais cov cim nrog rau ntxiv cov cim.

Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 10
Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 10

Kauj Ruam 4. Nias ↵ Enter

Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 11
Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 11

Kauj Ruam 5. Tshawb xyuas cov lus teb

Koj yuav tsum pom qhov txiaj ntsig xav tau luam tawm rau lub vijtsam, thiab qhov hloov pauv tshiab "ans" hauv "Qhov Chaw Ua Haujlwm" qhov rai.

Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 12
Txhais, Ntxiv, thiab Rho Tawm Matrices hauv MATLAB Kauj Ruam 12

Kauj Ruam 6. Ua ntau lub laij lej

Tam sim no koj tuaj yeem siv cov lej "ans" thiab ua ntau qhov kev suav nrog nws. Kho "ans" tib txoj kev uas koj xav tau lwm tus lej cim. Txhua txoj cai ntxiv thiab rho tawm tib yam siv.

Lub tswv yim

Tsis zoo li qhov ntxiv, nrog kev rho tawm, qhov kev txiav txim uas nws tau ua tiav ua qhov tseem ceeb hauv qhov txiaj ntsig. Yog li, A-B tsis zoo ib yam li B-A

Lus ceeb toom

  • Koj tuaj yeem tau txais cov lus yuam kev hais tias, "Qhov ntev ntawm matrices raug sib txuas tsis sib xws," thaum koj tab tom txhais lub matrix. Qhov no yog vim tias tsis muaj tus lej sib npaug ntawm kab lossis kab ntawm txhua qhov chaw ntawm matrix. Txhawm rau daws qhov no, paub tseeb tias cov ntaub ntawv koj tau nkag mus muaj tus lej ntawm kab thiab kab uas raug.
  • Koj tuaj yeem tau txais cov lus yuam kev hais tias, "Yuam kev siv + / Matrix qhov ntev yuav tsum pom zoo." Qhov no yog vim tias qhov ntev ntawm cov lej koj tau ntxiv lossis rho tawm tsis sib npaug. Txhawm rau ua kom sib ntxiv lossis rho tawm, qhov ntev ntawm matrix yuav tsum sib phim. Kho qhov no los ntawm kev tshem lossis ntxiv kab rau hauv cov lej kom ua qhov ntev sib npaug.

Pom zoo: