Community Profile # Muhamed Sewidan

Last seen: 9 meses ago Active since 2019

Hi, my name is Muhamed a physicist who is interested in puzzles whether they are embedded in the nature around us or in coding.

#### Statistics

All
• • • • • • #### Content Feed

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

más de 1 año 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....

más de 1 año 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...

más de 1 año 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?

más de 1 año 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...

más de 1 año 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...

más de 1 año 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?

más de 1 año 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...

casi 2 años 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. ...

casi 2 años 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...

casi 2 años 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 ...

casi 2 años 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...

casi 2 años 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...

casi 2 años 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...

más de 2 años 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...

más de 2 años 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...

más de 2 años 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...

más de 2 años 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...

más de 2 años 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...

más de 2 años ago | 1 answer | 0