Answered
Error in function run_HEP() in EEGLAB when running plug in BrainBeats for HEP extraction
Change EEG.event(shortTrials).type = []; to for ST = shortTrials(:).' EEG.event(ST).type = []; end

2 years ago | 0

Answered
Is there a Matlab built in function to determine the domain of a function?
No, there is no built-in function to do that.

2 years ago | 0

Answered
How to Simplify a system of equations and find possible substitions (symbolic toolbox?
If you use matlabFunction and request that it be written to a file, then the default is to optimize. The optimization step invol...

2 years ago | 0

| accepted

Answered
what is the relationship between R and R1 and R3 for R.cos(wt+β)=R1.cos(wt+β)+R3.cos(3wt+3β)
syms R R1 R3 w t beta eqn1 = R == sqrt(R1^2 + R3^2); eqn2 = R .* cos(w * t + beta) == R1 .* cos(w*t + beta) + R3 .* cos(w*t + ...

2 years ago | 0

Answered
Updating Structure Input for Functions
What if you did something like fruit.apple.Mass = 0.15; %kg fruit.apple.Height = 4; %m fruit.coconut.Mass = 0.89; %kg frui...

2 years ago | 0

Answered
The matlab app interface automatically hides behind other open windows when a file is selected
That was an error associated with R2020b; it was fixed in newer versions.

2 years ago | 0

| accepted

Answered
Function 'subsindex' is not defined for values of class 'phased.PhaseCodedWaveform'.
You probably have accidentally named a variable bandwidth and that is interfering with using bandwidth as a function.

2 years ago | 2

| accepted

Answered
Too many output arguments. Requested 3 output(s), but only 1 output(s) available.
I suspect that your model has been configured to return a single output; https://www.mathworks.com/help/simulink/gui/singlesimu...

2 years ago | 0

Answered
not enough input arguments
You declare f1_func as expecting f1_func(x1,x2,Da1,Da2) but starting from k2x1(n) = Ts*f1_func(x1(n)+k1x1(n)/2,x2(n)+k1x2(n...

2 years ago | 0

| accepted

Answered
Attempt to extract field 'pmv' from 'mxArray'
pmvx=py.pythermalcomfort.pmv_ppd(tdb, tr, v_r, rh, met, clo_d); %to calculate pmv and ppd As far as Simulink knows, the result ...

2 years ago | 0

Answered
which matlab version supports scpi commands, real time video and ocr commands?
scpi requires Instrument Control Toolbox ocr requires Computer Vision Toolbox. However the built-in ocr() function is not all...

2 years ago | 0

Answered
Matlab code of shape
Apply some elementary trig. Angle = theta/2 --> known L = length of side --> known x/L = sin(Angle) y/L = cos(Angle) x =...

2 years ago | 0

Answered
Get value from field
You would get that error if fig is a figure() instead of being a uifigure()

2 years ago | 0

Answered
How can I add White Gaussian Noise?
frequencies is 1 x 3. frequencies' is 3 x 1. t is 1 x 50 (claimed in the code) 2*pi*frequencies'*t would be 3 x 1 * 1 x 50, gi...

2 years ago | 0

Answered
Square root symbol does not display using displayFormula function
S = ["Q_o=sqrt","'('","'2'","'*'","resistor_dissipated_energy","'*'","capacitance","')'"]; symstr = ["'Capacitor initial charge...

2 years ago | 0

| accepted

Answered
standalone(EXE) textscan is not working well
When you are using compiled executables, it is especially important to use fully qualified filenames everywhere. filename = di...

2 years ago | 0

Answered
why do i get this message Not enough input arguments. Error in ODEforA6 (line 9) theta = Y(1); and can someone help me please
You tried to execute the code by pressing the green Run button. When you press the green Run button, your code is executed with ...

2 years ago | 0

Answered
MATLAB does not start on OS X Sonoma M2 Max
On a true Intel Mac... No go. Under Sonoma R2016b and R2017b both abort immediately with *** Terminating app due to uncaught ex...

2 years ago | 0

Answered
How can I sort cell arrays along with vectors?
[~, SortOrder] = sort(vtstring_datim_begs); %or as appropriate s_ends = vtstring_datim_ends(SortOrder); s_durs = vtstring_...

2 years ago | 0

| accepted

Answered
acces and operate scanner using matlab
Apparently that device has a TWAIN interface. MATLAB does not have any TWAIN interface built in. https://www.tegakari.net/en/...

2 years ago | 0

Answered
Slow 3D video rendering & underutilized system usage
Instead of setting everything up every iteration, set up once before-hand and update objects inside iterations. tIndex = 1;...

2 years ago | 1

| accepted

Answered
"Invalid or deleted object" when using clib object in parfor loop
I would not expect this to work. Each of the workers is going to execute inside a different process. The pointer that is establ...

2 years ago | 1

Answered
How to pass non-numeric value as parameter to Matlab function block in Simulink
You are not going to be able to pass processWriter as a signal . You just might be able to construct processWriter inside the f...

2 years ago | 0

Answered
Converting a decimal matrix to binary in GA
typecast() the decimal matrix to 'uint64', and then use bitget() to fetch the individual bits. Example, format long g Num = -...

2 years ago | 1

| accepted

Answered
Define the matrix with the command sym
Up to roughly R2018a or so, it was valid to sym() a character string that represented an expression . Now it is only valid to sy...

2 years ago | 0

Answered
Unable to use a value of type tf as an index. How to fix?
You will find that bandwidth is a variable but that you are trying to use it as a function call.

2 years ago | 0

| accepted

Answered
How to make a video from comet(x, y) command?
You cannot do this while using comet() . comet() does not return until all of the drawing is complete . These days comet() is i...

2 years ago | 0

| accepted

Answered
Access table using logical array
Acol = [1; 2; 3; 4; 5; 6]; Bcol = [1; 2; 3; 4; 5; 6]; Ccol = [1; 2; 3; 4; 5; 6]; dataTable = table(Acol,Bcol,Ccol); dataTa...

2 years ago | 2

| accepted

Answered
Error using mupadmex Error in MuPAD command: symbolic:sym:isAlways:LiteralCompare|0 < root(z^20 - (555455*z^19)/28224 + (21279533*z^18)/112896 - (524070713*z^17)/451584 + (331
Your equality is equivalent to a polynomial of degree 20. MATLAB is not able to find a closed form solution for the roots (whic...

2 years ago | 0

Answered
How to generate secure random numbers?
Will Bcrypt be introduced into MATLAB? I very much doubt that Bcrypt will be included into MATLAB. Is there a way to generate ...

2 years ago | 0

Load more