Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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 vue (au cours des 30 derniers jours)
MUKESH VIKRAM
MUKESH VIKRAM le 24 Juin 2016
Clôturé : MATLAB Answer Bot le 20 Août 2021
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.

Réponses (0)

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by