Can someone please help me with plotting this function of the Gaussian Beam wavefront radius?!

조회 수: 1 (최근 30일)
Given: Power and energy (but i don't think these have anything to do with the plotting). Also the wavelength of the laser is given (248 nm). Nothing else is given....
I need to plot R(z).

답변 (1개)

Dan Po
Dan Po 2016년 9월 27일
편집: Dan Po 2016년 9월 27일
calculate: w0, lambda and set them as variables. i am guessing lambdaL=248
clc
clear
close
%
w0=4;
lambda=2;
z=1:1000; %or your wanted plotted values
beamradius=w0*sqrt(1+((lambda*z)/(pi*(w0).^2)).^2);
%
plot(z,beamradius,'r')
title('blabla bla')
xlabel('blab bla bali') % x-axis label
ylabel('blab bla bali') % y-axis label
legend('z = whatever','Location','northwest')
check for units
  댓글 수: 1
Melissa Merhej
Melissa Merhej 2016년 9월 27일
Thank you Dan for the help, do you by any chance know how to make the code locate a specific coordinate on the plot if i only have one of the coordinates?
So i basically for example have y=ax+b ; i want my code to go to point x and locate y without me having to calculate y. And i want it to show on the graph.
Thank you!

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

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by