Feeds
已回答
Attempting to interpolate with interp2 and getting errors about the sample point vector?
[x, y] = meshgrid(0:0.01:1, 0:0.01:1); x = [0 1 1 0]; y = [0 0 1 1]; You are overwriting the grids of data produced by meshgr...
Attempting to interpolate with interp2 and getting errors about the sample point vector?
[x, y] = meshgrid(0:0.01:1, 0:0.01:1); x = [0 1 1 0]; y = [0 0 1 1]; You are overwriting the grids of data produced by meshgr...
6 hours 前 | 1
已回答
GPU programming for Mac M1
If I recall correctly, someone posted indicating that they had generated mex C++ code that calls into Apple's GPU routines, and ...
GPU programming for Mac M1
If I recall correctly, someone posted indicating that they had generated mex C++ code that calls into Apple's GPU routines, and ...
6 hours 前 | 0
已回答
Deciding when to call a Matlab function: Within my symbolic math code, or within my converted numerical code?
Typically you compute in two phases: Symbolic-only phase. Everything that is changeable is generalized as a symbolic variable. ...
Deciding when to call a Matlab function: Within my symbolic math code, or within my converted numerical code?
Typically you compute in two phases: Symbolic-only phase. Everything that is changeable is generalized as a symbolic variable. ...
1 day 前 | 0
| 已接受
已回答
translation of Simulink generated integers into a 1-D vector
If you have a fixed number of values to process at a time, use the DSP Toolbox buffer blocks, https://www.mathworks.com/help/dsp...
translation of Simulink generated integers into a 1-D vector
If you have a fixed number of values to process at a time, use the DSP Toolbox buffer blocks, https://www.mathworks.com/help/dsp...
1 day 前 | 0
已回答
How to make vectors A1, A2,... A127. Rolling time window.
If you have the Signal Processing Toolbox, you might as well use buffer() https://www.mathworks.com/help/signal/ref/buffer.html...
How to make vectors A1, A2,... A127. Rolling time window.
If you have the Signal Processing Toolbox, you might as well use buffer() https://www.mathworks.com/help/signal/ref/buffer.html...
1 day 前 | 0
已回答
How to find the point the graph crosses the x axis
if x(1) == 0 crossing_location = 1; elseif x(1) < 0 %crossing from negative to positive crossing_location = find...
How to find the point the graph crosses the x axis
if x(1) == 0 crossing_location = 1; elseif x(1) < 0 %crossing from negative to positive crossing_location = find...
1 day 前 | 0
已回答
Trying to create a power factor correction system but no data shows
You have Physical Signals. You need to convert them before Scope. https://www.mathworks.com/help/simscape/ref/pssimulinkconverte...
Trying to create a power factor correction system but no data shows
You have Physical Signals. You need to convert them before Scope. https://www.mathworks.com/help/simscape/ref/pssimulinkconverte...
1 day 前 | 0
已回答
Cant show plot on a graph matlab GUI
selectedFunction = app.DropDown.Value; That is going to reply with a character vector even if the Items was initial...
Cant show plot on a graph matlab GUI
selectedFunction = app.DropDown.Value; That is going to reply with a character vector even if the Items was initial...
1 day 前 | 0
已回答
Is there a way to find the lengths of the contours in fcontour or other?
You can request the ContourMatrix property of the FunctionContour object returned by fcontour . The ContourMatrix contains infor...
Is there a way to find the lengths of the contours in fcontour or other?
You can request the ContourMatrix property of the FunctionContour object returned by fcontour . The ContourMatrix contains infor...
1 day 前 | 0
已回答
Error in state of SceneNode
txt = sprintf('$T=%.1f^{\\circ}$C'); This will not be an actual degree symbol, but it is close. The LaTeX interpreter does no...
Error in state of SceneNode
txt = sprintf('$T=%.1f^{\\circ}$C'); This will not be an actual degree symbol, but it is close. The LaTeX interpreter does no...
2 days 前 | 0
已回答
Need help writing a matlab function.
A deliberately clumsy implementation: function appropriate_element_to_return = hw4_problem3(w, n) array_being_indexed = w; ...
Need help writing a matlab function.
A deliberately clumsy implementation: function appropriate_element_to_return = hw4_problem3(w, n) array_being_indexed = w; ...
3 days 前 | 0
已回答
Define function for transient transient boundary condition
function Trefrig = Trefrig(state.time) thermalBC(thermalmodel,"Edge",7,... "ConvectionCoefficient",hrefrig,... "Ambie...
Define function for transient transient boundary condition
function Trefrig = Trefrig(state.time) thermalBC(thermalmodel,"Edge",7,... "ConvectionCoefficient",hrefrig,... "Ambie...
3 days 前 | 0
已回答
Power spectra of bottom pressure at D5, Digital filtering
subplot(3,2,5); % Power Spectral Density (PSD) 및 신뢰구간 계산 [Pxx, F, Pxxc] = pwelch(bottom_pressure, WINDOW, NOVERLAP, NFFT, Fs, ...
Power spectra of bottom pressure at D5, Digital filtering
subplot(3,2,5); % Power Spectral Density (PSD) 및 신뢰구간 계산 [Pxx, F, Pxxc] = pwelch(bottom_pressure, WINDOW, NOVERLAP, NFFT, Fs, ...
4 days 前 | 0
| 已接受
已回答
How do I add arrows in evolution analysis figure?
You can use annotation 'arrow'. Unfortunately by itself annotation() uses Normalized coordinates -- normalized relative to the f...
How do I add arrows in evolution analysis figure?
You can use annotation 'arrow'. Unfortunately by itself annotation() uses Normalized coordinates -- normalized relative to the f...
4 days 前 | 0
已回答
Every time I run this code, I get "Error using plot Vectors must be the same length.
The equation for guassian pulse does not involve complex numbers. https://doc.comsol.com/6.1/doc/com.comsol.help.comsol/comsol_...
Every time I run this code, I get "Error using plot Vectors must be the same length.
The equation for guassian pulse does not involve complex numbers. https://doc.comsol.com/6.1/doc/com.comsol.help.comsol/comsol_...
5 days 前 | 1
| 已接受
已回答
Coordinates of objectes in the images
You velocity logic is incorrect. You build up a list of centroids. There can be more than one centroid in any image, and you co...
Coordinates of objectes in the images
You velocity logic is incorrect. You build up a list of centroids. There can be more than one centroid in any image, and you co...
5 days 前 | 0
已回答
Why Is Colon Operator Not Equivalent To linspace Command?
The colon operator is defined to use repeated addition. When the increment does not happen to be an integer multiple of a power ...
Why Is Colon Operator Not Equivalent To linspace Command?
The colon operator is defined to use repeated addition. When the increment does not happen to be an integer multiple of a power ...
5 days 前 | 0
已回答
How to customize the markers of the scatter figure, as shown below
Unfortunately, markers are only customizable between a limited number of pre-set shapes. You will need to patch(), as I recentl...
How to customize the markers of the scatter figure, as shown below
Unfortunately, markers are only customizable between a limited number of pre-set shapes. You will need to patch(), as I recentl...
5 days 前 | 1
已回答
How to plot 3D radiation pattern together from 2 separated .OGL files data in Matlab
patternCustom() does not accept x y z vectors. patternCustom accepts magE array or vector, and theta and phi vectors. (In the c...
How to plot 3D radiation pattern together from 2 separated .OGL files data in Matlab
patternCustom() does not accept x y z vectors. patternCustom accepts magE array or vector, and theta and phi vectors. (In the c...
5 days 前 | 0
已回答
Non-linear Scale for Radius Axis in a Polarhistogram Plot
polaraxes does not have any way to adjust the scale factor. It does not for example have an RScale property that might (hypothet...
Non-linear Scale for Radius Axis in a Polarhistogram Plot
polaraxes does not have any way to adjust the scale factor. It does not for example have an RScale property that might (hypothet...
6 days 前 | 0
| 已接受
已回答
Does R2022b support MISRA C:2012 Amendment 3 (AMD3)?
MISRA C:2012 Amendment 3 support was added in R2024a.
Does R2022b support MISRA C:2012 Amendment 3 (AMD3)?
MISRA C:2012 Amendment 3 support was added in R2024a.
6 days 前 | 0
已回答
How to find the position of a number in an array?
You can use the “find” function to return the positions corresponding to an array element value. For example: a = [7 8 8 2 5 6];...
How to find the position of a number in an array?
You can use the “find” function to return the positions corresponding to an array element value. For example: a = [7 8 8 2 5 6];...
6 days 前 | 22
| 已接受
已回答
how do I set the property "RemoteConnectivity" == 1
feature("RemoteConnectivity", 1)
how do I set the property "RemoteConnectivity" == 1
feature("RemoteConnectivity", 1)
6 days 前 | 0
| 已接受
已回答
Change Line width and Line color in findchangepts function.
After you findchangepts(ACc(:,2),'Statistic','mean','MaxNumChanges',2); then do ax = gca; %if you want to affect the line...
Change Line width and Line color in findchangepts function.
After you findchangepts(ACc(:,2),'Statistic','mean','MaxNumChanges',2); then do ax = gca; %if you want to affect the line...
6 days 前 | 2
已回答
Plotting with 3 variables
x = linspace(-10,10); z = linspace(-10,10); y = -(2.*sin(z)+x.*cos(z)); plot3(x, y, z) xlabel('x'); ylabel('y'); zlabel('z')...
Plotting with 3 variables
x = linspace(-10,10); z = linspace(-10,10); y = -(2.*sin(z)+x.*cos(z)); plot3(x, y, z) xlabel('x'); ylabel('y'); zlabel('z')...
7 days 前 | 0
已回答
how to calculate for 100's of coordinates
x = linspace(MinimumX, MaximumX, NumberOfX); y = linspace(MinimumY, MaximumY, NumberOfY);
how to calculate for 100's of coordinates
x = linspace(MinimumX, MaximumX, NumberOfX); y = linspace(MinimumY, MaximumY, NumberOfY);
7 days 前 | 0
已回答
null or NaN entries in image arrays?
The trick is that if your image array is not datatype single() or double(), then there is no way to set locations to be ignored ...
null or NaN entries in image arrays?
The trick is that if your image array is not datatype single() or double(), then there is no way to set locations to be ignored ...
7 days 前 | 1
已回答
How to find the maximum value of the first column in multiple matrices excluding the row we selected?
X = rand([6,3,2]); Selected_Row = 2; max_by_column = max(X(setdiff(1:end, Selected_Row), :, :), [], 1)
How to find the maximum value of the first column in multiple matrices excluding the row we selected?
X = rand([6,3,2]); Selected_Row = 2; max_by_column = max(X(setdiff(1:end, Selected_Row), :, :), [], 1)
7 days 前 | 0
已回答
How to solve this equations using matlab code,I use solve but I have obtained a wrong and strange solution, and I don't know why.
eqn1 = 19/Q + 1/(2*50*10^(-6)) - 5/(24*t^2); solving for Q involves t^2 eqn2 = (5 + 0.5*(Q/(50*10^(-6))))*(Q - 7.02*10^(-6)) -...
How to solve this equations using matlab code,I use solve but I have obtained a wrong and strange solution, and I don't know why.
eqn1 = 19/Q + 1/(2*50*10^(-6)) - 5/(24*t^2); solving for Q involves t^2 eqn2 = (5 + 0.5*(Q/(50*10^(-6))))*(Q - 7.02*10^(-6)) -...
7 days 前 | 1
已回答
Handling missing observations while using fmincon
Use this kind of structure: XY = [X, Y]; XY = rmmissing(XY); Xm = XY(:,1:end-1); Ym = XY(:,end); objfun = @(PARAMS) sum((...
Handling missing observations while using fmincon
Use this kind of structure: XY = [X, Y]; XY = rmmissing(XY); Xm = XY(:,1:end-1); Ym = XY(:,end); objfun = @(PARAMS) sum((...
7 days 前 | 0