Answered
Why am I getting error in event function for impulsive differential equations?
https://www.mathworks.com/help/matlab/ref/ddeset.html InitialY is only for Delay Differential Equations using ddeset()

4 years ago | 0

Answered
Solve the equation g(x)= 3x2 −2x−4=0. c) Find the roots g(x) d) The value at g(-2) if u could help me with this one?
syms g(x) g(x) = 3*x^2 - 2*x - 4 fplot([g, 0], [-5 5]) xticks(-5:5) Where the two lines cross are the roots.

4 years ago | 0

Answered
How to pass categorical names into dot plot and plot categorical data in for loop?
subj_controls = categorical({'subject1' 'subject2'}); subj_stimulus = categorical({'subject1' 'subject2'}); time = categorical...

4 years ago | 0

| accepted

Answered
I have defined [Sensitivity], but I get an error message.
In your app code, you need to store the output of the addinput() call into the variable Channels Your code at line 665 calls a...

4 years ago | 0

| accepted

Answered
Graphs using ode45 do not look like they should. Why is time vector not a linear set?
tspan = [0 40] ; [t, y] = ode45(@rate,tspan,y0) ; You asked ode45 to compute for some points between t = 0 and t = 40. Hyp...

4 years ago | 0

Answered
3D lut with breakpoint not monotonically increasing
Your marginals used as breakpoints in your Simulink lookup table should be linspace(min(Cn(:,1)),max(Cn(:,1)),33) linspace(mi...

4 years ago | 1

Answered
Z must be a matrix, not a scalar or vector.
%putting the value a=1; b=-2; c=-1; alpha=1; p=0; %mesh plot x = -3:.1:3; y = -3:.1:3; [X,Y] = meshgrid(x,y); %varth...

4 years ago | 0

Answered
Unable to perform assignment because the size of the left side is 2032-by-1 and the size of the right side is 1-by-2243277.
f=linspace(-max_f,max_f,2*max_f*(length(Fsig)-1)/(max(Fsig)-min(Fsig))+1); linspace with two parameters always generates 10...

4 years ago | 0

| accepted

Answered
How do you fix an error in my code that states, "The variable " " appears to change size on every loop iteration (within the script). Consider reallocating for speed."?
That is a warning not an error. To get rid of the warning, pre-allocate maxvalue maxvalue = zeros(n, 1); for i = 1 : n ...

4 years ago | 1

| accepted

Answered
U-Net shallow or deep?
<https://en.m.wikipedia.org/wiki/U-Net> It is a convolutional network, and those are always considered "deep"

4 years ago | 0

| accepted

Answered
Unable to concatenate the table variables
Your Z column contains text but your other columns are numeric. It is not possible to create a single array that contains both t...

4 years ago | 0

Answered
I want to send data from Matlab to Arduino
You could use the Instrument Control Toolbox; see https://www.mathworks.com/help/instrument/read-data-from-arduino-using-tcpip-c...

4 years ago | 0

Answered
choose multiple functions from a larger group
functions_to_pick_from = {@first, @second, @third, @fourth, @fifth, @sixth, @seventh}; num_to_pick = 4; num_to_pick_from = l...

4 years ago | 0

Answered
Error GAN in matlab 2019b ?
MATLAB GPU processing supports *only* NVIDIA, not AMD. As far as I can tell, there are no active plans to support AMD GPUs.

4 years ago | 0

Answered
I am not able to solve this issue?
csvread() can never read text. It could be configured to skip the first column, but your code wants that information. You sho...

4 years ago | 0

Answered
need help in generating Lidar data
https://www.mathworks.com/help/fusion/ug/track-vehicles-using-lidar.html has example lidar data

4 years ago | 0

Answered
running pcsegdist on gpu
The document says that the function is supported by GPU Coder, not that it can run on GPU normally. There is no support for mar...

4 years ago | 1

Answered
hello i need some help:
That error can have two causes: * you might be trying to subtract two objects of fundamentally different sizes, such as tryin...

4 years ago | 0

Answered
How to extract polynomial "p" from symbolic solution "root(p,x,k)"?
use children() — or findSymType() and then children()

4 years ago | 1

| accepted

Answered
Create the smallest polygon enclosing set of points
See boundary()

4 years ago | 1

| accepted

Answered
Unrecognized method, property, or field 'verts' for class 'PRM'.
This code uses a number of routines that are not part of anything provided by Mathworks. I have not been successful in figuring ...

4 years ago | 0

Answered
Taking the Inverse of 6x6 Symbolic Real Symmetric Matrix Crashes MATLAB
create a framework matrix to take the inverse of, and then subs() syms M [6 6] iM = inv(M) ; imat = subs(iM, M, Yo...

4 years ago | 0

| accepted

Answered
change row when compiling an array
Store into answer{i}

4 years ago | 0

Answered
How do I get a license?
https://www.mathworks.com/academia/tah-support-program/eligibility.html to check to see if your university has a campus license...

4 years ago | 0

Answered
MATLAB precision (?) error that escalates to infinity
Matrix multiplication calculates each location as the sum of a number of products of pairs. Sometimes this is expressed using th...

4 years ago | 0

Answered
Change code to paralle computing (for loop -> parfor loop)
temp_ft_mcd = zeros(npulse,nrbin); No, do not do that within the parfor. You rebuild the entire matrix each time, but you o...

4 years ago | 1

| accepted

Answered
Why the command does not displaying my answer?
In order for output to show up at the command line, one of the following must occur: * you use fprintf with no file identifie...

4 years ago | 0

Answered
How to get all combinations of PRODUCTS between two array elements?
A(:).*B(:).' If you can guarantee that both are row vectors then either A.'. * B or A .* B.' The result wil...

4 years ago | 0

Answered
Is fit() not supposed to be used? It seems intentionally terrible.
https://www.mathworks.com/help/curvefit/fit.html#bto2vuv-1_sep_bto2vuv-1-x Data to fit, specified as a matrix with either one...

4 years ago | 0

Load more