Answered
function creating new vector
if 0<x(1,i)<1 should be if x(1,i)>0 && x(1,i)<1

11 years ago | 0

Answered
about the fft plot of a discreate signal
Hi, the zero frecuency is the continous component of your signal (which is the mean value of your signal). For instance if you a...

11 years ago | 0

Answered
integrate definite integrals matlab
>> syms x >> int((5*x)/((x^3-(7*x))^4),-1,1) ans = NaN Which is correct if you consider you are worki...

11 years ago | 1

| accepted

Answered
fft on samples of an audio file in matlab
If you have a .wav audio named filename you can do [y, Fs] = wavread(filename) Where Fs is the sampling frecuency and y yo...

11 years ago | 1

| accepted

Answered
how to display two graphs in separate figure windows using plot command?
Use figure command plot(a); figure;plot(b,'r');

11 years ago | 11

| accepted

Answered
looping a matrix from a text file
Is it necessary to use a loop? So if I understand well you want to sum the rows, in this case if A = 1.0000 ...

11 years ago | 0

Answered
plotting an array of doubles
He means that you should do for n =1:1:5001 snr1(n) = rms(input(n))/ rms(out(n)); end

11 years ago | 0

Answered
How do I create a vector of n exponentially increasing values from a to b?
>> y=zeros(4,1); >> n=1:1:4; >> y(1:4)= a*gf.^(n(1:4)-1); >> y y = 1.0000 2.1544 4.64...

11 years ago | 0

Answered
"DOUBLE cannot convert the input expression into a double array. If the input expression contains a symbolic variable, use the VPA function instead."
The problem comes in double(subs(C)) From your code C=u1^2+3*u2^2+2*u3^2; so when you do subs(C) an...

11 years ago | 1

Answered
MATLAB 7.5 doesn't calculate the whole operation
Try typing format long in your command window.

11 years ago | 0

Answered
How to save .mat file in a function?
Your last line should be save('example.mat', 'result');

11 years ago | 0

Answered
how to use the 'solve' function?
Using arbitrary values for x, h, h0, A and L >> syms eta; >> x=1;h=1;ho=1;A=0.1;L=1; >> f=x/L -(1-(h+eta)/ho) - A...

11 years ago | 1

Answered
how to use the 'solve' function?
Doing >> tmp = solve('x/L = (1-(h+eta)/ho) - A*log(((h+eta)/ho - A)/(1-A))','eta')% no semicolon here tmp = ...

11 years ago | 0

Answered
How to tell Matlab to give real cube roots instead of complex ones?
Try this sign(x).*abs(x.^(1/3)) >> sign(-1).*abs(-1.^(1/3)) ans = -1

11 years ago | 0

Answered
Regarding Wavelets and DWT.
Basically the wavelet transform is similar to the STFT(Short time Fourier Transform), because it links the frecuency of a signal...

11 years ago | 0

| accepted

Answered
Insert a blank column every n columns
Try this, if you want to insert a blank column every 5 columns A=rand(10,360); A=num2cell(A); A(:,1:5:end)=cell(1);

11 years ago | 0

Answered
there is a problem about these code in Matlab
Try function [y1,y2]=test(x1,x2) if nargin==1 y1=x1; if nargout==2 y2=x1; end else ...

11 years ago | 0

Answered
Could someone teach me how to add numbers in a series?
Consider the Euler series to sum pi: ((pi^2)/6)=∑ (1/n^2),then pi= sqrt(6*∑ (1/n^2)) To implement the above method in Matl...

11 years ago | 0

Answered
beginner question :subject : For loops , while loops , index variable
This is what I would do: for k=1:length(t) if t(k)<=0 y4(k)=3*t(k)^2 + 5; else y4(k)=-3*t(k)^2 + 5; ...

11 years ago | 0

Answered
Using the 'diff' function inside the 'find' function.
Her is my guess. Why don´t you just store k in a vector? I mean something like aux= zeros(length(d2x)); aux2=1; for k...

11 years ago | 0

Answered
How fill a part of 3D array with decreasing values?
I think you are trying to do something like this >> a=20:-2:2; >> for i=1:10 for j=1:10 X(i,j,1:10)=a(1:10); en...

11 years ago | 0

| accepted

Answered
How I can know elements of a matrix
If you want to find if you have a 1000 in your matrix try the same thing, but change 1 for 1000 find(I==1000) Will retu...

11 years ago | 0

Answered
How I can know elements of a matrix
When you multiply the matrix by 1000 you have binary values(1 and 0 true false)no more.So I don´t know what you exactly mean by ...

11 years ago | 0

Answered
How can I open excel file in Mathlab
Use the xlsread function to read the excel values and store them in a vector, so that you can represent them using the plot comm...

11 years ago | 0

Answered
can anyone help me in finding out the location of zero crossing point of an signal whose peak is determined
Hi,if you have a signal like this c = Columns 1 through 15 0 1 2 3 4 5 6 7...

11 years ago | 0

Answered
how to analyze frequency response ?
Hi Gokul, freqz is used to find the frecuency response, once you have designed your b and a vectors. [h,w]=freqz(b,a,n) ...

11 years ago | 0

Answered
NEED ANSWERS IN NUMERICAL FORM
Try this: >> a= input('Enter First Strain Gauge readings'); b= input('Enter Second Strain Gauge readings'); c= input(...

11 years ago | 1

Answered
what is wrong when using fzero
You can use solve instead of fzero

11 years ago | 0

Question


Is there a way to free RAM consumed by Matlab without closing Matlab?
Hi,I am working with a program which is consuming a huge amount of RAM memory, and I would like to know if it is possible to fre...

11 years ago | 5 answers | 1

5

answers

Load more