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

mehr als 2 Jahre vor | 1

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 1

Beantwortet
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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 1

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

mehr als 2 Jahre vor | 0

Mehr laden