Help Solving MATLAB Questions Involving Triangles and Prisms

  • Thread starter Thread starter Mdhiggenz
  • Start date Start date
  • Tags Tags
    Matlab Triangles
Click For Summary
SUMMARY

The discussion focuses on solving MATLAB problems related to calculating the volume of right prisms using triangular bases. Specifically, the volume is determined by multiplying the base area, derived from triangle area calculations, by a vertical dimension of 10. The area of the triangle is calculated using the formula 1/2 * base * height, with a specified base matrix of b = [2, 3, 6]. Additionally, there is a query regarding the extraction of the first column from matrix A using the command B = A(1,:), which is not functioning as intended.

PREREQUISITES
  • Understanding of MATLAB syntax and commands
  • Knowledge of geometric formulas for calculating the area of triangles
  • Familiarity with matrix operations in MATLAB
  • Basic principles of volume calculation for prisms
NEXT STEPS
  • Research how to implement area calculations for triangles in MATLAB
  • Learn about matrix manipulation commands in MATLAB, specifically for row and column extraction
  • Explore volume calculations for various geometric shapes in MATLAB
  • Study MATLAB debugging techniques to troubleshoot command errors
USEFUL FOR

Students and educators in engineering or mathematics, particularly those working with MATLAB for geometric computations and volume calculations involving prisms and triangles.

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.)
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
3
Views
2K
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
12K
Replies
3
Views
4K