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^(-...

2 years 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)

2 years 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...

2 years ago | 1 answer | 0

1

answer

Question


What is wrong in my script?
clc; clear all; close all; syms m1 m2 s1 s2 j1 j2 I = 0; lambda = 1060*10^-9; M=0 z=linspace(0.00001,8000) wo = 0.02; ...

2 years ago | 1 answer | 0

1

answer

Question


Error in multiplication of arrays
clc; clear all; close all; syms m1 m2 s1 s2 j1 j2 I = 0; lambda = 1060*10^-9; M=2 z=linspace(0.0001,10000); wo = 0.02; ...

2 years ago | 1 answer | 0

1

answer

Question


Error in writing the output to excel file
clc; clear all; close all; syms m1 m2 s1 s2 j1 j2 I = 0; lambda = 1060*10^-9; M=1 z=linspace(0.0001,10000) wo = 0.02; C...

2 years ago | 1 answer | 0

1

answer

Question


for loop output is wrong
I am trying to find the value of But the answer of my loop is not same as numerically evaluated value. And the code is c...

2 years ago | 1 answer | 0

1

answer

Question


Unable to perform assignment because the left and right sides have a different number of elements.
clear all clc syms s1 s2 m1 m2 j1 j2 lambda = 1060*10^-9; wo = 0.02; C = 10^(-7); M=0; b=0.1; x=0 y=0 z=linspace(0,2...

2 years ago | 2 answers | 0

2

answers

Question


Error in the for loop of my function
I am trying to plot the given function : clear all clc syms z syms s1 s2 m1 m2 j1 j2 w = 0.02; M=1; b=0.1; z=linspace(...

2 years ago | 2 answers | 0

2

answers

Question


Plotting issue where the curve is missing
w=linspace(-5,-0.01) s=100; for i=1:s F = (exp(-1.863*10^-2)+w(i).^(-2)*exp(-1.9*10^-4)-2*w(i).^(-1)*exp(-9.41*10^-...

2 years ago | 1 answer | 0

1

answer

Question


Not getting finite result
clear all clc syms theta syms z K L=40 lambda=0.532*10^(-6) a=10*(lambda*L)^0.5 A=1 n=0 m=0 k=2*pi/(lambda) e =(k*a)...

2 years ago | 1 answer | 0

1

answer