Réponse apportée
Please help. The first input argument of the "tf" command cannot be a string.
Besides of using 'k' for tf, there is another syntax error in T2. See the corrected core here: clear, clc G1=tf([1],[1 0 5]) ...

plus de 2 ans il y a | 1

Réponse apportée
Not enough input arguments ode45
Don't use the MATLAB's built in function names as a variable name - cd. Why to display all iterations that can be also skipped ...

plus de 2 ans il y a | 0

Réponse apportée
Difference between regress function and basic fitting wizard
They both produce the same results: R2 is the same for both. See e.g.: A = randi([-13, 13], 20, 5); B = randi([-130, 130], 20,...

plus de 2 ans il y a | 0

Réponse apportée
how to remove drift from noisy acceleration data
There are a couple of critical issues in your code. (1) Sampling frequency is 100 Hz and NOT 1000 Hz. and (2) Low-pass filter sh...

plus de 2 ans il y a | 0

Réponse apportée
"Not enough input arguments" error
Variables T and M are also not specified. See how it can be executed: x = 0:13; u0 = ones(size(x)); backward_heat(x,u0) fu...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
plot the fundamental harmonic wave
Here are two MATLAB fcns (bandpass() and fft()) which can be applied to solve your exercise.

plus de 2 ans il y a | 0

Réponse apportée
Using a string variable as a variable name in an equation.
If understood your question correctly, is this what you are trying to solve for: Diff_Value = 3; ELEC = [61 62 64 65 67 68 ...

plus de 2 ans il y a | 0

Réponse apportée
How do I make a function work?
There are a couple of critical points: (1) Don't use MATLAB's builtin fucntion names for your own functions that corrupts MATLA...

plus de 2 ans il y a | 0

Réponse apportée
I'd like to draw a graph of mechanical vibration with a matlap....
An initial step will be looking at the Runge-Kutta method Runge-Kutta and its implementation in MATLAB - writing a code like THI...

plus de 2 ans il y a | 0

Réponse apportée
Change of frequency content after using the retime function
Here is how to solve this issue: load('question_data.mat') dt1 = seconds(test_table.time(2) - test_table.time(1)); dt2 = 0.01...

plus de 2 ans il y a | 0

Réponse apportée
Converting 1000 plots in density distribution
Have you seen MATLAB's pdf() function - DOC explains and shows in examples

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
what function should I use to download a text file (.txt) ?
It really depends what is in the *.txt file and how the data formatted (numerical, text or mix, columnwise, rowise, etc.). See t...

plus de 2 ans il y a | 0

Réponse apportée
Combine two MATLAB figures with two different y axes
Is this what you want to obtain: fig1 = openfig('qualitatixe Analyse VR ACCx_31_35sek.fig'); fig2 = openfig('qualitatixe Analy...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How to store extracted coefficient values from curve fitting of multiple .txt files in index arrays?
It can be done something like this way: Folder = 'C:\Users\...'; % Directory where the files are residing F_Pat = fullfile(F...

plus de 2 ans il y a | 0

Réponse apportée
Matlab curve fitter error with exponential form with 2 terms
It is better to fit with log fit. % Interior Square Footage sqftL = [1500 1600 1750 1930 2250]; sqftUtilityL = [0 0.25 0.5 0....

plus de 2 ans il y a | 0

Réponse apportée
Matlab curve fitter error with exponential form with 2 terms
It does work very well if the initial conditions are given. Here is how it can be attained: % Interior Square Footage sqftL = ...

plus de 2 ans il y a | 0

Réponse apportée
Scope in Simulink - how to "grab" and "drag" cursors
Have you tried to use drop-down option in the Scope block. With a single click on the zoom option (the option is activated), a u...

plus de 2 ans il y a | 0

Réponse apportée
How to Extrapolate griddata for contour plot?
Here you can find an appropriate 3rd party fcn called inpaint_nans() that can be employed to subs NaNs in zb. Note that the MATL...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
how do I add the maximum value of arr into arrSorted within the while loop?
Here is how ti can be attained: clearvars; clc rng(1) a1D = randi([-20,80], 1, randi(20)); a2D = randi([-50, 30], randi(10),...

plus de 2 ans il y a | 0

Réponse apportée
Printing coordinate lines by XYZ array in a loop
Most welcome. To add Y and/or Z is quite simple: D = readmatrix('Data2G.csv'); D1 = D'; Xpos =D1(:,1:2); Ypos =D1(:,3:4); Z...

plus de 2 ans il y a | 0

Réponse apportée
Printing coordinate lines by XYZ array in a loop
D = readmatrix('Data2G.csv'); D1 = D'; Xpos =D1(:,1:2); Ypos =D1(:,3:4); Zpos =D1(:,5:6); for ii = 1:numel(Xpos(:,1)) ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Unable to read FITS file in Matlab but ImageJ(Fiji) is able to read it
Just looking at the ImageJ imported images from the two FITS files, two points can be made: (1) FITS image data file is not com...

plus de 2 ans il y a | 0

Réponse apportée
How to apply a 'custom' colormap to multiple data sets including negative and positive values
As understood your question, this is what you are trying to get: figure set(gcf,'Color','w') % set the background of figure to...

plus de 2 ans il y a | 1

Réponse apportée
How to get the coefficients of an equation
Maybe it is appropriate to work in a reverse order, e.g.: syms x1 x2 Coeff = [2;1]; eq = [x1, x2]*Coeff<=0

plus de 2 ans il y a | 0

Réponse apportée
how distribuite correctly array in struct
Understood your question correctly and without seeing your data. These commands work ok, e.g.: A = randi(13, 7, 1); DD.Set1 = ...

plus de 2 ans il y a | 0

Réponse apportée
My exported EDF file is up to 100 times bigger than my imported EDF file
Without seeing your data files and just quick looking at your code, this can be concluded. You are augmenting data from numberOf...

plus de 2 ans il y a | 0

Réponse apportée
Help with reading data from text file in Simulink and use it conduct analysis
There are a few ways it can be attained. One of the quick and easy way, to import a data from the *.txt file in matlab and read ...

plus de 2 ans il y a | 0

Réponse apportée
Solving a system of ordinary differential equations
In fact, your solution code is ok but if you look at a bit closer by taking a shorter time span [0, 7] you will see the nonlinea...

plus de 2 ans il y a | 0

Réponse apportée
How to replace the data in tif file with my own data by matlab?
If understood your question correctly, this is how to get it solved: D=unzip('Test5.zip'); %% D1 = imread(D{1,1}); DS = load...

plus de 2 ans il y a | 1

Réponse apportée
FFT, THD and Fourier equations
You need to have a look at tek0025.csv a bit more careful. Both voltage and current seem to have the same fundamental frequency ...

plus de 2 ans il y a | 0

Charger plus