回答済み
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]) ...

2年以上 前 | 1

回答済み
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 ...

2年以上 前 | 0

回答済み
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,...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 0

回答済み
"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...

2年以上 前 | 0

| 採用済み

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

2年以上 前 | 0

回答済み
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 ...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 0

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

2年以上 前 | 0

| 採用済み

回答済み
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...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 0

| 採用済み

回答済み
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...

2年以上 前 | 0

回答済み
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....

2年以上 前 | 0

回答済み
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 = ...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 0

| 採用済み

回答済み
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),...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 0

回答済み
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)) ...

2年以上 前 | 0

| 採用済み

回答済み
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...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 1

回答済み
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

2年以上 前 | 0

回答済み
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 = ...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 0

回答済み
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 ...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 0

回答済み
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...

2年以上 前 | 1

回答済み
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 ...

2年以上 前 | 0

さらに読み込む