I am unable to display my answers on command window

1 vue (au cours des 30 derniers jours)
Eiman Rana
Eiman Rana le 19 Sep 2021
Modifié(e) : Stephen23 le 19 Sep 2021
% Question 1:
a = [3 6 1 9; 6 5 3 7; 7 3 2 6];
disp(a);
% (a)
j = a(1,2);
disp(j);
if i use disp(a) it doesnt show my answer like this:
a =
3 6 1 9
6 5 3 7
7 3 2 6

Réponses (1)

Stephen23
Stephen23 le 19 Sep 2021
Modifié(e) : Stephen23 le 19 Sep 2021
a = [3 6 1 9; 6 5 3 7; 7 3 2 6];
display(a)
a = 3×4
3 6 1 9 6 5 3 7 7 3 2 6

Catégories

En savoir plus sur Timing and presenting 2D and 3D stimuli 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!

Translated by