Answered
Can someone help with my code I know MATLAB well I want the code to run and print out a time and height graph.
so -- after several corrections, we hav something see below Also I noticed in the hand paper you have swapped the initial val...

6 years ago | 0

Answered
Matlab code that shows orthogonal functions
hi functions are orthogonal if the integral of the product of the two function is zero on the x range (specified) if you have...

6 years ago | 0

Answered
How do i fix my Runge Kutta (4th order) method to solve a 2nd order ODE?
hello attached a zip for fixed time steps ODE solvers - compare with your own implementation

6 years ago | 0

Answered
How to get a char row vector containing all the text in the one chapter?
hello my little contribution to wonderland :) and Alice was also the first name of my grand mother ! function key = getCha...

6 years ago | 0

Answered
Function X(n) that depends on the previous result X(n-1)
hello see xample below for 1st order low pass recursive filter % Example: Impulse Response Using MATLAB % first order IIR f...

6 years ago | 0

Answered
Delete Frequency in FFT File and create new WAV-File
Hello I would rather do a notch filter on the time data if multiple frequencies to eliminate, do a loop notch filter - see...

6 years ago | 0

Answered
Finding frequencies corresponding to some gain on Band Pass Filter Bode Plot
wo = 2*pi*120; Bw = 2*pi*12; num=[0 Bw 0]; den=[1 Bw wo^2]; w = logspace(log10(wo/2),log10(wo*2),400); % w vector log and s...

6 years ago | 1

| accepted

Answered
How do I center axis labels in pcolor graph?
https://blogs.mathworks.com/pick/2009/02/06/plotaxisatorigin/ https://fr.mathworks.com/matlabcentral/answers/7272-setting-axes-...

6 years ago | 0

Answered
How can I plot an ECG txt file for analysis on Matlab?
hello if you work with a recent release of matlab, there are plenty of solutions... but not all are fast. usually the "modern"...

6 years ago | 0

Answered
bandpass filter design of simulink
hello these are some examples of digital filters - from their analog versions you can generate the a and b coefficients from ...

6 years ago | 0

Answered
IIR filter to correspond 5ms attack and 20ms release times
hello again so this is a very simple code that gives you the filter coeficients vs rise / fall constant times and Fs. you ca...

6 years ago | 0

| accepted

Answered
How to convert image file name "1.jpg" into a string or # in a list, list= [1]
hello my suggestion here - not really tested the mat file loading files = dir('*.jpg'); % list all jpeg files in curren...

6 years ago | 0

Answered
Convert double type string to data type
so this is simple string concatenation and then disp (for display in command window: X = pi Y = 2.234 disp(['The value of X ...

6 years ago | 0

Answered
How can you randomly pick a position in a matrix and make it count down?
hello simple code pause to let you observe the evolution of the matrix in the command window n = 3; m = 5; A = rand(n,m)...

6 years ago | 0

Answered
Convert string with cosine/sine or other operations to number
hello so this is my "low level" retrieve function ; remains to do a loop on multiple lines indexX = strfind(A,'X['); index...

6 years ago | 0

Answered
ZERO Pole Block cant change s term value
hi 5/(0.2s+1) = 25/(s+5) now you know !

6 years ago | 0

| accepted

Answered
Problem plotting with imagesc
hello this is the way I control the Z scale rendering of imagesc : A = rand(100,100); figure(1);imagesc(A);colorbar('vert')...

6 years ago | 0

| accepted

Answered
Read text data containing variables in rows and columns and to split them out paragraph wise in different variables.
hello this is not a 100% finished solution, but you can get a pretty good idea how to finalize it you get the DATA, PARAMETE...

6 years ago | 1

| accepted

Answered
Plotting sinusoidal waves and label of x and y
see https://fr.mathworks.com/matlabcentral/answers/20318-drawing-the-x-axis-at-y-0

6 years ago | 0

Answered
Removing artifacts from a signal
hi maybe you can localize the artifacts by using the attached function (zero crossing) artifacts will have two very nearby ze...

6 years ago | 0

Answered
Plotting sinusoidal waves and label of x and y
hi see example in attachement

6 years ago | 0

Answered
Getting high frequencies from a PWM signal
hallo Stefan I added a section to compute the time difference between rising and falling flanks of the PWM signals that gives ...

6 years ago | 0

Answered
Creating random error numbers within specified range.
Example 1: Generate values from the uniform distribution on the interval (a, b). r = a + (b-a).*rand(100,1);

6 years ago | 0

| accepted

Answered
How can I create an impulse wave via triangular pulse
hello this solves the assignement problem, but I suspect the shape of the signal is not what you are waiting for y(x<a)=(1/a...

6 years ago | 0

| accepted

Answered
How to interpolate data
hi get rid of the NaN ind_not_NaN = ~isnan(P); V_specific = interp1(P(ind_not_NaN),V(ind_not_NaN),500);

6 years ago | 0

Answered
How to bin a variable and create new variables for each bin
hello below an example for the first bin, easy to duplicate for the other ones Name = [{'Alice'} {'Bob'} {'Cate'} {'Doug'} {...

6 years ago | 0

Answered
Convert double type string to data type
hi simply use the string() command like : >> X = pi X = 3.1416 >> str = string(X) str = "3.1416"

6 years ago | 0

Answered
Stop the iteration loop at desire Ea
hello I believe it is working better now I tested it even with much tighter error constraint (down to 0.1) I'll let you che...

6 years ago | 0

Answered
How could I generate a biphasic pulse train?
hello maybe this can help you freq = 10 ; Ts=1e-04; t=0:Ts:1; angl = 2*pi*(mod(freq*t,1)); % % example 1 : positive sq...

6 years ago | 0

| accepted

Answered
How to subset the ylables to be displayed only on certain rows?
hello my suggestion x = randn(30, 24); % data y_label_names = {'§', '%','%','%','%','%','§','%','%','%','%','%','§','%','%'...

6 years ago | 0

| accepted

Load more