How do you connect two points such as (1,1) and (2,2) using a wavy line instead of a straight line in Matlab?
I have looked at the function line([1 2],[1 2]) but it does not provide such functionality.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Like @Nzbuu said, it’s hard to know what you want your wavy line to look like. The following function will plot a sinusoid on your current figure between the 2 points, with periods and amplitude specified. If your definition of wavy is different than mine, just change
xxandyyto describe your wavy line between[0,0]and[1,1].