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 commentaires

Image Analyst
Image Analyst le 15 Sep 2018
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?
Baran Mehrdad
Baran Mehrdad le 16 Sep 2018
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?

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 15 Sep 2018
Is this what you want?
% Subtract
D = cell2mat(DCT)
output = D - load_value_41_44';

2 commentaires

Baran Mehrdad
Baran Mehrdad le 16 Sep 2018
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.
Image Analyst
Image Analyst le 16 Sep 2018
Did you try mat2cell()?

Connectez-vous pour commenter.

Catégories

Rouvert :

le 22 Déc 2018

Community Treasure Hunt

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

Start Hunting!

Translated by