Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

i have dbhole.mat file. This contains 1x1 with 334 fields having name starts with 'd' then 'numeric' then 'h'then 'numeric. each field contains data of [2x n], n is not same for all. i have to sort out d followed by different numeric and h2 fixed.

1 Ansicht (letzte 30 Tage)
s = load('dbhole.mat'); selectedvariables = sprintfc('d%dh2', 1:14); [~, location] = ismember(selectedvariables, fieldnames(s)); c = struct2cell(s); c = c(location); now i have to merge all the datas into a single cell.example- From above code c contains [2x189], [2x201] and so on (in column), but i want the data contain in [2X201]cell and rest should be merge in [2x189] cell. how to do this, please help.

Antworten (0)

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by