How can i write a .ymal file ??
73 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Giorgia Fusaroli
am 29 Jun. 2021
Bearbeitet: Bill Tubbs
am 31 Mär. 2024
Hi everyone,
i have to write in a .yaml file a vector of cells (first cell is a string, then i have a vector of number values and convert all in cell was a simple solution to have different types of variables in the same vector).
i don't know the extension .yaml and so i hope that someone of you could help me :)
I attach an example of what i'm saying:
signal = x; %vector of double
label = ('signal x'); %string
A = mat2cell(signal, ones(1,size(signal,1)), ones(size(signal,2))); %conversion in cell vector
B = cat(2,label,A); %concat string and cell vector in order to forming a row
%now i have to save B in a file with .yaml as extension
Maybe using .yaml file there is another solution to have label and signal in the same row :)
thank you in advance
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 29 Jun. 2021
https://github.com/ewiger/yamlmatlab can be used to write YAML from MATLAB.
1 Kommentar
cui,xingxing
am 13 Jun. 2022
this yamlmatlab can not import and export my yml format. see my attachment
Weitere Antworten (2)
Prakhar Rai
am 29 Jun. 2021
Bearbeitet: Prakhar Rai
am 29 Jun. 2021
As of now MATLAB does not support YAML parsing but you could use third party tools like 'yamlmatlab' for the task.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Prepare Model Inputs and Outputs 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!