필터 지우기
필터 지우기

How to find distance on discrete graph

조회 수: 1 (최근 30일)
Itzik Waizman
Itzik Waizman 2021년 6월 4일
답변: Manas Minnoor 2021년 6월 5일
Hi, here's my code :
close all
clear all
clc
f = [4454,3112,2423,2060,1773,1562,1352,1153,0923,0632,0152];
phase=[-75.7,-59.9,-44,-29.9,-15,0.1,17.3,30.39,45.20,59.68,73.9];
Vr= [0.636,0.989,1.127,1.520,1.661,1.732,1.661,1.449,1.166,0.777,0.183];
Vl=[1.857,1.945,2.001,1.985,1.874,1.686,1.390,1.046,0.663,0.297,0.016];
Vc=[0.177,0.444,0.795,1.111,1.440,1.682,1.865,1.945,1.935,1.854,1.752];
V=1.767766;
VrMax=[0.6928005968,0.6928005968,0.6928005968,0.6928005968,0.6928005968,0.6928005968,0.6928005968,0.6928005968,0.6928005968,0.6928005968,0.6928005968]
plot(f,Vr/V,'r');
hold on;
plot(f,VrMax,'b');
title('BnadPass Calculation');
xlabel('f');
ylabel('Voltage/V');
legend('Vr','VrMax/sqrt(2)');
grid on;
Here's the graph:
How can I find the distance between the cross points of the blue line and the red function? I cannot simply click on this points because I did not plot them and it is an approximation.
Basicly, I want to find out for which f values, the red graph equals 0.6928005968.
Thanks in advance.
  댓글 수: 1
Rik
Rik 2021년 6월 5일
You could try a linear interpolation of the two points before and after the intersection.

댓글을 달려면 로그인하십시오.

답변 (1개)

Manas Minnoor
Manas Minnoor 2021년 6월 5일
Hey Itzik,
Please refer to the following documentation, it may be what you're looking for.
Hope this helps.

카테고리

Help CenterFile Exchange에서 Directed Graphs에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by