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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

NEED ANSWERS IN NUMERICAL FORM

Try this: >> a= input('Enter First Strain Gauge readings'); b= input('Enter Second Strain Gauge readings'); c= input(...

9 years ago | 1

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

9 years ago | 5 answers | 1

Answered

How to pass a audio signal through a filter

This is fine at the moment. Now filter with from 0 to 4000Hz to make sure the results are different(I mean if you filter from 40...

How to pass a audio signal through a filter

This is fine at the moment. Now filter with from 0 to 4000Hz to make sure the results are different(I mean if you filter from 40...

9 years ago | 0

Answered

How to pass a audio signal through a filter

The first step is to design a filter to obtain the A and B vector coefficients.Then use the Butter function, for instance to obt...

How to pass a audio signal through a filter

The first step is to design a filter to obtain the A and B vector coefficients.Then use the Butter function, for instance to obt...

9 years ago | 1

| accepted

Answered

How to find the value of R ?

Is this what you mean? >> A=27; >> E=1:1:10; >> R = 0.173*(E.^3/2)*A.^1/3 R = Columns 1 through 9 ...

How to find the value of R ?

Is this what you mean? >> A=27; >> E=1:1:10; >> R = 0.173*(E.^3/2)*A.^1/3 R = Columns 1 through 9 ...

9 years ago | 0

| accepted

Answered

Solving a complicated equation in matlab

I think there is nothing wrong with your code. If I do f(-0.351409329825233) the answer is ans = -3.9968e-...

Solving a complicated equation in matlab

I think there is nothing wrong with your code. If I do f(-0.351409329825233) the answer is ans = -3.9968e-...

9 years ago | 1

| accepted

Answered

Finding jacobian of a matrix

The jacobian command calculates symbollically the jacobian of a given matrix. The following example can be found in the Mathw...

Finding jacobian of a matrix

The jacobian command calculates symbollically the jacobian of a given matrix. The following example can be found in the Mathw...

9 years ago | 0

Answered

problems about solve exponential function

When you execute this code in Matlab >> syms x; >> f=-10*exp(-x); >> solve(f,x) >> isempty(a) ans = ...

problems about solve exponential function

When you execute this code in Matlab >> syms x; >> f=-10*exp(-x); >> solve(f,x) >> isempty(a) ans = ...

9 years ago | 0

| accepted

Answered

problems about solve exponential function

In the warning message displayed by Matlab it says no solution has been found(just as it happens if the function has no roots), ...

problems about solve exponential function

In the warning message displayed by Matlab it says no solution has been found(just as it happens if the function has no roots), ...

9 years ago | 0

Question

cannot figure out the reason for a warning message

Hi, I am working with a piece of code, and though the code seems to work well(as the results yielded seem to be correct)Matlab s...

9 years ago | 0 answers | 0

Answered

Find vector elements that sum up to specific number

I don´t know any specific Matlab command to adress your problem, however you can write an M-file to solve your problem. A po...

Find vector elements that sum up to specific number

I don´t know any specific Matlab command to adress your problem, however you can write an M-file to solve your problem. A po...

9 years ago | 0

Answered

Suggest a data structure to represent a set of geographical points

Try using multidimensional arrays. The idea is that the "third dimension" represents the index of your bidimensional latitude-lo...

Suggest a data structure to represent a set of geographical points

Try using multidimensional arrays. The idea is that the "third dimension" represents the index of your bidimensional latitude-lo...

9 years ago | 0

Answered

problem with imag command when evaluating symbolic expressions.

The answer is right, if you try subs((9*i*conj(x))/2 - (i*y)/2 - (9*i*x)/2 + (i*conj(y))/2 + 4),{x,y},{0,0}) or subs((9*i*conj(x...

problem with imag command when evaluating symbolic expressions.

The answer is right, if you try subs((9*i*conj(x))/2 - (i*y)/2 - (9*i*x)/2 + (i*conj(y))/2 + 4),{x,y},{0,0}) or subs((9*i*conj(x...

9 years ago | 0

Question

problem with imag command when evaluating symbolic expressions.

Hi, when I execute the following code in Matlab syms x y; f=4*i+9*x+y; imag(f) I get the following result ans = ...

9 years ago | 2 answers | 0

Answered

Discrete acceleration data to position

I am not sure, but theoretically ,if you have acceleration, and you want to get displacement, you have to integrate to get veloc...

Discrete acceleration data to position

I am not sure, but theoretically ,if you have acceleration, and you want to get displacement, you have to integrate to get veloc...

9 years ago | 0

| accepted

Answered

What will be the sampling frequency of the following time series data??

I am not sure I am understanding your question very well, but it seems you have a sample every 0.00274 units of time. You have t...

What will be the sampling frequency of the following time series data??

I am not sure I am understanding your question very well, but it seems you have a sample every 0.00274 units of time. You have t...

10 years ago | 0

| accepted

Question

How can I solve a problem with subs?

I have to substitute values in a matrix with 20 variables. I substitute variable after variable using a for loop, but in some ca...

10 years ago | 1 answer | 0