Can anybody help how to write Matlab code for backward bifurcation

9 ビュー (過去 30 日間)
Praveen Kumar Anagandula
Praveen Kumar Anagandula 2023 年 6 月 10 日
コメント済み: Sam Chak 2023 年 9 月 4 日
I am working on a paper ,I have seen below graphs, Can anyone help how to draw it.
  1 件のコメント
John D'Errico
John D'Errico 2023 年 6 月 10 日
編集済み: John D'Errico 2023 年 6 月 10 日
You want someone to teach you how to plot a parabola? (Hint: Exchange x and y. Hint2: Plot the two branches separately, so with two different colors.)

サインインしてコメントする。

回答 (1 件)

Pratheek
Pratheek 2023 年 6 月 19 日
Hi Praveen,
I understand that you want to plot a parabola, you can use plot function to do that and here is a example to do that
x1 = -10:0.1:0; % Define x-values for the first half
x2 = 0:0.1:10; % Define x-values for the second half
% Calculate y-values for each half
y1 = x1.^2; % First half of the parabola (positive y)
y2 = x2.^2; % Second half of the parabola (positive y)
% Plot the first half in red
plot(x1, y1, 'r')
hold on
% Plot the second half in blue
plot(x2, y2, 'b')
hold off
xlabel('x')
ylabel('y')
title('Half Parabola with Two Colors')
legend('First Half (Blue)', 'Second Half (Red)')
grid on
  3 件のコメント
Kaushal Soni
Kaushal Soni 2023 年 9 月 4 日
wronfg this is not way to plot
Sam Chak
Sam Chak 2023 年 9 月 4 日
Okay @Kaushal Soni, Can you show your correct way of plotting the 'backward bifurcation' branch?

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by