photo

matlabgod


William Paterson University

Last seen: fast 3 Jahre vor Aktiv seit 2018

Followers: 0   Following: 0

Nachricht

Statistik

  • Thankful Level 2
  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


For loop not working. Array indices must be positive integers or logical values.
Im Trying to implement an FIR difference equation where the output y is the average sum of a set number of values(M) of the inpu...

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


I'm trying to create plots of Fourier Synthesis and FFT Spectrum of a square wave using harmonics, but I keep getting a vector length error for the FFT spectrum.
N = 5; f0 = 5; tw = 1; k = [1:2:N]; ak = 2./(pi*k); T0 = 1/f0; fs = 20*2*N*f0; ts = 1/fs; ...

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


User defined function for three scripts
So I have three scripts that each create a different wave plot using the same inputs. How can I make a program that asks the use...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Array indices must be positive integers or logical values.
I'm trying to create a loop that plots the function for each t value on the same graph, I am getting an "Array indices must be p...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


I keep getting this error : Matrix dimensions must agree. Error in comp (line 5) c(x)=0.5.*erfc(x./(2*sqrt(u.*t)));
I'm trying to write a for loop that plots the function c(x) for each value of t, but I keep getting this error. " Matrix dimensi...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort