### Similar Threads:

1.Changing matrices in cell arrays except for one cell array in a cell

Hey guys I need your help once again! I hope someone can show me how to do this. So I have a cell MTT with "d" cell arrays in it, each cell array contains a matrix of nxn and I need to change a whole row of numbers to Inf in every matrix except for one of them which is going to be given by variable "b". MP is a matrix with a dx2 dimension. Here is my code but this will do it for all matrices, I want to find a way to not do it for "b",
for d = 1:numMachines;
MTT{d}(MP(b,2),:) = Inf;
end
Now I have tried doing the following but I guess I can not do this in MatLab,
for d = 1:numMachines && d ~= b;
MTT{d}(MP(b,2),:) = Inf;
end
Thanks for any help that is given! I hope I made myself clear with my explanation.

2.Auto populate cells based on 2 cells division.

I have a file with two sheets one has a bid template each section of the job
has a total cost and total days. I want to be able to chart the totals by
day. I need the cells on the sheet with the information for the chart to
auto fill. Example:
Cell A2 Description Blah Blah B2 Days 10 C2 Total Cost 100
Column A Column
B Days Cost 1 10 2 10 3 10 4 10 5 10 6 10
7 10
8 10
9 10
10 10
I want it to auto populate the days in coulmn A based on the total days from
"B2" on Sheet1.
Also divide the daily charge based on "C2" Divided By "B2" from Sheet1
Thanks,
Chance

3.convert to cell array into a character array or cell array of

Thank you very much Nathan
it works very well,
Kind Regards,
Manal

4.convert to cell array into a character array or cell array of strings

Hi
I have this horizontal array of names:
Name Size Bytes Class Attributes
itemNames 1x70 7428 cell
I need to convert this into a a character array or cell array of strings.
I tried:
S = char( itemNames)
??? Error using ==> char
Cell elements must be character arrays.
I tried also:
S = cellstr( itemNames)
??? Error using ==> cellstr at 34
Input must be a string.
I appreciate your help,
thanks,
Manal

5.delete cells in cell array with certain cell size

Hi there,
how can I delete cells (arrays of different length) with a size==1 in a cell array?
example for an cell array C. Cells 3 and 6 have a size of 1x2 and have to be deleted:
>>C(1:6)
ans =
[13x2 single] [14x2 single] [1x2 single] [9x2 single] [11x2 single] [1x2 single]
I could manage it for empty cells using cellfun
% Empty cells in cell arrray will be deleted.
C(cellfun(@(C) isempty(C),C))=[];
Thanks Stephan

6. How to delete row of empty cell arrays without reshaping of cell array

7. Access to cell array in cell array

8. Converting cell array of strings to cell array of numbers