필터 지우기
필터 지우기

Connecting two points with a curved line

조회 수: 7 (최근 30일)
Tertius Poolman
Tertius Poolman 2019년 11월 23일
답변: Pravin Jagtap 2019년 11월 26일
I want to plot a bending moment diagram and need a curved line in my plot. If I have the (x,y) cordinates of the two points, how do I connect them with a curved line without knowing the function of the curved line(parabola)?
Capture Matlab.JPG
  댓글 수: 10
Bjorn Gustavsson
Bjorn Gustavsson 2019년 11월 25일
Tertius, if you're that new to matlab take an hour or so to get through some introduction to matlab document or video or the like, that will be worth it for you - and since you'll get a grasp of
much more general stuff that is peripheral to this direct task you'll be better prepared to take on later problems.
Also: Welcome.
David Goodmanson
David Goodmanson 2019년 11월 25일
good advice from Bjorn, and pay close attention to the difference between
^ and .^

댓글을 달려면 로그인하십시오.

답변 (1개)

Pravin Jagtap
Pravin Jagtap 2019년 11월 26일
Hello Tertius
In addition to Bjorn Gustavsson and David Goodmanson I would like to add following points:
  1. In case of shear force and bending moment theory, there is a way to get the equation of shear force and bending moment for each section of beam i.e. shear force = f(x) or bending moment = f(x). (Note: Bending moment is one order higher than shear force in that sectoin of beam)
  2. Once you get the analytical equation of shear force and bending moment, you can consider the position i.e. x vector and use that vector to calculate shear force and bending moment vectors for plotting purpose using the analytical equation which you got in above step.
  3. Since your objective is to plot shear force and bending moment for a beam in one figure, you must generate above step for each section separately i.e. if you have 4 sections you need 4 pairs of 'x' and 'shear force' for a beam and using ‘hold on’ command you can plot all the sections of a beam in one figure.
  4. Please refer to following documentation for understanding how to use ‘plot’ and ‘hold on’ command:https://www.mathworks.com/help/matlab/creating_plots/using-high-level-plotting-functions.html
Kind Regards
~Pravin

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by