Community Profile

photo

Athira T Das


Last seen: ongeveer een maand ago Active since 2022

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Answered
How to execute double for loop?
I changed my code like fun = matlabFunction(IQ1,'Vars',[r,ph,phi]); result_3 = (1/(4.*pi.*pi)).*abs(integral3(@(r,ph,phi)fun(...

ongeveer 2 maanden ago | 0

Question


How to execute double for loop?
I have an equation . This particular equation is for an z value. But I have an array of z and I need to evaluate get C as an ...

ongeveer 2 maanden ago | 2 answers | 0

2

answers

Question


How to plot 2D phase distribution of a beam?
I have the electric field equation of a beam, And I need to plot the 2D phase distribution of the beam like I am unaware a...

9 maanden ago | 1 answer | 0

1

answer

Question


How to change colormap based on z axis instead of y?
m=1; %for m0=m=1 a=[0.636083933250372 0.212144382452125 0.0546892460944343 0.0811463126813785 0.0632774202126715 0.05623621...

10 maanden ago | 2 answers | 0

2

answers

Question


How to normalize surf plots?
syms x y x0 = -.5:0.001:.5; y0 = x0;w0=0.05; [X0,Y0] = meshgrid(x0,y0); omegax=2 omegay=omegax; f = @(x0,y0)sinh((omegax...

10 maanden ago | 1 answer | 0

1

answer

Question


How to surf plot and line plot together for the code?
I need to plot like But for my code it showing some error [x, y] = meshgrid(-.5:0.01:.5); m =1; sgm =1; wo = 0.01; l...

10 maanden ago | 1 answer | 0

1

answer

Question


Why contourf and fcontour gives different images for the same matlab code?
I have code for fcountour as; syms x y m =1; sgm =1; wo = 0.01; lambda=532 *10^-9; k=2*pi/lambda; Omega = .2; z=...

10 maanden ago | 1 answer | 0

1

answer

Question


How to normalize plot?
How to normalize the plot to one? clc;clear all;close all; syms x y x0 = -.02:0.001:.02;lambda=532*10^-9; y0 = -.02:0.001:....

11 maanden ago | 1 answer | 0

1

answer

Question


Why this for loop showing this error?
clc;close all;clear all syms r ph phi lam=532 *10^-9; k=2*pi/lam; omega=30; w0=0.002; rho=1;p=1; z=100; R=0.06; m1=...

11 maanden ago | 1 answer | 0

1

answer

Question


How to do summation and integration?
clc;close all;clear all syms r ph phi z m=1 lam=532 *10^-9; k=2*pi/lam; omega=30; w0=0.002;rho=1;p=1;R=0.06; N=3 for...

11 maanden ago | 1 answer | 0

1

answer

Question


How to resolve the Plotting issue in my code?
I done the partial differentiation of W and W3 and then substitute with an array of values and tried to plot. clc;close all; c...

11 maanden ago | 1 answer | 0

1

answer

Question


Error in Double Integration problem
%anisotropic spatial power spectrum syms q theta qx=q*cos(theta);qy=q*sin(theta); q=sqrt(qx^2+qy^2); mu=2;gamma=90;C0=0....

11 maanden ago | 2 answers | 0

2

answers

Question


How to change the marking in colorbar?
How to change the colorbar marking uniformly? clc;close all;clear all; lambda=532 w0 = 1; % beam waist z = 0; ...

11 maanden ago | 1 answer | 0

1

answer

Question


How to plot in 2D this equation?
I have an equation and need to plot this like

11 maanden ago | 1 answer | 0

1

answer

Question


Error in double integration
I need to evaluate a double integration but showing some error lam=532*10^-9; z=100; k=2*pi/lam; omega=30;s=5; r=linspace(0...

11 maanden ago | 2 answers | 0

2

answers

Question


How to generate Bessel Gauss signal in optisytem using Matlab?
I need to generate input signal of Bessel beam to an electronic circuit designed in Optisytem software by including a Matlab com...

ongeveer een jaar ago | 1 answer | 0

1

answer

Question


How to get the integral expression?
I am trying to solve following expression in Matlab. And my script is clc;close all;clear all; syms s phis r phir A=1;m=1...

ongeveer een jaar ago | 0 answers | 0

0

answers

Question


Integration limit is an array
syms x tau=35*10^-15; f=tau.*exp(-x.^(2)); t=linspace(-300*10^-15,300*10^-15,500); fun=matlabFunction(f,'Vars',x); z=inte...

meer dan een jaar ago | 1 answer | 0

1

answer

Question


How to draw contour plot of given function?
sgn=1 m=2 w0 =0.02

meer dan een jaar ago | 1 answer | 0

1

answer

Question


How to plot these types of graph in matlab?
How to seperate multiplot and to show graph in same window?

meer dan een jaar ago | 1 answer | 0

1

answer

Question


How to code following equation?
My code for the above equation is given below. But looks like it don't work well. Could anyone have a look at whether I imp...

meer dan een jaar ago | 1 answer | 0

1

answer

Question


Double integration of an array function
clc; clear all; close all; lambda=532*1e-9; w=0.35*1e-3; R=3500*1e-3; alpha=40; rho=789; cp=2440; beta=750*1e-6; mew=1...

meer dan een jaar ago | 1 answer | 0

1

answer

Question


How to plot contour plot of a function?
I have a function I and need to plot this function as a contour plot, like Anyone please help, where x and y ranges from -0....

meer dan een jaar ago | 1 answer | 0

1

answer

Question


Value of infinite integral is different
I am trying to evaluate integral of a function which is from 0 to infinity. And I evaluated the function in two ways, i.e. 0 to ...

meer dan een jaar ago | 3 answers | 0

3

answers

Question


What is wrong in script?
for m1 =0:M T2=0; for m2=0:M T3=0; for s1=0:m1/2 T4=0 for j1=0:m1-2*s1 ...

meer dan een jaar ago | 1 answer | 0

1

answer

Question


Why break loop is not working?
The value of e at certain points is infinity. But the break loop is not working. clc; clear all; close all; M=3 for m1=0:M ...

meer dan een jaar ago | 2 answers | 0

2

answers

Question


How to plot these types of plot?

meer dan een jaar ago | 1 answer | 0

1

answer

Question


How to skip NaN arrays outputs of a for loop?
clc; clear all; close all; syms m1 m2 s1 s2 j1 j2 lambda = 1060*10^-9; M=1 z=linspace(0.00001,8000); wo = 0.02; C = 10^(-...

meer dan een jaar ago | 1 answer | 0

1

answer

Question


How to find the factorial of fractional numbers using matlab code?
I have an array s1. I want to evaluate the factorial of s1. M=3; m1 = 0:M; s1 = m1./2 factorial(s1)

meer dan een jaar ago | 1 answer | 0

1

answer

Question


How to insert fractional values in for loop?
Here the values of s1 can be 0,1/2,1,3/2 But in my for loop the values of s1 is integer, how to give the fractional values to s...

meer dan een jaar ago | 1 answer | 0

1

answer

Load more