optical power vs distance

5 ビュー (過去 30 日間)
abdullah qasim
abdullah qasim 2021 年 1 月 26 日
回答済み: Rohit Pappu 2021 年 1 月 29 日
How can I draw a chart of the average power versus the distance, as in the following figure for knowledge that the value of the average power (1 * 101), i.e. a matrix, and the distance between the light source and the light receiver is 3 meters
Assuming average power = Paver
Distance = h

採用された回答

Rohit Pappu
Rohit Pappu 2021 年 1 月 29 日
A plausible solution
clf;
figure;
% Create a distance vector of range 1m to 3m
distance = linspace(1,3,101);
hold on
% plot a line with color red
plot(distance,Paver,'r');
% To plot the markers
% plot(x variable, y variable,'Marker','+');
hold off
% Set the title, x-axis and y-axis
title('Average Power as a function of distance');
xlabel('Distance in meters');
ylabel('Optical Power');

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by