Answered

How to simulate a spherical pendulum in matlab?

You can look for solution in this link : <http://scicomp.stackexchange.com/questions/8595/numerical-instability-of-spherical-...

How to simulate a spherical pendulum in matlab?

You can look for solution in this link : <http://scicomp.stackexchange.com/questions/8595/numerical-instability-of-spherical-...

8 years ago | 1

Answered

How do I randomly select a zero in a matrix and replace it with a value from another matrix?

The description is not complete, because localization of position in zero matrix requires two indexes x and y try : B=zero...

How do I randomly select a zero in a matrix and replace it with a value from another matrix?

The description is not complete, because localization of position in zero matrix requires two indexes x and y try : B=zero...

8 years ago | 0

Answered

FFT of tidal data - problems identifying Mf component in MATLAB

From the result in the second figure; you can remark that there are two frequency components. which means that there are two wav...

FFT of tidal data - problems identifying Mf component in MATLAB

From the result in the second figure; you can remark that there are two frequency components. which means that there are two wav...

8 years ago | 0

Answered

How can I find the x and y coordinate of the first pixel of an image .

I think you mean the intensity of the first element in each block, otherwise, you already know the coordinates : firs block ...

How can I find the x and y coordinate of the first pixel of an image .

I think you mean the intensity of the first element in each block, otherwise, you already know the coordinates : firs block ...

8 years ago | 1

| accepted

Answered

How can I seperate a superposition of sine and random waves?

Separation of two wave forms can be accomplished using Kalman filter or wiener filter, you can find resources of these two filte...

How can I seperate a superposition of sine and random waves?

Separation of two wave forms can be accomplished using Kalman filter or wiener filter, you can find resources of these two filte...

8 years ago | 0

| accepted

Answered

How to represent a wave in 3D and its Interference with other waves?

simulation is done using the absolute value of electric field (Ex,Ey,Ez), and linear medium allows linear superposition, then a ...

How to represent a wave in 3D and its Interference with other waves?

simulation is done using the absolute value of electric field (Ex,Ey,Ez), and linear medium allows linear superposition, then a ...

8 years ago | 0

Answered

Covert voice to binary?

see : dec2hex(value) the value must be decimal and positive, or at least floor(value).

Covert voice to binary?

see : dec2hex(value) the value must be decimal and positive, or at least floor(value).

8 years ago | 0

Answered

Why will the legend command not display descripitions properly when using a non-solid line style in R2014B?

Remove the curly brackets and try again as : h=legend('One','Two','Three','Four', 'Location', 'Northwest');

Why will the legend command not display descripitions properly when using a non-solid line style in R2014B?

Remove the curly brackets and try again as : h=legend('One','Two','Three','Four', 'Location', 'Northwest');

8 years ago | 0

Answered

Problem with ezplot function and transcritical bifurcation, but not with other bifurcations

The ezplot function returns the following error message : Input must be a string expression, function name, function handl...

Problem with ezplot function and transcritical bifurcation, but not with other bifurcations

The ezplot function returns the following error message : Input must be a string expression, function name, function handl...

8 years ago | 0

| accepted

Answered

Help with matlab homework

Since this is homework, partial answer is given, You have to start with the following : X=[(-3)^4 (3)^3 (3)^2 ...

Help with matlab homework

Since this is homework, partial answer is given, You have to start with the following : X=[(-3)^4 (3)^3 (3)^2 ...

8 years ago | 0

Answered

Converting Upper triangle to lower triangle

If the question consists of converting lower triangular binary matrix into upper triangular one, then is it possible to use logi...

Converting Upper triangle to lower triangle

If the question consists of converting lower triangular binary matrix into upper triangular one, then is it possible to use logi...

8 years ago | 0

| accepted

Answered

Compute the power spectrum using FFT method

The essay is correct, Some remarks are : 1. Try to give variables names different than those of already built in functions , ...

Compute the power spectrum using FFT method

The essay is correct, Some remarks are : 1. Try to give variables names different than those of already built in functions , ...

8 years ago | 1

| accepted

Answered

How to repeat an array?

Many solutions exist for this problem, the first one is the repmat solution: a=[1 2 3]; b=repmat(a,1,3); The second sol...

How to repeat an array?

Many solutions exist for this problem, the first one is the repmat solution: a=[1 2 3]; b=repmat(a,1,3); The second sol...

8 years ago | 0

| accepted

Answered

Communicating with external hardware

hi, Did you the analogue input solution : out=daqhwinfo; Info=out.InstalledAdaptors; AI = analoginput('...

Communicating with external hardware

hi, Did you the analogue input solution : out=daqhwinfo; Info=out.InstalledAdaptors; AI = analoginput('...

8 years ago | 0

Answered

plotting piecewise functions with logarithm

If the input vector X is negative, log produces complex result. Try the following version : x=[-40:0.01:40]; g=5; if x<0...

plotting piecewise functions with logarithm

If the input vector X is negative, log produces complex result. Try the following version : x=[-40:0.01:40]; g=5; if x<0...

8 years ago | 0

Answered

How do I refine my integration?

Accurate result is obtained if you use the same sampling rate,as the original function, in integral.

How do I refine my integration?

Accurate result is obtained if you use the same sampling rate,as the original function, in integral.

8 years ago | 0

Answered

How can I create a train chirp pulse?

That is an interesting problem, before trying to use pulstran function, create a linear frequency function and use square functi...

How can I create a train chirp pulse?

That is an interesting problem, before trying to use pulstran function, create a linear frequency function and use square functi...

8 years ago | 0

| accepted

Answered

how to transform a gauss code into a matlab code

Not familiar with Gauss software, but i think there are differences, per example the initialization of matrices, therefore you n...

how to transform a gauss code into a matlab code

Not familiar with Gauss software, but i think there are differences, per example the initialization of matrices, therefore you n...

8 years ago | 0

Answered

How to create a movie with different plot components?

To clear the previous sample, try : for t=1:(2*pi/w1)+1 %Calculations... plot([A1(1) A2(1)],[A1(2) A2(2)]...

How to create a movie with different plot components?

To clear the previous sample, try : for t=1:(2*pi/w1)+1 %Calculations... plot([A1(1) A2(1)],[A1(2) A2(2)]...

8 years ago | 2

| accepted

Answered

How to solve for pressure using the velocity field?

This problem is for non compressible fluid, first you have to explain the equation you want use, for this two dimensional case, ...

How to solve for pressure using the velocity field?

This problem is for non compressible fluid, first you have to explain the equation you want use, for this two dimensional case, ...

8 years ago | 1

Answered

How can I plot the following curve (which is in an implicit form)

For this form of equation, you can use contour function, or symbolic function *ezplot*, for the first solution you need to use m...

How can I plot the following curve (which is in an implicit form)

For this form of equation, you can use contour function, or symbolic function *ezplot*, for the first solution you need to use m...

8 years ago | 2

| accepted

Answered

how can I determine the mean intervals given a confidence level of 98%?

Try : t1=[37.79 39.51 38.54 39.14 39.02 39.4 39.01 37.18];% T2 (22.4 22.07 22.15 21.72 21.75 22.55 22.18 21.92];...

how can I determine the mean intervals given a confidence level of 98%?

Try : t1=[37.79 39.51 38.54 39.14 39.02 39.4 39.01 37.18];% T2 (22.4 22.07 22.15 21.72 21.75 22.55 22.18 21.92];...

8 years ago | 0

Answered

Importing MATLAB Figures into Latex

Besides the explained proposition above, try to specify the extension in the source File : \usepackage{graphicx} \us...

Importing MATLAB Figures into Latex

Besides the explained proposition above, try to specify the extension in the source File : \usepackage{graphicx} \us...

8 years ago | 0

Answered

why the bode function doesn't work?

The description is correct and the code is working correctly,try clearing the existing variables clear all; s=tf('s'); g=...

why the bode function doesn't work?

The description is correct and the code is working correctly,try clearing the existing variables clear all; s=tf('s'); g=...

8 years ago | 0

Answered

Round random vector to nearest number in a fixed vector

Try logical test : CoolingC = [1,2.3,5.3,7.2,10.2,12.2]; CoolingC(CoolingC<2.5)=2 CoolingC(CoolingC>=2.5 & CoolingC<7...

Round random vector to nearest number in a fixed vector

Try logical test : CoolingC = [1,2.3,5.3,7.2,10.2,12.2]; CoolingC(CoolingC<2.5)=2 CoolingC(CoolingC>=2.5 & CoolingC<7...

8 years ago | 0

| accepted

Answered

Matlab 3D Plot Help

The program contains an error because y is an empty vector, the version below is altered to have Pb and Pa with same dimensions,...

Matlab 3D Plot Help

The program contains an error because y is an empty vector, the version below is altered to have Pb and Pa with same dimensions,...

8 years ago | 0

Answered

problem in creating an array

The reason the output is scalar is because you divide a vector by vector like in this example *rand(1,4)/rand(1,4)*, to return...

problem in creating an array

The reason the output is scalar is because you divide a vector by vector like in this example *rand(1,4)/rand(1,4)*, to return...

8 years ago | 0

| accepted

Answered

How can I mix two arrays?

This question is general due to the variation of array dimensions, however for a particular case you described, vectors A and B ...

How can I mix two arrays?

This question is general due to the variation of array dimensions, however for a particular case you described, vectors A and B ...

8 years ago | 0

| accepted