About 1,540,000 results
Open links in new tab
  1. pascal - MathWorks

    P = pascal(n) returns a Pascal’s Matrix of order n. P is a symmetric positive definite matrix with integer entries taken from Pascal's triangle. The inverse of P has integer entries. P = pascal(n,1) returns the lower triangular Cholesky factor (up to the signs of the columns) of the Pascal matrix.

  2. How do you create the Pascal Triangle? - MATLAB Answers

    Feb 21, 2017 · this is for my own curiosity. how do you create the Pascal triangle in MATLAB without using the pascal() function? I assume that you're going to need a grid of zeros and a FOR loop to fill in the matrix. But how do you actually build it?

  3. EPISODE 06 - FUNCTIONS - PASCAL'S TRIANGLE EXAMPLE | MATLAB ... - YouTube

    Sep 17, 2019 · Example of how to program a function to compute the nth row of Pascal's Triangle. Hit the ground running with this tutorial video series designed to be a practical introduction to MATLAB and...

  4. Creating Pascal's triangle using MATLAB. - YouTube

    Creating Pascal's triangle using MATLAB. Use of Nested loops to create a matrix using MATLAB.

  5. Creating a Recursive Function that Generates Pascal's Triangle (Matlab)

    Nov 24, 2017 · I've been trying to figure out how to recursively generate Pascal's triangle in a matrix using Matlab. Here is an example of how it should look like: >>PascalT(0) ans = 1 >>

  6. triangularPulse - MathWorks

    Input, specified as a number, vector, matrix, or array, or a symbolic number, variable, array, function, or expression. If a < x < b, then the triangular pulse function equals (x - a)/(b - a). If b < x < c, then the triangular pulse function equals (c - x)/(c - b). If x <= a or x >= c, then the triangular pulse function equals 0.

  7. how to make a triangle in matlab | triangle in matlab - YouTube

    In this video you will learn how to make a triangle in matlab.

  8. How to integrate over a triangle in MATLAB? - Stack Overflow

    Nov 6, 2016 · You can create a new function h(x,y), that returns f(x,y) if (x,y) is inside the polygon, and 0 otherwise. For instance: A = [0, 0]; B = [0, 5]; C = [5, 0]; triangleX = [A(1) B(1) C(1)]; triangleY = [A(2) B(2) C(2)]; f = @(x,y) (1); h = @(x,y) (inpolygon(x, y, triangleX, triangleY) .* f(x,y)); q = integral2(h, min(triangleX), max(triangleX ...

  9. How can I create systematic matrices in MATLAB?

    Apr 20, 2014 · I'm setting up a script and I want it to systematically go through ALL POSSIBLE 2x2, 3x3, and 4x4 matrices modulo 2, 3, 4, 5, 6, and 7. For example, for modulus 2 in a 2x2, there would be 16 possibilities (4^2 because there are 4 positions with 2 possibilities each).

  10. Nested Loop Script (Triangle) - MATLAB Answers - MATLAB

    Apr 28, 2019 · Nested Loop Script (Triangle). Learn more about nested loop, script Write a nested llop script that will print the following pattern, printing one number or character at a time starting at 1 and using the numbers 0 through 9

Refresh