Please help me convert equation to matlab code
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Please help me convert equation to matlab code
0 commentaires
Réponses (3)
Sargondjani
le 24 Oct 2021
[0 0 0;1 2 3] is an example of a matrix i Matlab. Please try the rest yourself. We are not here to do your homework. If you gave it a try, and fail, then come with specific questions what you dont understand.
0 commentaires
Image Analyst
le 24 Oct 2021
Use sqrt() for square root, pi for pi, commas between columns, and semicolons between rows. For example
m = [0, 1, pi;
sqrt(2), 2, 0]
m =
0 1 3.1416
1.4142 2 0
Adapt as needed to your homework.
0 commentaires
yanqi liu
le 26 Oct 2021
clc; clear all;
A = [ones(2, 3) zeros(2,2)
eye(3) ones(3,1) zeros(3,1)]
B = [pi*ones(1,5)
ones(1,5)
zeros(1,5)
ones(1,5)]
C = sqrt(2)*ones(3,3)
2 commentaires
John D'Errico
le 26 Oct 2021
Please don't do homework assignments for people. That does not help them, except to learn there is sometimes someone out there who is foolish enough and willing to do their work for them.
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!