Question

In: Advanced Math

I would like to know how to plot two graphs in matlab and find where they...

I would like to know how to plot two graphs in matlab and find where they intercept.

Solutions

Expert Solution

For this just I'll write code by taking example so that you can understand

% define x Axis and evaluate functions

x_points = -5:0.1:5;

function1 = -x+1;

function2 = x+1;

index_intersection = find(function1 == function2);

x_value_intersection = x_points(index_intersection);

y_value_intersection = function1(index_intersection);

% plot functions and intersection point:

curve1 = plot(x_points, function1);

hold on

curve2 = plot(x_points, function2);

intersection = plot(x_value_intersection, y_value_intersection,...

'Marker', '+', 'MarkerSize', 6, 'Color', 'r');

For your reference i i attached the code and graph which i have did my desktop

just try this example you can understand

If you have any questions please let me know

Please give me thumb up


Related Solutions

I would like to know what is controlled substance and how should it be wasted? and...
I would like to know what is controlled substance and how should it be wasted? and what is the plan of care for a patient with neuropathic pain? Thank you.
Q. In java, I would like to know, especially how the program detect there is an...
Q. In java, I would like to know, especially how the program detect there is an error which is user should put only numerical data but if user put letter data (five, sixty instead of 5,60), *I want the program display "Invalid data. Please try again" instead of long error message(from the IDE)* when user put letter data(five, sixty stuff...) and GO BACK TO THE BEGINNING SO USER CAN PUT THE DATA AGAIN! Write a program that counts change. The...
Hi, i would like to know how to get information of an 'image' and put it...
Hi, i would like to know how to get information of an 'image' and put it on 'C programming' I would also like to know how to compress the image information and decompress it.
I would like to know some good sources to look up to find answers on what...
I would like to know some good sources to look up to find answers on what fiscal policies have been carried out in the past 2 years, and whether it was pro or counter cyclical.
Hello , I would like to know about these two durgs medication classification, name of common...
Hello , I would like to know about these two durgs medication classification, name of common medication in this classification, major action, common side effects, why client is taking this drug? Is these drugs is working for this client( must include the rational with proof( lab work, charting documentation, what action the nurse take when monitoring the patient? nursing assessment of drug's effectiveness, teaching about medications, important information relating to these drugs on discharge. Drug names are Farxiga, cetirzine Thank...
I would like to know the critical thinking portion of the questions
I would like to know the critical thinking portion of the questions
topic- how food travels through the body I would like to know how a salad, French...
topic- how food travels through the body I would like to know how a salad, French fries or concentrated sweets are digested.  If you were teaching a basic lesson on digestion, how would you describe the digestive process and what does the body do if eating salad or French fries, is there a difference? where hormones and enzyme information begins about how the activities vary depending on the food.   The goal is to understand what happens to the food when the body digests...
I would just like to know if ANOVA would be the correct test to use for...
I would just like to know if ANOVA would be the correct test to use for the following problem below? Fancy Fish, a fine dining upscale restaurant in Northridge, California and 2016 Open Table Diners’ Choice award winner, is enjoying its eighteenth season of providing delectable food, exceptional service, and beautiful outdoor dining experiences. “Saturday - Half-off Bottled Wine Night” has made Fancy Fish one of the San Fernando Valley’s favorite restaurants. Every Saturday night, guests can enjoy half-off every...
Decision Making under uncertainty Hello, I would like to know the steps by steps on how...
Decision Making under uncertainty Hello, I would like to know the steps by steps on how to solve this on excel decision tree, please do not just answer the final result. Thank you Carlisle Tire and Rubber, Inc., is considering expanding production to meet potential increases in the demand for one of its tire products. Carlisle’s alternatives are to construct a new plant, expand the existing plant, or do nothing in the short run. The market for this particular tire...
I would like to know how topoisomerase 1 and 2 works e what is the difference...
I would like to know how topoisomerase 1 and 2 works e what is the difference between negative and positive supercoiling.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT