# Rabih Sokhen

Last seen: 8 mois il y a Actif depuis 2021

Followers: 0   Following: 0

#### Feeds

Afficher par

Question

How can I incorporate both the x-axis and a reversed y-axis without altering the plot but only adjusting the orientation of the axes?
Hello everyone, I hope you're all doing well. I attempted to run the provided code and noticed that associating an x and y axis...

8 mois il y a | 2 réponses | 0

### 2

réponses

Question

How can I import workspace arguments into a function without saving them?
Hey guys, I would like to create a function that directly uses arguments from the workspace without the need to save and reload...

environ un an il y a | 1 réponse | 0

### 1

réponse

Question

how to plot using the slice function the last row and column of a 3 matrix?
Hello, guys I am trying to do the slicing of a 3d matrix, however I notice that the slice function during the plot do not show ...

plus d'un an il y a | 1 réponse | 0

### 1

réponse

Question

how to fix half saved image problem in pdf form
Hello guys. I have a problem when I try to save matlab image as a pdf, only a part of the image is saved in the pdf format as ...

plus d'un an il y a | 1 réponse | 0

### 1

réponse

Question

how to pass from x y z plane to toroidal coordinate?
Hey guys, I am trying to make the transition from x, y, z coordinate to toroidal coordinate. I tried to write the following co...

presque 2 ans il y a | 1 réponse | 0

### 1

réponse

Question

how to fill a specific region with color if that's region contain my target point?
hy guys. I would like to fill a specific region automatically with the color red in my plot, if that's region contains my targ...

presque 2 ans il y a | 1 réponse | 0

### 1

réponse

Question

why does my colorbar shift my second y axis?
hy guys i am trying to add a colorbar to my second y axis in the folowinf code, however the colorbar is shifting the axis. an...

presque 2 ans il y a | 1 réponse | 0

### 1

réponse

Question

how to rotate a 3d matrix ?
hy guys i would like to rotate a 3*3 array suppose i have A=rand(5,4,3) i would like to rotate it in a way were A now is (4,...

environ 2 ans il y a | 2 réponses | 0

### 2

réponses

Question

how to slice a 3d array with slider?
Code: clear all clc y=randn(10,10,10); h = uicontrol('style','slider','Min',0,'Max',100,'Value',0.01, 'callback',@(src,evt)d...

plus de 2 ans il y a | 1 réponse | 0

### 1

réponse

Question

how to plot only non zero value of a slicing of a 3d matrix?
Hello everyone, I am trying to slice a 3d array over the x direction, however, I would like to plot only nonzero values of ev...

plus de 2 ans il y a | 1 réponse | 0

### 1

réponse

Question

how to factor a analytic expression ?
clear all clc syms x A=x.^2+x i would like to factor A in a way that's A =x(x+1) thank you

plus de 2 ans il y a | 1 réponse | 0

### 1

réponse

Question

why my fft does not match my convolution ?
hy guys, i am trying to verify that g(w)=fft( h_t . x_t) = conv( h_f,x_f) h_t is my impulse response in the time domain x_t is...

plus de 2 ans il y a | 1 réponse | 0

### 1

réponse

Question

how to scale fft?
hy guys. i have a question concerning the scaling in fft . i have seen alot of code on this forum, but some of the code scale ...

plus de 2 ans il y a | 1 réponse | 0

### 1

réponse

Question

how to fix broad band in fft?
Hy guys. I'm trying to obtain the fft of a array. however the result are coming out to be braod band, i expected to get bands...

plus de 2 ans il y a | 1 réponse | 0

### 0

réponse

Question

How to shift from convolution product to the scalar product with arrays?
hy guys, hope you are doing well I know that the product of the 2 signals in the frequency domain is equal to the Fourier trans...

plus de 2 ans il y a | 1 réponse | 0

### 0

réponse

Question

how to deconvolute a array ?
hy guys i would like to deconvolute a matrix code: clear all clc a=rand(10,3); b=rand10,3); %b=conv2(a,c) ...

plus de 2 ans il y a | 1 réponse | 0

### 1

réponse

Question

why my deconvolution want fit my analytique form?
hy guys, i am trying to deconvolute a signal to refind my 2 initial signals, however when a = sinc(f) my deconvolution want ...

plus de 2 ans il y a | 1 réponse | 0

### 1

réponse

Question

how to deconvolute a matrix?
hy guys, i would like to deconvolute a matrix but i didn't find a 2d deconvolution function , any idea how to do that witho...

plus de 2 ans il y a | 3 réponses | 0

### 3

réponses

Question

why fft (exp(-t)) don't fit my analytique expression?
Hey guys, I am trying to find the fft of exp (-t). Also, I know that's the fft of (exp (-t)) is --> 1/(1+i*2*pi *f) I tried...

plus de 2 ans il y a | 2 réponses | 0

### 2

réponses

Question

how can i use my function directly on a array without having x and y?
the code is: function img(x,y,a) imagesc(x,y,a); set(gca,'YDir','normal'); ...

plus de 2 ans il y a | 2 réponses | 0

### 2

réponses

Question

How to create a custom grayscale colormap between white and black?
How to create a custom grayscale colormap between white and black? In a way the maximum value of an array is back and the minimu...

plus de 2 ans il y a | 1 réponse | 0

### 1

réponse

Question

is there any function similare to pixelinfo but for pcolor ?
is there any function similare to pixelinfo but for pcolor ?

plus de 2 ans il y a | 1 réponse | 0

### 0

réponse

Question

how to add grid to imagesc?
clear all clc a=rand(20,50) x=linspace(-1,1,20) y=linspace(-1,1,50) imagesc(x,x,a) I would like to add grid only at the ...

plus de 2 ans il y a | 1 réponse | 0

### 1

réponse

Question

how to pcolor all value of a matrix ?
clear all clc a=[100 0 50; 30 5 100; 80 50 0] b=[a ;a(end,:)] ; b=[b b(:,end)] subplot(1,2,1) pcolor(a) subplot(1,2,2) ...

plus de 2 ans il y a | 1 réponse | 0

### 1

réponse

Question

how to get the argument and the modulus of a analytic complex function?
clear all clc syms a b c z=a*exp(i*b*c) arg=angle(z) mod=abs(z) as a result in the command window i am getting : ...

presque 3 ans il y a | 1 réponse | 0

### 1

réponse

Question

How to find the modulus, conjugate and the derivation of a complex number in an analytic form?
clear all clc syms a b c d z=a*b*exp(i*c) i would like to find the modulus square of z by writing abs(z).^2 , the conjugat...

presque 3 ans il y a | 1 réponse | 0

### 0

réponse

Question

how to save variable as txt in a specified location with variable value appearing in the file name
clear all clc a=1; % amplitude du faisceau gaussien x=linspace(-50,50,100); dx=50/2.355; % widthn f=a*exp(-0.5*(x./dx).^2);...

presque 3 ans il y a | 3 réponses | 0

### 3

réponses

Question

how to read data file.trc with a for loop?
hello guys i have the following files: test1.trc , test2.trc , ..... test20.trc " all the followings files are"ReadLeCroyBin...

presque 3 ans il y a | 1 réponse | 0

### 1

réponse

Question

derive with fft and ifft
clear all clc z=50; x=linspace(0,2*pi,z); a=cos(x); % derive while using ifft k=1./x; tf_a=1i.*k.*fft(a); da=ifft(tf...

presque 3 ans il y a | 1 réponse | 0

### 0

réponse

Question

how to find the nearest value?
hello guys suppose i have a vector[s] A=[ 1 2 3 4 5 6] B=[6.1 5.1 4.1 3.1 2.1 1.1] and position_A=[10 20 30 40...

presque 3 ans il y a | 2 réponses | 0

réponses