Filter löschen
Filter löschen

extracting specific values from a mat file

5 Ansichten (letzte 30 Tage)
Seyedeh Fardis
Seyedeh Fardis am 15 Sep. 2023
Beantwortet: Voss am 15 Sep. 2023
Hi,
I have a mat file with 13299x1 data and I want to extract specific rows to be in a new mat file. For example I want the 1th, 5th, 12th, 13th, 15th, .... rows' values to be extracted and be put in a new mat file. Note that, I have another mat file with 1723x1 containing just the number of these rows that I'm looking for.

Antworten (1)

Voss
Voss am 15 Sep. 2023
First load the two mat files you have. Then index into the 13299x1 variable using the 1723x1 row index variable, creating a new variable of size 1723x1. Finally save the new variable to another mat file.

Kategorien

Mehr zu Structures finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by