Remove the 1x1 Cell Array from the Cell Array
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hey everyone,
I have the following code:
s{1} = [4 2];
s{2} = [2 1];
S{1} = [s{1}];
m = 1;
for j = 1:m
Temp_D{j} = S{j} - s{j+1};
end
Temp_D = cell2sym(Temp_D);
D{1} = Temp_D;
D{1}
However, when I use this chunk of code as a function in my code, I get the following result :

Why do I need to do D{1}{1} To access the the array [2, 1], can I solve this problem?
2 Commenti
Jan
il 27 Set 2022
Why do you consider this as a "problem". It is exactly, what the code instructs Matlab to do. What do you want instead?
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!