統計
All
Feeds
回答済み
How does MATLAB app designer call external. m functions after packaging into exe?
When you package into exe then external .m that are not packaged as part of the exe, cause an error when they are called. Onl...
How does MATLAB app designer call external. m functions after packaging into exe?
When you package into exe then external .m that are not packaged as part of the exe, cause an error when they are called. Onl...
約10時間 前 | 0
回答済み
extract max and min frequency of a spectrum
You could fft(), and take the first half of the results, and find the last bin such that abs(BIN)>0 . That last bin will corresp...
extract max and min frequency of a spectrum
You could fft(), and take the first half of the results, and find the last bin such that abs(BIN)>0 . That last bin will corresp...
約18時間 前 | 0
回答済み
Passing output from afterEach to variable
This method is fairly clumsy, but in theory it would work. Use a parpool size of 1. Use parfeval() to create a parallel.pool.P...
Passing output from afterEach to variable
This method is fairly clumsy, but in theory it would work. Use a parpool size of 1. Use parfeval() to create a parallel.pool.P...
約19時間 前 | 1
| 採用済み
回答済み
how to find the function "helper plot fluctuation loss" to plot this image in matlab help?
When you openExample('radar/IntegrationAndFluctuationLossesExample') it will set up a directory for you and cd to that direct...
how to find the function "helper plot fluctuation loss" to plot this image in matlab help?
When you openExample('radar/IntegrationAndFluctuationLossesExample') it will set up a directory for you and cd to that direct...
約19時間 前 | 0
| 採用済み
回答済み
Taylor's theorem, find approximation for e^-x for x =1 with accuracy of 5 decimals.
Taylor's series involves accumulating the sum of terms. The sum of the n'th derivative of the function divided by n factorial ti...
Taylor's theorem, find approximation for e^-x for x =1 with accuracy of 5 decimals.
Taylor's series involves accumulating the sum of terms. The sum of the n'th derivative of the function divided by n factorial ti...
約20時間 前 | 0
回答済み
i want to plot fragility curve stress vrs probability of failure and mean speed vrs probability of failure no of data is 48500
Your failure probability is a scalar. mean speed could be calculated as mean(data.Speed_km_h) but that would be a scalar. Plotti...
i want to plot fragility curve stress vrs probability of failure and mean speed vrs probability of failure no of data is 48500
Your failure probability is a scalar. mean speed could be calculated as mean(data.Speed_km_h) but that would be a scalar. Plotti...
1日 前 | 0
回答済み
Same script in a path folder and the current folder. Which takes priority? (2024a, Ubuntu)
According to https://www.mathworks.com/help/matlab/matlab_prog/function-precedence-order.html 3. Nested functions within the c...
Same script in a path folder and the current folder. Which takes priority? (2024a, Ubuntu)
According to https://www.mathworks.com/help/matlab/matlab_prog/function-precedence-order.html 3. Nested functions within the c...
1日 前 | 0
回答済み
Simplifying symbolic expression to get real of real function in it.
syms x (x^3 + x)/x^2 + 5 real(ans) You can see that if you have a real() call then the Symbolic Toolbox already automatically...
Simplifying symbolic expression to get real of real function in it.
syms x (x^3 + x)/x^2 + 5 real(ans) You can see that if you have a real() call then the Symbolic Toolbox already automatically...
2日 前 | 0
回答済み
How to access the certain data Simulink model ?
You can use a Selector block to extract particular columns from simulink signals. https://www.mathworks.com/help/simulink/slref/...
How to access the certain data Simulink model ?
You can use a Selector block to extract particular columns from simulink signals. https://www.mathworks.com/help/simulink/slref/...
3日 前 | 0
回答済み
How to Solve a System of Equations for symfun Objects?
Is there a way to define all of the R(s),E(s),G(s),Y(s) as symfun from the start and simultaneously solve eq1 and eq2 directly f...
How to Solve a System of Equations for symfun Objects?
Is there a way to define all of the R(s),E(s),G(s),Y(s) as symfun from the start and simultaneously solve eq1 and eq2 directly f...
3日 前 | 0
| 採用済み
回答済み
How to continuously create an array of the latest values of a signal in SIMULINK?
You can use a buffer block https://www.mathworks.com/help/dsp/ref/buffer.html (requires the DSP System Toolbox)
How to continuously create an array of the latest values of a signal in SIMULINK?
You can use a buffer block https://www.mathworks.com/help/dsp/ref/buffer.html (requires the DSP System Toolbox)
3日 前 | 0
回答済み
transform table variable into struct variable.
Perhaps use table2struct ? Note that your posted code creates a cell array, U and uses () indexing to try to set U(1) and so on...
transform table variable into struct variable.
Perhaps use table2struct ? Note that your posted code creates a cell array, U and uses () indexing to try to set U(1) and so on...
4日 前 | 0
| 採用済み
回答済み
How to merge data in mat file?
load pot1 newpot = pot(~arrayfun(@(S)isempty(S.tr), pot)); save('newpot.mat', 'newpot')
How to merge data in mat file?
load pot1 newpot = pot(~arrayfun(@(S)isempty(S.tr), pot)); save('newpot.mat', 'newpot')
4日 前 | 0
回答済み
Can we download Predictive maintenance toolbox for free, and is it compatible with MATLAB 2017a?
The Predictive Maintenance Toolbox was introduced in R2018a, so it is not compatible with R2017a. It cannot be downloaded for f...
Can we download Predictive maintenance toolbox for free, and is it compatible with MATLAB 2017a?
The Predictive Maintenance Toolbox was introduced in R2018a, so it is not compatible with R2017a. It cannot be downloaded for f...
4日 前 | 0
回答済み
How can show 2D plot of 3 file data analysis and show effect of change ?
S = fileread('ST1.txt'); S = regexprep(S, '\*I', ''); S(1:100) ST1data = cell2mat(textscan(S, '%f %f %f%f')); ST1 = reshap...
How can show 2D plot of 3 file data analysis and show effect of change ?
S = fileread('ST1.txt'); S = regexprep(S, '\*I', ''); S(1:100) ST1data = cell2mat(textscan(S, '%f %f %f%f')); ST1 = reshap...
5日 前 | 0
回答済み
How to remove extraneous Matlab-generated vertical lines that connect function values at jump discontinuities?
MATLAB does not do that. What is happening is that when you use plot() on a finite set of data, then where there are places tha...
How to remove extraneous Matlab-generated vertical lines that connect function values at jump discontinuities?
MATLAB does not do that. What is happening is that when you use plot() on a finite set of data, then where there are places tha...
5日 前 | 1
| 採用済み
回答済み
how to crop a binary mask to remove all black pixels while maintaining the largest area of white pixels?
vertproj = any(YourMask,1); horzproj = any(YourMask,2); minx = find(vertproj,1,'first'); maxx = find(vertproj,1,'last'); min...
how to crop a binary mask to remove all black pixels while maintaining the largest area of white pixels?
vertproj = any(YourMask,1); horzproj = any(YourMask,2); minx = find(vertproj,1,'first'); maxx = find(vertproj,1,'last'); min...
5日 前 | 0
回答済み
Simulink Mathlab Function Block Output Variable Size Array
Insert totalValue = uint8(0); before totalValue = (y3+2);
Simulink Mathlab Function Block Output Variable Size Array
Insert totalValue = uint8(0); before totalValue = (y3+2);
5日 前 | 0
回答済み
minimizing with genetic algorithm
y = @(x) (1.002)-((1-exp(-0.00003*x))./(0.00003*(x+1.5)+(0.00063*(1-exp(-0.00003*x))))); fplot(y, [-2, 10]) fplot(y, [-1.5 -...
minimizing with genetic algorithm
y = @(x) (1.002)-((1-exp(-0.00003*x))./(0.00003*(x+1.5)+(0.00063*(1-exp(-0.00003*x))))); fplot(y, [-2, 10]) fplot(y, [-1.5 -...
5日 前 | 0
回答済み
Can I plot two figures simultaneously but with less data for the second figure?
Well, you can... but it isn't worth the trouble. N1 = 1001; N2 = 20; theta = linspace(0, 2*pi, N1); [~, pi_idx] = min(abs(th...
Can I plot two figures simultaneously but with less data for the second figure?
Well, you can... but it isn't worth the trouble. N1 = 1001; N2 = 20; theta = linspace(0, 2*pi, N1); [~, pi_idx] = min(abs(th...
6日 前 | 0
| 採用済み
回答済み
chiral medium in matlab
The internal code looks like if ~isDielectricSubstrate(obj) feed_x = obj.DefaultFeedLocation(1)+ ...
chiral medium in matlab
The internal code looks like if ~isDielectricSubstrate(obj) feed_x = obj.DefaultFeedLocation(1)+ ...
6日 前 | 0
| 採用済み
回答済み
Install MIDAS Toolbox in Matlab 2024b
Most items installed by the Add-On Explorer do not show up in ver (official MATLAB toolboxes being the exception -- but Support ...
Install MIDAS Toolbox in Matlab 2024b
Most items installed by the Add-On Explorer do not show up in ver (official MATLAB toolboxes being the exception -- but Support ...
7日 前 | 0
| 採用済み
回答済み
Reading Arduino Serial Port into Matlab and 50% of the time getting characters instead of digits.
It is not documented what the return value is if the reading fails, such as if there happens to be non-numeric bytes in the inpu...
Reading Arduino Serial Port into Matlab and 50% of the time getting characters instead of digits.
It is not documented what the return value is if the reading fails, such as if there happens to be non-numeric bytes in the inpu...
7日 前 | 0
回答済み
Will leftover CPU cores (not used by parfor workers) be used for built-in multithreading?
No, left-over cores will not be automatically used. They will be left for the operating system to run (whatever) on. If you wan...
Will leftover CPU cores (not used by parfor workers) be used for built-in multithreading?
No, left-over cores will not be automatically used. They will be left for the operating system to run (whatever) on. If you wan...
7日 前 | 0
| 採用済み
回答済み
Limitations of MATLAB Compiler SDK Free Trial?
Free trials of MATLAB Compiler SDK are 30 days. However, MATLAB Compiler SDK is not available under a Student license. If I re...
Limitations of MATLAB Compiler SDK Free Trial?
Free trials of MATLAB Compiler SDK are 30 days. However, MATLAB Compiler SDK is not available under a Student license. If I re...
7日 前 | 0
回答済み
Import data to app during simulation
To Workspace only updates when the simulation pauses or stops. There are no blocks that will update variables in the workspac...
Import data to app during simulation
To Workspace only updates when the simulation pauses or stops. There are no blocks that will update variables in the workspac...
8日 前 | 0
| 採用済み
回答済み
How to solve nonlinear equation system with variable inputs?
syms Eta0 i0 syms w [1 3] syms T [1 3] eqn1 = T(2)/T(1) == i0 * power(Eta0, T(1) * (w(1)-w(3))/abs(T(1) * (w(1)-w(3)))); pret...
How to solve nonlinear equation system with variable inputs?
syms Eta0 i0 syms w [1 3] syms T [1 3] eqn1 = T(2)/T(1) == i0 * power(Eta0, T(1) * (w(1)-w(3))/abs(T(1) * (w(1)-w(3)))); pret...
9日 前 | 0
回答済み
too many outputs for ginput - documentation error?
You are not missing anything. The behaviour of returning both X and Y together in one output is undocumented . (It might perha...
too many outputs for ginput - documentation error?
You are not missing anything. The behaviour of returning both X and Y together in one output is undocumented . (It might perha...
9日 前 | 0
| 採用済み