Help Solving MATLAB Questions Involving Triangles and Prisms

  • Thread starter Thread starter Mdhiggenz
  • Start date Start date
  • Tags Tags
    Matlab Triangles
AI Thread Summary
To solve the MATLAB homework questions involving triangles and prisms, the volume of a right prism is calculated using the formula: volume = base area * vertical dimension. The area of the triangle from question 29, defined as 1/2 * base * height, should be used as the base area for question 40, where the vertical dimension is specified as 10. For creating matrix B by extracting the first column of matrix A, the correct MATLAB syntax should be B = A(:,1) instead of B = A(1,:). If the current command is not yielding the desired results, it is important to clarify what the output is versus the expected outcome. Understanding these concepts will lead to a successful resolution of the MATLAB problems.
Mdhiggenz
Messages
324
Reaction score
1

Homework Statement


I have a couple of MATLAB questions hopefully you guys can help me out

40).The volume of a right prism is base area * vertical_dimension. Find the volumes of the prisms with triangles of problem 29 as their bases, for vertical dimensions of 10.

I don't understand which part of 29 they want me to incorporate. Question 29 reads the area of a triangle s 1/2 base* height define the base of the matrix as b=[2,3,6]

Would I use the area of question 29 as the base area in question 40?


Create a B matrix by extracting the first column of matrix A

I'm trying B= A(1,:)

Thanks for the help guys.

And it doesn't seem to be working..




Homework Equations





The Attempt at a Solution

 
Physics news on Phys.org
Would I use the area of question 29 as the base area in question 40?
That would be my reading. #29 has a bunch of triangles which are to be used as basis for right-prisms. Probably you should implement the method from #29 for finding the area or a triangle.

I'm trying B= A(1,:) ... And it doesn't seem to be working..
In what way?
What does it do instead of what you want?
(Once you have described the problem, the solution should leap out at you.)
 
Back
Top