Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2. The filde or structure array\" caa be given field,oftheirown, making tbe fiel

ID: 3699539 • Letter: 2

Question

2. The filde or structure array" caa be given field,oftheirown, making tbe fielb th setm 3 Create aested structure array piane which bas Seild caed earth which planet earth.aas5.97 2 planet earth.dsmeter-12753 4 Add a feld foe mam, diametes, and one other property (esepe velocity, umiber of moonn, esc) for all 8 planets Mercury shrogh Neptune ing the indormation at bespe//l factsheet gow/planetary/ 3. Check that every plavet shows up in your tracture armay boy linting the Selde of piaees with 6 Check the facts you'e stoeed foe the planet Satars with plaset.satur 7. Check the dianeter of Mecurty with plases ercury.dianeter tseldnasea(planet) 8. Now create a 2x2 cell array with any same. If you want to preallocate the spacs, you can create an empty 2x2 cell array with the command cell (2), or juat use indexing to ig va where you w them, or ??¡ng the usual matrix-biler 'yndax Remmber towe {}in tid of ( )k.alamy. The contents should be Jx3 identity matrix in the top lelt eell your same as a character string in the top right cell an empty cell in the boctom left (A(2.1)-) in the bottom right, put a random 2x2 matrix (raad(2,2)) 9. Create a 3D array A with dimensices 4x4x4. Fill the cootents however you values. One quick way to do this would be with nested for loope. want, but wsing numeric 1) as the 'front' of this 4xixs cube, and AC:..4)s the back, ue indexing to retrieve each of the following, all of which will be 4xt matrices the top" layer of the cube the 'bottom layer layer of the cube the "left' side the 'right'side 11. Hint for part 10: if you're stuck, try drawing a pieture, and think about which indices need to range over all values () and which indices are fixed, for any particular side of the cube. For example, as we move around on the eft side of the cube we encounter all rows () and all depths () but the column is always column 1, so the left side would be ACs,1) Please give me the code for questions 2-1 in MatLab format. Thank you for the help

Explanation / Answer

Sol: (9)

A=zeros(4,4,4)

for i=1:4

for j=1:4

for k=1:4

A(i,j,k)=i+j+k

end

end

end

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote