Answered
Getting python terminal output
In the special case where you are running Python from Windows, then you could use the .NET assembly System.Diagnostics.Process t...

3 years ago | 0

Answered
The difference between the obtained result using fftshift when employing the ifft() function
In the original, on the right we see a large pulse, then left of that is a smaller pulse, and left of that is a pretty small pul...

3 years ago | 0

| accepted

Answered
Changing adjacent elements in matrix with input from user
You start j at 1, but you try to store into matrixM(i,j-1) . When j==1 then that would try to store into matrixM(i,0) Likewise...

3 years ago | 0

| accepted

Answered
fmincon optimization not running properly, stops beacuase of StepTolerance
fmincon is a general minimizer. It does not stop when the function value is zero: it is fine with going pretty negative. As s...

3 years ago | 1

Answered
How can i display this user defined matrix made with a loop
My suspicion is that you have a situation something like M = magic(4) fprintf('%d %d %d %d\n', M) and you are noticing that t...

3 years ago | 0

Answered
How do I display only certain numbers from a plot?
Your y is a vector. You want to find locations in that vector that are between -p and +p . mask = -p < y & y < p; Now you have...

3 years ago | 0

Answered
I am getting NaN value from ifft (please guide)
ds = load('data.mat'); data = ds.data; S21BD = data{:,6}; S21DEG = data{:,7}; maskBD = isfinite(S21BD); find(~maskBD) ...

3 years ago | 0

Answered
Non-constant expression or empty matrix. This expression must be constant because its value determines the size or class of some expression.
You don't. Code generation cannot handle dynamically generated field names (except perhaps some that can be somehow resolved at ...

3 years ago | 1

| accepted

Answered
I want to use all nested arrays inside each cell.
See https://www.mathworks.com/matlabcentral/fileexchange/43621-flatten-cell-array or https://www.mathworks.com/matlabcentral/fil...

3 years ago | 0

| accepted

Answered
Dot indexing is not supported for variables of this type.
classdef NSGA2Fed < handle ... methods function obj = NSGA2(varargin) NSGA2 does not match the name of the c...

3 years ago | 1

Answered
Load Arduino Files (coding) in Matlab Command Window
You cannot. .ino files are plain-text files, but they are not written in a programming language that MATLAB can execute. Ardu...

3 years ago | 0

Answered
Error using FuzzyInferenceSystem/addRule Vector description: Rule length must be m+n+2, where m is the number of inputs and n is the number of outputs.
fis = mamfis('Name','myfis','NumInputs',2,'NumOutputs',1); You are starting with 2 inputs and 1 outputs fis = addInput(fis, [-...

3 years ago | 0

Answered
writematrix output file that can't be read by textread
The format specification is mandatory for textread Perhaps you wanted readmatrix or readlines or fileread

3 years ago | 0

| accepted

Answered
Arrays have incompatible sizes for this operation. Error in test (line 35) G = F .* conj(T_h1);
you could arrange so that F and T_h1 either have the same size or else have sizes that are suitable for implicit expansion you ...

3 years ago | 0

Answered
Error using FuzzyInferenceSystem/addInput Expected a string scalar or character vector for the parameter name.
It is not possible to add a sub-section to a FIS. You cannot create variable names such as myfis -> Desplazamiento -> mf1 or myf...

3 years ago | 0

| accepted

Answered
Why I'm unable to install BioSig Toolbox?
The -end option is not valid for MATLAB's path call. It is also not valid for Octave's path() call (which has a different syntax...

3 years ago | 0

Answered
None of my plots are showing up
The fft of the unit impluse function is constant. https://www.tutorialspoint.com/fourier-transform-of-unit-impulse-function-con...

3 years ago | 1

Answered
How to convert a multidimensional array into an acceptable string for Simulink.Signal initialization?
out = cat(4, cat(3, [1 2; 3 4; 5 6], [7 8; 9 10; 11 12]), cat(3, [41 42; 43 44; 45 46], [47 48; 49 410; 411 412])) whos out Th...

3 years ago | 1

| accepted

Answered
Systems of Trigonometric Equation does not return any value
AB = 105.58445229; CD = 16.55781849; DP1 = 39.28354082; P1O1 = 38.35549425; O1G3 = 12.39771742; G3G2 = 37.99184738; ...

3 years ago | 0

| accepted

Answered
Issue when input to sin(x) is in scientific notation
dT = 0.1; T = 0:dT:5; You are assuming that T will be in terms of nice even fractions, same as if you had specified T = [0, 1...

3 years ago | 3

Answered
Annotation Displays in the Wrong Location
What is happening is that by default the coordinates used for annotation() are normalized to the figure. The call to figure() w...

3 years ago | 1

Answered
Subplot of Contour Plot figures
Historically there could only be one colormap per figure and it was stored as a property of the figure Eventually MATLAB added ...

3 years ago | 0

Answered
Array limit for matlab coder
I suspect that you are reaching the stack size limit. If you are generating for real-time work, then you would need to increas...

3 years ago | 0

| accepted

Answered
How to parse text printed to command window?
See evalc to capture the output of executing a command.

3 years ago | 0

Answered
im looking for the error in the following code, please help
gamma = 0.1; % Recovery rate gamma is a scalar not a function CaputoDerivative = @(f,alpha,dt) 1/gamma(alpha)*(f(1)...

3 years ago | 0

Answered
Write m-file that writes a specific code section into a specific location of another m-file
readlines(), replace string entries, writelines() preferably to a different file name. It is common for people to ask to rep...

3 years ago | 0

Answered
How to convert signal from point series to time series?
Use timeseries ... However these days it is recommended that instead you use timetable objects instead.

3 years ago | 0

Answered
How do you add a multiplication in the numerator of a transfer function.
s = tf('s'); g = 5 * exp(-t*s)/s + 5 You cannot use an undefined or symbolic variable in a tf(). Are you sure that you want ...

3 years ago | 0

Answered
Runge-Kutta system equation solver for a system of equations
Are you trying to run the ode on a whole series of elevations simultaneously, or does one of your state variables represent the ...

3 years ago | 0

Answered
What's the formula used for kummerU?
Execute regexprep(char(evalin(symengine, 'expose(kummerU)')) , '\\n', '\n') to be shown the formula used.

3 years ago | 0

| accepted

Load more