# Muhamed Sewidan

Last seen: meer dan 2 jaar ago Active since 2019

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.

All

#### Feeds

View by

Question

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

meer dan 3 jaar ago | 0 answers | 0

### 0

Question

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

meer dan 3 jaar ago | 0 answers | 0

### 0

Question

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

meer dan 3 jaar ago | 1 answer | 0

### 1

Question

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?

meer dan 3 jaar ago | 1 answer | 0

### 1

Question

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

meer dan 3 jaar ago | 2 answers | 0

### 2

Question

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

meer dan 3 jaar ago | 1 answer | 0

### 1

Question

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?

meer dan 3 jaar ago | 1 answer | 0

### 1

Question

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

meer dan 3 jaar ago | 0 answers | 0

### 0

Question

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

meer dan 3 jaar ago | 1 answer | 0

### 1

Question

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

meer dan 3 jaar ago | 0 answers | 0

### 0

Question

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

bijna 4 jaar ago | 1 answer | 0

### 1

Question

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

bijna 4 jaar ago | 0 answers | 0

### 0

Question

I downloaded some functions files with a script file from Mathworks website. Every time I run this script, it tells me that thes...

bijna 4 jaar ago | 2 answers | 0

### 2

Question

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

ongeveer 4 jaar ago | 2 answers | 0

### 2

Question

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

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

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

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

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

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

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

meer dan 4 jaar ago | 0 answers | 0

### 0

Question

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

meer dan 4 jaar ago | 1 answer | 0