Find all intercepts for all parameter values

Hi,
In the attached the fig. I have different intercept for different values of xi. I plotted the figure from COMSOL. Please how can I find all the intercepts in matlab and plot them against xi ?

5 件のコメント

Walter Roberson
Walter Roberson 2023 年 10 月 11 日
Can you get access to the data, or are you limited to getting an image of the plot (like this png file) ?
University
University 2023 年 10 月 11 日
At moment I can't get access to the data because I have uninstall my COMSOL to install a new one that can work with MATLAB.
Walter Roberson
Walter Roberson 2023 年 10 月 11 日
Torsten
Torsten 2023 年 10 月 11 日
And what intercepts are you talking about ? Intercepts with the axis "velocity = 0" ? Intercepts of the curves themselves ?
University
University 2023 年 10 月 11 日
While, at the monent this is velocity component in the y-direction verse the xi plot. I actually want to plot the y_intercept (which is the position) verse the xi. In which case, i need to compute y_intercept.

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

 採用された回答

Matt J
Matt J 2023 年 10 月 11 日
編集済み: Matt J 2023 年 10 月 11 日

0 投票

As an example,
y=linspace(-1,1,1000);
V=sin(pi*y-0.4); %fake input data
loc=diff(sign(V)) & abs(y(1:end-1))<0.5;
yintercept=y(loc),
yintercept = 0.1271
plot(y,V,yintercept,0,'rx'); yline(0);
xlabel y-coordinate; ylabel Velocity

2 件のコメント

University
University 2023 年 10 月 12 日
Hi Matt,
Thank you for your assistant. I will try this
Matt J
Matt J 2023 年 10 月 13 日
You're welcome, but if it works please Accept-click the answer.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSpline Postprocessing についてさらに検索

製品

リリース

R2023a

質問済み:

2023 年 10 月 11 日

コメント済み:

2023 年 10 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by