I have problem with Sizing and Cell arrays

here I have a variable which has this size:
and then I have this :
How can I reshape load_value_41_44 , so I could do this : DCT - load_value_41_44
note that All DCT rows will get value in future loops and all of them will be 95*1

2 Comments

But load_valu_41_44 is 672 which is not a multiple of 95 so how can you subtract load_value_41_44 from each cell of DCT?
it's possible to build an array which all the cells have a same value. so it's possible to change each cell with 95*1 array with same value. but how?

Sign in to comment.

Answers (1)

Is this what you want?
% Subtract
D = cell2mat(DCT)
output = D - load_value_41_44';

2 Comments

Actually I want to reshape load_value_41_44 . I mean that for load_value_41_44 I have 672*1 cells , which for each cell I have a single value. I want to have a 95*1 cell array in each of these 672*1 cells, which all of them have a same value. so both of load_value_41_44 and DCT will have same size.
Did you try mat2cell()?

Sign in to comment.

Categories

Asked:

on 15 Sep 2018

Reopened:

on 22 Dec 2018

Community Treasure Hunt

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

Start Hunting!