Community Profile

photo

Rabih Sokhen


Last seen: Today Active since 2021

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

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

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

9 days 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 ?

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

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

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

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

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

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

2 months 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 months ago | 0 answers | 0

0

answers

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 months ago | 2 answers | 0

2

answers

Question


how to solve error using integral
clear all clc qu=linspace(-2*pi,2*pi,126); x=linspace(-2,2,126); y=2*x; psi=(-x./sqrt(qu/2)+sqrt(y)/sqrt(exp(-2*asinh(sin(q...

3 months ago | 2 answers | 0

2

answers

Question


how do i integrate one vector by using "intergral function" and not trapz ?
code: i have a complexe double vector f (1x25) and i want to integrate f over -pi and pi, i used it: phase=1i*integral(f,-pi,...

3 months ago | 1 answer | 0

1

answer

Question


why my integral is not a numerical value?
code: z=100; n=100; m=70; qu= linspace(-2*pi,2*pi,m); theta=linspace(-2*pi,2*pi,n); qq=2*pi+pi*(-1.8); target_qq=ceil(z...

3 months ago | 1 answer | 0

1

answer

Question


how to zoom on a figure with multiple axes
hello guys i am trying to creat a plot with 4 axes, but wen i try to zoom on the following plot, only 2 axes are modifed " the...

9 months ago | 1 answer | 0

1

answer

Question


how to read and plot a .trc file?
hello guys i have a trc file named 'c01-00.trc' but i don't know how to read it and plot it in matlab i tried using fileread...

10 months ago | 1 answer | 0

1

answer

Question


Unrecognized function or variable 'writevideo'.
hello guys i'm getting this type of error: Unrecognized function or variable 'writevideo' in my following code : close all a...

10 months ago | 1 answer | 0

1

answer

Question


any idea where can i learn the basics of gca gcf set and get
i am new using this type of code: hAx(1)=gca; hAx(2)=axes('Position',hAx(1).Position,'XAxisLocation','top','xlim',[x2(1) x2(en...

10 months ago | 1 answer | 0

1

answer

Question


how to label second x and y axes
hello guys in the following code, i don't know how to label the x axis on the top and the y axis that's on the right anybody ...

10 months ago | 1 answer | 0

1

answer

Question


how to shift a pcolor figure ?
hello ! is their a way to shift a pcolor figure to the center?

10 months ago | 1 answer | 0

1

answer