concatenate text and variables in a uitable
3 次查看(过去 30 天)
显示 更早的评论
Good afternoon. I have the following problem I have a matrix (XonT) that is variable in size and "double", and I am trying to add a row of type "char" to the end of the XonT matrix, but I can not understand it. , and I guess it's due to the Incopatibility between types. Is there any way to achieve this? I leave the following code in which I am working. Thank you.
for f=1:NP
Modos = (TTT(1:NP,1:NP)*(10^6)*Cant_port) - ((sol_frec(f,1))^2)*Matriz_masa ;
EO1= Modos(2:NP, 1);
EOO= Modos(2:NP, 2:NP);
Xon = inv(EOO)*(-1)*(EO1);
Xon =[1;Xon];
XonT (:, f) = Xon;
XonT (NP+1, f)= ['Mod',num2str(f)] ; % This is the line of code that the row should be for me !!!!
end
2 个评论
dpb
2019-6-14
Forget the nonworking code; show example of the data structures you have and what you're trying to achieve.
We don't have any of the variables in your code snippet to look at so doesn't help much...
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!