i dont know how to write this code in one command can someone help me
์กฐํ ์: 1 (์ต๊ทผ 30์ผ)
์ด์ ๋๊ธ ํ์
mike john
2020๋
4์ 20์ผ
๋๊ธ: Rena Berman
2020๋
5์ 14์ผ
Perform the following using one command
1. Generate an empty matrix N
2. Initialize elements of ๐ (3 โ 4)to be zeros
3. Generate matrix ๐ and fill it with ones (same size of N) 4. Matrix ๐ฟ= 3 1 7; 2 4 โ2; 2 โ1 0 , find matrix ๐ in which all elements of ๐ฟ are doubled 6 2 14 ;4 8 โ4; 4 โ2 0
5. Find matrix ๐, in which all elements of ๐ are less by 1
6. Find matrix ๐, which is the sum of elements in ๐ and x
๋๊ธ ์: 3
Stephen23
2020๋
4์ 22์ผ
Original question by mike john, recovered from Google Cache:
"i dont know how to write this code in one command can someone help me"
Perform the following using one command
1. Generate an empty matrix N
2. Initialize elements of ? (3 โ 4)to be zeros
3. Generate matrix ? and fill it with ones (same size of N) 4. Matrix ?= 3 1 7; 2 4 โ2; 2 โ1 0 , find matrix ? in which all elements of ? are doubled 6 2 14 ;4 8 โ4; 4 โ2 0
5. Find matrix ?, in which all elements of ? are less by 1
6. Find matrix ?, which is the sum of elements in ? and x
์ฑํ๋ ๋ต๋ณ
BALAJI KARTHEEK
2020๋
4์ 20์ผ
N=[];%empty matrix geneation
N=zeros(3,4)% Question 2
O=ones(3,4)% Qusetion 3
L=[3 1 7; 2 4 -2;2 -1 0];
X=L+L;% Qusetion 4
Y=X-ones(3,3);% Qusetion 5
Z=Y+X% Qusetion 6
๋๊ธ ์: 0
์ถ๊ฐ ๋ต๋ณ (0๊ฐ)
์ฐธ๊ณ ํญ๋ชฉ
์นดํ ๊ณ ๋ฆฌ
Help Center ๋ฐ File Exchange์์ Waveform Generation์ ๋ํด ์์ธํ ์์๋ณด๊ธฐ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!