Réponse apportée
how to solve this equastion : y''-1=exp(x) second order diff. equastion by use matlab command please reply
Of course , Trosten gave the solution for this ODE, but maybe it worths to have a look on how we can use symbolic maths toolbox ...

presque 8 ans il y a | 0

Réponse apportée
Hi I'm trying to execute the below code to observe the impact of noise on the FFT of the signal. Even if i'm increasing noise content there is little impact on the signal's Spectrum. Why ?
Your signal is a sinusoidal signal. All its energy is concentrated to one frequency. On the other hand, noise power spreads al...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How can I increase the notch attenuation without changing the bandwidth?
You can place two similar notch filters in a cascated way: clc; clear; %% parameters Fs = 1500; % Sampling Fre...

presque 8 ans il y a | 0

Réponse apportée
How to put constraints to an equation[constant]?
My suggestion: clear; clc; syms x f(x)=piecewise((2<=x & x<=4), 1/2, 0) fplot(f(x), 'LineWidth', 3); ...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
calculating number of comparison in a vector
It depends on the algorithm than you will use. You can use a <https://en.wikipedia.org/wiki/Bubble_sort bubble sort> routin...

presque 8 ans il y a | 0

Réponse apportée
How to calculate integral along the boundary of closed curve?
Provided than (x,y) points are very dense you can approximate the area you ask, good enough: clear; clc; % generatio...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
Multiple plots in one m file
Before using plot() command you should place a "figure" command For example: clc; clear; close all; t=0:0.1:10; ...

presque 8 ans il y a | 0

Réponse apportée
ifft output is complex?
After the manipulations of fft values X , If abs(X) exhibits even symmetry and angle(X) odd symmetry, then ifft should give ba...

presque 8 ans il y a | 1

Réponse apportée
How to properly plot a graph for these values in a single plot.
Your problem is data into X . Matlab expects that X contains numeric values. But in your case, if you display values of X , ...

presque 8 ans il y a | 0

Réponse apportée
Unable to find explicit solution
Your query is a mathematical issue and not a matlab issue. Let me give you an example... Supose you want to solve analyt...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Weights of LMS adaptives filter: bode commant, plot magnitude and phase
Here you are a more complete script: clear; clc; close all; %% problem definition % LMS weights w=[ -0.1229 ...

presque 8 ans il y a | 0

Réponse apportée
Weights of LMS adaptives filter: bode commant, plot magnitude and phase
A very useful script for your case: clear; clc; close all; % LMS weights w=[ -0.1229 -0.0786 -0.0...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How to set initial values for the start of a feedback loop in Simulink
A common and popular way to set initial conditions inside a closed loop is to put delay elements at the feedback path. Anyway, f...

presque 8 ans il y a | 3

| A accepté

Réponse apportée
Plotting a radial function f(r), in a 3d isotropic way, with axes (x,y,z=f(x^2+y^2)).
I reshaped my code. Lets say that we have loaded values of r and f(r) from a file. Cause I haven't these files , I must crea...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Plotting a radial function f(r), in a 3d isotropic way, with axes (x,y,z=f(x^2+y^2)).
Dear Erez Here you are my suggestion: clc; clear; close all; % values of r r=0:0.1:8; % create value...

presque 8 ans il y a | 0

Réponse apportée
problem with frequency domain using fft on raw data
Instead of plot(f, P1) i suggest to use plot(f, 20*log10(P1));

presque 8 ans il y a | 0

Réponse apportée
How to draw 3D bar graph of Z for specified value of X and Y.
I thing you should use stem3 command. Have a look at the following example: clear; close all; clc; x = 0:1:10; ...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
how to plot the log scale for the following values ?
clear; close all; clc; x = [2.51 ;2.55; 2.56]; y = 10:10:30; loglog(x,y,'bo-'); grid on; zoom on;

presque 8 ans il y a | 0

Réponse apportée
How to calculate mean of this signal in the image below.
I tried to generate your input data. If you set noise_amp=0, you will observe the influence of moving average on your useful ...

presque 8 ans il y a | 2

| A accepté

Réponse apportée
I've just started learning matlab and I am trying to solve this differential equation
you can access the value of y(1) by writting .... y(1) syms y(x) %dy=diff(y) ode= diff(y,x,2)+3*y==0 ...

presque 8 ans il y a | 0

Réponse apportée
f(x,y) = xy/(x²+y²) ,(x,y)≠(0,0),  f(x,y)= 0 , x=y=0.How to draw a graphics by using Matlab.
Provided that you have symbolic maths toolbox you can use the following code : clear; clc; syms x y % define func...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
Hi !! I want to find area under a sine curve , from interval 0.1 to 0.3.
You have a syntax error on your command. You must omit parenthesis from sin function. I am giving it to you at the proper form...

presque 8 ans il y a | 0

Réponse apportée
Pre–emphasis - Signal Processing
Your question regards frequency response of FIR filters. I suggest to study (and run) the following script. clear; clc; c...

presque 8 ans il y a | 0

Réponse apportée
Matlab gets basic arithmetic completely wrong!
Vector v1 is corrupted. It contains "NaN" at the most of its values. Matlab subtracts only at positions where v1 contains vali...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
How do I solve complex Integro-Differential equations in MATLAB?
Hi Aditya In order to solve this kind of equations symbolically, you should have Symbolic Math Toolbox. Provided that, I'...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
How to provide Matlab output(stream of 1s and 0s) as input to SIMULINK and view via a scope?Am new to Simulink
You have two optons: 1) load your data directly from workspace into simulink, using "From Workspace" block 2) save your da...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
Different time response of same trasfer function in matlab and simulink
At simulink, you have to go to << Model Configuration Parameters> <</matlabcentral/answers/uploaded_files/128278/p1.jpg>> ...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How to create initial population of 100 random set of coefficient for design filter using genetic algorithm?
Hi Johan I suggest the following script: % Generation of N sets of coefficients. Each set of contains M values N=100...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
i have variables 'Ereal2',Ereal3,Ereal4,Ereal5.....so on.....how to call these variable in a single loop one by one.
Hi Ravi I have to agree with Jonas. But if you insist to use indexing which is embedded to the variable name, you can take ...

presque 8 ans il y a | 0

Charger plus