How to make the encircled curve by blue.

2 ビュー (過去 30 日間)
Atom
Atom 2024 年 6 月 7 日
コメント済み: Aquatris 2024 年 6 月 7 日
How to make the encircled curve by blue.
clear all
format long
set(0,'DefaultAxesFontSize',20);
figure;
load('H_LC(2).mat');
dim=2; %number of variables of my system which are x and y
MMM=max(x(1:dim:end-2,:));
plot(x(end,:),MMM,'r', 'LineWidth',2); % RED
hold on
load('H_LC(2).mat');
M=min(x(1:dim:end-2,:)); % end-2 excludes the parameter and the period from the continuation variable x
plot(x(end,:),M,'r', 'LineWidth',2);
hold on
xlabel('$aa$','FontSize',20,'interpreter','latex','FontWeight','normal','Color','k');
ylabel('$bb$','FontSize',20,'interpreter','latex','FontWeight','normal','Color','k');
hold on
axis([.1142595 .1142604 .5295 .5297]);

採用された回答

Aquatris
Aquatris 2024 年 6 月 7 日
編集済み: Aquatris 2024 年 6 月 7 日
You have one weird data and script to visualize but here is one way
clear all
warning off % you had references to F:/ folder in the mat file
format long
set(0,'DefaultAxesFontSize',20);
figure;
load('H_LC(2).mat');
dim=2; %number of variables of my system which are x and y
MMM=max(x(1:dim:end-2,:));
plot(x(end,:),MMM,'r', 'LineWidth',2); % RED
hold on
plot(x(end,[1 2]),MMM(1:2),'b', 'LineWidth',2); % BLUE LINE HERE
load('H_LC(2).mat');
M=min(x(1:dim:end-2,:)); % end-2 excludes the parameter and the period from the continuation variable x
plot(x(end,:),M,'r', 'LineWidth',2);
hold on
xlabel('$aa$','FontSize',20,'interpreter','latex','FontWeight','normal','Color','k');
ylabel('$bb$','FontSize',20,'interpreter','latex','FontWeight','normal','Color','k');
hold on
plot(x(end,[1 2]),M(1:2),'b', 'LineWidth',2); % BLUE LINE HERE
axis([.1142595 .1142604 .5295 .5297]);
  5 件のコメント
Aquatris
Aquatris 2024 年 6 月 7 日
I have no idea since I dont know what this data is and what you are trying to do. If you explain what the data in x variable is (which seems to be a triangle wave, but it might also be an undersampled sine wave), I might have an answer.
Aquatris
Aquatris 2024 年 6 月 7 日
If you only meant visualy they are pixelated, then it is a tricky issue that can also be caused by your PC graphics card

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by