Question
MATLAB Fundamentals ( Numerical Method ) only (Add your observations here) after each code please A = [1 2 3] AA = [1, 2, 3]
MATLAB Fundamentals ( Numerical Method )
only (Add your observations here) after each code please
A = [1 2 3]
AA = [1, 2, 3]
AAA = [1;2;3]
(Add your observations here)
(2)
B = A' BB = transpose(A) BBB = A(:) % this only converts a row to column an not from column to row
A = BBB(:)
C = BB'
CC = transpose(B)
(Add your observations here)
(3)
x = 0:2:10
xx = 1:10
xxx = 1:0.5:10
q = linspace(0,20,7)
(Add your observations here)
(4)
q = [1 2 3 4]
w = [3 4 5 6]
e = [q w]
e(2) = 10 % change the value of element 2 in e to 10
(Add your observations here)
(5)
c = [ 1 2 3; 4 5 6; 7 8 9]
h = numel(c)
h = length(c)
h = size(c)
(Add your observations here)
(6)
A = [1 2 3 4; 5 6 7 8; 9 10 11 12]
A(2,3) A(2,3) = 0 A(3,2) A(3,2) = 0
A(:,4) % where ":" means all available (here all available rows)
A(:,4) = 0
A(3,:) % where ":" means all available (here all available columns)
A(3,:) = 0 A(:,3)
A(:,3) = []
(Add your observations here
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started