How to replace number with string in a matrix
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Geoff Hayes
le 24 Août 2022
Déplacé(e) : Cris LaPierre
le 24 Août 2022
5 commentaires
Lavanya
le 14 Sep 2022
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?
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!