Question

Indexing cannot yield multiple results error

Hello! I have this function: function [E1x,E2x]=coupler(Eax,Ebx,Npt1) n=1; Eout=zeros(Npt1,2); E1x=zeros(Npt1,1);...

5 years ago | 2 answers | 0

Question

Which mean and standart deviantion should I use?

Hi! I have this plot that was obtained by connecting the occurrence values of a histogram. My teacher asked me to get the pr...

5 years ago | 1 answer | 0

Question

Doubt about xcorr function

Hello! I have question about the xcorr function. I have a vector with random bits 0s and 1s. I do the autocorrelation o...

6 years ago | 1 answer | 1

Question

Sphere function does not work

Hello, I am trying to run function sphere in matlab like this: sphere(30); I get an error every time - Error in ==> sph...

6 years ago | 1 answer | 0

Question

Autocorrelation function without using xcorr

Hello, I have this code trying to plot the autocorrelation of signal E1 without xcorr function E1f=[E1 zeros(1,1249)]; f...

6 years ago | 0 answers | 0

Answered

Why can't I save very small numbers in a vector?

already solved the problem.it was something else. thank you

Why can't I save very small numbers in a vector?

already solved the problem.it was something else. thank you

6 years ago | 0

Question

Why can't I save very small numbers in a vector?

Hello! My code is getting points like 5e-9 and i am putting these points on a vector. However after i run it i get a vector ...

6 years ago | 3 answers | 0

Question

Matrix loop multiplication warning

Hello, I have this code: n=1; Eout=zeros(4096,2); while n<=4096 E=[Eopt(n); 0]; coupler=[sqrt(0.9) 1i*sqrt(0.1);...

6 years ago | 2 answers | 0

Question

Wrong matrix multiplication answer

Hi, This multiplication gets a wrong answer: E=[Eopt(1) 0]; coupler=[sqrt(0.9) 1i*sqrt(0.1);1i*sqrt(0.1) sqrt(0.9)]; ...

6 years ago | 2 answers | 0