Why is my matrix deformed?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/199248/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/199249/image.png)
edit : ı added code ı wrote.
%%%%%Code%%%%
clc;
clear;
clear all;
a = [0:0.1:360];
b = a.*pi/180;
c = sind(a);
d = cos(a);
e = c./d;
f = d./c;
T = [a;b;c;d;e;f];
str1 = 'angle';
str2 = 'radian';
str3 = 'sin';
str4 = 'cos';
str5 = 'tan';
str6 = 'cot';
fprintf('%s %s %s %s %s %s\t',str1,str2,str3,str4,str5,str6);
fprintf('%.1f %.4f %.4f %.4f %.4f %.4f\n',T);
%%%%code%%%%%
1 commentaire
Réponses (1)
madhan ravi
le 17 Déc 2018
Modifié(e) : madhan ravi
le 17 Déc 2018
fprintf('%s %s %s %s %s %s\n',str1,str2,str3,str4,str5,str6);
^--- not t
2 commentaires
Voir également
Catégories
En savoir plus sur Logical 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!