How to replace number with string in a matrix
5 次查看(过去 30 天)
显示 更早的评论
I want to print like:
A =
1 1 1 1 1
1 1 1 1 1
1 1 Ali 1 1
1 1 1 1 1
1 1 1 1 1
but there are errors in my code:
for i = 1:5
for j = 1:5
A(i,j) = 1;
end
end
A
0 个评论
采纳的回答
Geoff Hayes
2022-8-24
移动:Cris LaPierre
2022-8-24
5 个评论
Geoff Hayes
2022-9-13
@Lavanya - I suggest that you remove this comment and create a new question as it doesn't seem to relate to the question posed by @Ali Raza. Also, has all of this code been put into your app, or just the relevant pieces? I would expect that your app (build from App Designer) would have the axes that you need to draw to...and so you wouldn't need the code to create a figure, add the subplots, etc....unless you want them to appear outside of the app.
Lavanya
2022-9-14
Here is the ''app1.mlapp'' file. This '.mlapp' file should work same as above the code. But its not working. Can you help me with this?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!