photo

Rabih Sokhen


Last seen: 11 months ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Thankful Level 4

View badges

Feeds

View by

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

11 months ago | 2 answers | 0

2

answers

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

1 year ago | 1 answer | 0

1

answer

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

1 year ago | 1 answer | 0

1

answer

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

2 years ago | 1 answer | 0

1

answer

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

2 years ago | 1 answer | 0

1

answer

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

2 years ago | 1 answer | 0

1

answer

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

2 years ago | 1 answer | 0

1

answer

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

2 years ago | 2 answers | 0

2

answers

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

2 years ago | 1 answer | 0

1

answer

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

2 years ago | 1 answer | 0

1

answer

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

2 years ago | 1 answer | 0

1

answer

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

3 years ago | 1 answer | 0

1

answer

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

3 years ago | 1 answer | 0

1

answer

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

3 years ago | 0 answers | 0

0

answers

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

3 years ago | 0 answers | 0

0

answers

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

3 years ago | 1 answer | 0

1

answer

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

3 years ago | 1 answer | 0

1

answer

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

3 years ago | 3 answers | 0

3

answers

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

3 years ago | 2 answers | 0

2

answers

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'); ...

3 years ago | 2 answers | 0

2

answers

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

3 years ago | 1 answer | 0

1

answer

Question


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

3 years ago | 0 answers | 0

0

answers

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

3 years ago | 1 answer | 0

1

answer

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

3 years ago | 1 answer | 0

1

answer

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

3 years ago | 1 answer | 0

1

answer

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

3 years ago | 0 answers | 0

0

answers

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

3 years ago | 3 answers | 0

3

answers

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

3 years ago | 1 answer | 0

1

answer

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

3 years ago | 1 answer | 0

1

answer

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

3 years ago | 2 answers | 0

2

answers

Load more