Info

此问题已关闭。 请重新打开它进行编辑或回答。

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 次查看(过去 30 天)
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.

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by