Muhamed Sewidan
Followers: 0 Following: 0
Hi, my name is Muhamed a physicist who is interested in puzzles whether they are embedded in the nature around us or in coding.
Feeds
질문
My code takes so long to execute
My code works fine until it gets to this block. This loop takes too long to execute. Is there any way to solve this problem? if...
거의 4년 전 | 답변 수: 0 | 0
0
답변질문
How to fit two separate variables with smoothing spline, Gauusian or polynomial?
I have these two variables and want to fit and plot them. lam = [0.30,0.31,0.32,0.33,0.34,0.35,0.36,0.38,0.39,0.41,0.43,0.45,0....
거의 4년 전 | 답변 수: 0 | 0
0
답변질문
How to make the frequency vector to analyze a complex signal?
I have this example and I'm puzzled with the frequency vector (hz) if I change any parameter in it, the result won't be the freq...
거의 4년 전 | 답변 수: 1 | 0
1
답변질문
In "Analyzing Cyclical Data with FFT" example, how the frequency was calculated?
and how it can be calculated for other examples? is there a general equation or formula to calculate it?
거의 4년 전 | 답변 수: 1 | 0
1
답변질문
Should I use the absolute value of fast Fourier transform or the conjugate in signal analysis?
I found this example in MATLAB https://www.mathworks.com/help/matlab/math/fft-for-spectral-analysis.html and I saw that they use...
대략 4년 전 | 답변 수: 2 | 0
2
답변질문
How to draw multiple surface plots on the same mesh?
I use this code to draw a Gaussian normal distribution. I want to plot several distributions at equal distance from the original...
대략 4년 전 | 답변 수: 1 | 0
1
답변질문
How to calculate the diameter of 3D Gaussian normal distribution?
I want to calculate the diameter of this gaussian distribution. Is there any simple mean to do so?
대략 4년 전 | 답변 수: 1 | 0
1
답변질문
Any code for Gaussian beams diffraction through a rectangle aperture?
Suppose I have a rectangle aperture and I want to make Gaussian beams to sufficiently sample this aperture. Is there any code to...
대략 4년 전 | 답변 수: 0 | 0
0
답변질문
Can I simulate this example (diffraction pattern) on my CPU not my GPU?
I tried to apply this example but it doesn't work, because I don't have an external Nividea GPU, I have an intel internal GPU. ...
대략 4년 전 | 답변 수: 1 | 0
1
답변질문
How to simulate an irradiance of beamlets recombination after emerging from a square aperture, in MATLAB?
I want to simulate (in 3D) the irradiance of several beamlets recombined together after emerging from a square aperture, knowing...
대략 4년 전 | 답변 수: 0 | 0
0
답변질문
How to find the exact index(row, col) of a maximum value in a matrix?
I want to find the maximum value in an image, I tried to find its index and I found it after converting the image matrix into a ...
4년 초과 전 | 답변 수: 1 | 0
1
답변질문
Cody gives me error for my solution whereas MATLAB run it efficiently
I tried to solve some problem in Cody. I wrote that function and run it in MATLAB and it worked perfectly. While it gives me err...
4년 초과 전 | 답변 수: 0 | 0
0
답변질문
How can I use some downloaded function?
I downloaded some functions files with a script file from Mathworks website. Every time I run this script, it tells me that thes...
4년 초과 전 | 답변 수: 2 | 0
2
답변질문
Why do we transfer the image into double?
I saw a lot of image processing examples and before conducting any analysis the image is transfered into double. Is it essential...
4년 초과 전 | 답변 수: 2 | 0
2
답변질문
Why sometimes we place an empty brackets inside function inputs?
I don't know the purpose or the mean of these empty square brakets inside many functions, for instance: min( a, [ ],2) imsho...
거의 5년 전 | 답변 수: 1 | 0
1
답변질문
How can I update the x axis limit inside a loop?
% parameters omav = 5*1000*2*pi; % omega average, center sigma = [0,0.5,1,2,5].*1000*2*pi; % std deviation. A.K.A width t...
거의 5년 전 | 답변 수: 1 | 0
1
답변질문
How to make a loop to do a specific operation for multiple variables?
lambda = num(:,1); RefInd1 = num(:,2); RefInd2 = num(:,3); RefInd3 = num(:,4); % For the draw ratio DR=1.00 ny1 = int...
거의 5년 전 | 답변 수: 1 | 0
1
답변질문
Why polar plot is not circular like this?
I tried to plot data by polarplot function and it keeps looking like this.. However, when I plot these data in some other progr...
거의 5년 전 | 답변 수: 0 | 0
0
답변질문
How can I automate Matlab to measure specific regions in an image?
I want to make Matlab to measure these distances (red lines) automatically for every image I insert it. These measured distances...
거의 5년 전 | 답변 수: 1 | 0
1
답변질문
What does cpselect do? and what are the potential applications and uses of it? (Any examples please)
I came across the function (cpselect) and i didn't exactly what the use of it. I select some points in the two images. And I wan...
거의 5년 전 | 답변 수: 0 | 0