How to add new rows in an existing .mat file?

4 Ansichten (letzte 30 Tage)
CINDY LASCO
CINDY LASCO am 10 Mär. 2018
Beantwortet: chiraz Ajmi am 26 Nov. 2018
Hello. I am trying to save the texture features that I extracted from an image in a .mat file and set it as my training dataset. I wanted to save each and every texture features that I extracted everytime I process an image to that same .mat file. How can I do it? Or do you have any code that can help me to get it? I read about"append" but it replaces the values with same variables. Please, I appreciate your help on this one.
Best regards!
  2 Kommentare
Stephen23
Stephen23 am 10 Mär. 2018
"I read about"append" but it replaces the values with same variables"
Unfortunately the append option is simply very badly named. It would have been better called ensureExists or overwrite.
Abhishek Chakraborty
Abhishek Chakraborty am 12 Mai 2018
I have been facing the same problem. Using the code :
try load db; F=[F c]; db=[db;F]; save db.mat db
catch db=[F c]; save db.mat db
end
Every time I open a new image, the values get overwritten. Please make a correction in this so that new rows are added.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Ahmet Cecen
Ahmet Cecen am 10 Mär. 2018
Bearbeitet: Ahmet Cecen am 10 Mär. 2018
Take a loot at this: MATFILE.
This is actually a function, and you can modify most variables in a matfile like you would in the workspace, without loading them entirely to RAM.

chiraz Ajmi
chiraz Ajmi am 26 Nov. 2018
Hello , i am facing the some problem can some one help me i want to save each time the extracted features from the image in a file and set it as the training dataset .

Kategorien

Mehr zu Convert Image Type 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