Week 5-7 Spline In MATLAB - MATH/MTHE 272

Поділитися
Вставка
  • Опубліковано 17 січ 2025

КОМЕНТАРІ • 12

  • @raihanzoehry7549
    @raihanzoehry7549 4 роки тому +1

    Really helpful, thanks a lot

  • @sherifelsayed9214
    @sherifelsayed9214 3 роки тому +1

    thank you

  • @Gealamusic
    @Gealamusic 3 роки тому

    Thank you this is amazing and it helps a lot!

  • @WorkSmarter4u
    @WorkSmarter4u Рік тому

    Thank you. It helps a lot. Can you please tell me how to construct the last equation. The equation you had written by hand. I needed that please help

    • @aableson
      @aableson  9 місяців тому

      I apologize for the lack of clarity in the video there. The coefficients that were printed on the page (in the large font) didn't match the calculation that I did live, which gave the coefficients in the tiny font.
      To build the function that I wrote by hand, I used the first row of values, [0.1008, -0.1517, 0, 0], and interpreted them as coefficients for a polynomial, in order of highest power to lowest power.
      Since there are 4 numbers, that means we have a cubic function. Since the interval for these coefficients started at x=0, our polynomial would be
      0.1008 (x-0)^3 + (-0.1517) (x-0)^2 + 0 (x-0) + 0,
      which was the hand-written version. Hope that makes sense.

  • @shehnawariqbal2196
    @shehnawariqbal2196 Рік тому

    Assalamualaikum sir I want ur help can u guide me how to draw graph of cubic polynomial spline on Matlab..

    • @aableson
      @aableson  9 місяців тому

      It depends on what you need for your application. If you've built the spline in MATLAB using the `spline` function, then the partner function `ppval` will evaluate the spline at your choice of x values.
      Usually I would do something like:
      xx = linspace(0, 10) % pick your interval for your plot
      yy = ppval(pp, xx) % compute the spline value at those xx values, and store in yy
      plot(xx, yy) % generate the graph.

  • @samiachaudhuri257
    @samiachaudhuri257 5 років тому

    Can u help to write a matlab code "draw a Nurbs curve by calling b spline basis function"

  • @kwa9125
    @kwa9125 4 роки тому +2

    I have try this coding but there's error on pp=spline(x,y). Can you please help me with this?

    • @marcsp6173
      @marcsp6173 4 роки тому +3

      i coded it as well: pp = spline (x,y);
      This works on Matlab R2019a

    • @kwa9125
      @kwa9125 4 роки тому +1

      @@marcsp6173 Thank you. It perfectly works now. I'm glad that you willing to help me =)

    • @bruhmomento6691
      @bruhmomento6691 3 роки тому

      @@marcsp6173 does the space really make the difference. I’m a complete norm with coding btw lol