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

alrededor de 2 años hace | 1

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

Respondida
Converting 1000 plots in density distribution
Have you seen MATLAB's pdf() function - DOC explains and shows in examples

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 1

Respondida
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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 1

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

más de 2 años hace | 0

Cargar más