Python puas tuaj yeem nyeem.MAT cov ntaub ntawv?
Python puas tuaj yeem nyeem.MAT cov ntaub ntawv?

Video: Python puas tuaj yeem nyeem.MAT cov ntaub ntawv?

Video: Python puas tuaj yeem nyeem.MAT cov ntaub ntawv?
Video: Data Science with Python! Joining Tables Without a Common Column 2024, Hlis ntuj nqeg
Anonim

Pib ntawm kev tso tawm 7.3 ntawm Matlab, cov ntaub ntawv tau txais kev cawmdim tiag tiag siv hom HDF5 los ntawm lub neej ntawd (tshwj tsis yog tias koj siv tus chij -vX thaum txuag lub sijhawm, saib hauv Matlab). Cov no cov ntaub ntawv tau ua nyeem hauv Python siv, piv txwv li, PyTables lossis h5py pob.

Hais txog qhov no, kuv yuav saib cov ntaub ntawv. MAT li cas?

Yuav qhib li cas MAT File . MAT cov ntaub ntawv uas yog Microsoft Nkag mus Luv luv cov ntaub ntawv tuaj yeem tsim los ntawm rub lub rooj tawm ntawm Nkag mus thiab mus rau lub desktop lossis mus rau lwm lub nplaub tshev. Microsoft Nkag mus yuav tsum tau ntsia kom siv lawv. MathWorks MATLAB tuaj yeem qhib MAT cov ntaub ntawv uas yog siv los ntawm qhov kev pab cuam.

Kuj Paub, Kuv yuav qhib li cas. MAT cov ntaub ntawv yam tsis muaj Matlab?. cov ntaub ntawv muaj binary cov ntaub ntawv, yog li koj yuav tsis tau qhib lawv yooj yim nrog ib lo lus processor. Muaj qee qhov kev xaiv rau qhib lawv sab nraud MATLAB : Yog tias txhua yam koj yuav tsum ua yog saib ntawm cov ntaub ntawv , koj tuaj yeem tau txais Octave, uas yog pub dawb, tab sis kev siv qeeb qeeb MATLAB.

Ib yam li ntawd, nws yog nug, dab tsi yog. MAT cov ntaub ntawv?

Cov ntaub ntawv nrog cov. mat extension yog cov ntaub ntawv uas yog nyob rau hauv binary cov ntaub ntawv thawv hom uas MATLAB program siv. Qhov txuas ntxiv tau tsim los ntawm Mathworks thiab MAT cov ntaub ntawv yog categorized li cov ntaub ntawv cov ntaub ntawv uas suav nrog kev sib txawv, kev ua haujlwm, arrays thiab lwm yam ntaub ntawv.

Kuv yuav hloov cov ntaub ntawv ntawm Matlab rau Python li cas?

Yog koj sau cov ntaub ntawv nrog Matlab tab sis xav ua haujlwm ntawm nws siv Python (piv txwv li ua cov duab zoo nrog matplotlib) koj tuaj yeem xa tawm ib qho. mat ntaub ntawv thiab ces ntshuam uas rau hauv Python siv SciPy. Nco ntsoov tias hauv Python indexing pib ntawm 0, es tsis yog 1 (uas yog li cas Matlab ua li).

Pom zoo: