統計
All
Content Feed
回答済み
How to make MATLAB always start with the previous directory when using the menu?
Yes, as long as you start MATLAB from a shortcut icon on your desktop, you can set the "Initial Working Folder" setting in the P...
How to make MATLAB always start with the previous directory when using the menu?
Yes, as long as you start MATLAB from a shortcut icon on your desktop, you can set the "Initial Working Folder" setting in the P...
約1ヶ月 前 | 0
| 採用済み
回答済み
Bandpass Filter Command Question
You need to use brackets, not parentheses: y = rand(200,1); Fs = 100; % Sampling rate, e.g., 100 Hz d = bandpass(y, [1,30], F...
Bandpass Filter Command Question
You need to use brackets, not parentheses: y = rand(200,1); Fs = 100; % Sampling rate, e.g., 100 Hz d = bandpass(y, [1,30], F...
約2ヶ月 前 | 0
| 採用済み
回答済み
Is there a function like movsum which simply gets the values in a given sliding window rather than summing them?
If you have access to the Predictive Maintenance Toolbox, you can use the phaseSpaceReconstruction command: x = [1 2 3 4 5 6 7 ...
Is there a function like movsum which simply gets the values in a given sliding window rather than summing them?
If you have access to the Predictive Maintenance Toolbox, you can use the phaseSpaceReconstruction command: x = [1 2 3 4 5 6 7 ...
約2ヶ月 前 | 0
回答済み
how to print datetime in fprintf
You can convert datenum data to datetime data and set its format to the one you desire: d = datenum(2023, 4, 13); dt = datetim...
how to print datetime in fprintf
You can convert datenum data to datetime data and set its format to the one you desire: d = datenum(2023, 4, 13); dt = datetim...
約2ヶ月 前 | 0
回答済み
Error Brace indexing is not supported
Your imageFileNames variable is not a cell array, so you cannot use brace indexing with it. It is a long char array with words s...
Error Brace indexing is not supported
Your imageFileNames variable is not a cell array, so you cannot use brace indexing with it. It is a long char array with words s...
2ヶ月 前 | 0
回答済み
Plotting x-axis time in dd hh mm ss format
You can use the datetime data type for the x-axis values and adjust the date/time format as you like: now = datetime; x = now ...
Plotting x-axis time in dd hh mm ss format
You can use the datetime data type for the x-axis values and adjust the date/time format as you like: now = datetime; x = now ...
2ヶ月 前 | 0
| 採用済み
回答済み
Matlab get transfer function from Simulink
Yes. It is called linearization. If you have access to the Control System Toolbox and/or Simulink Control Design, you can use li...
Matlab get transfer function from Simulink
Yes. It is called linearization. If you have access to the Control System Toolbox and/or Simulink Control Design, you can use li...
2ヶ月 前 | 0
回答済み
Stepinfo for time delayed systems
s = tf('s'); G = (1/(s+1))*exp(-2*s) % Step response information step(G) stepinfo(G) % Time delay of the system G.Inpu...
Stepinfo for time delayed systems
s = tf('s'); G = (1/(s+1))*exp(-2*s) % Step response information step(G) stepinfo(G) % Time delay of the system G.Inpu...
2ヶ月 前 | 1
| 採用済み
回答済み
The lyapunovExponent function in the Predictive Maintenance Toolbox gives incorrect result when the input signal has angular frequency a multiple of \pi
When the signal is periodic, with no noise, the nearest neighbor of each data point in the signal on the phase plane will be ess...
The lyapunovExponent function in the Predictive Maintenance Toolbox gives incorrect result when the input signal has angular frequency a multiple of \pi
When the signal is periodic, with no noise, the nearest neighbor of each data point in the signal on the phase plane will be ess...
3ヶ月 前 | 1
| 採用済み
回答済み
Matlab built-in function not identified
coefTest is not a "function". It is a "method" of the LinearModel object/class. So, in order to call it, you need to create a li...
Matlab built-in function not identified
coefTest is not a "function". It is a "method" of the LinearModel object/class. So, in order to call it, you need to create a li...
4ヶ月 前 | 0
回答済み
I am confused about why my code doesn't lead to a fitting result.
If you print out the exception inside the catch block, it will tell you what the error is. catch ME ME fprintf('...
I am confused about why my code doesn't lead to a fitting result.
If you print out the exception inside the catch block, it will tell you what the error is. catch ME ME fprintf('...
4ヶ月 前 | 1
回答済み
Argument to dynamic structure reference must evaluate to a valid field name Error occurs when using properties
Looks like you might be trying to access the content of RTD before populating its cells with the right table content first. % T...
Argument to dynamic structure reference must evaluate to a valid field name Error occurs when using properties
Looks like you might be trying to access the content of RTD before populating its cells with the right table content first. % T...
4ヶ月 前 | 0
回答済み
How do I know the length from the center of the object to the vertical axis edge and the horizontal axis edge?
You can do something along these lines, where the location of the centroids seems like what you want: I = imread('image.jpeg');...
How do I know the length from the center of the object to the vertical axis edge and the horizontal axis edge?
You can do something along these lines, where the location of the centroids seems like what you want: I = imread('image.jpeg');...
4ヶ月 前 | 0
回答済み
How can I save figures when created in a loop?
Use the saveas command to store the figure in a folder. If the folder is not there, you can use the mkdir command to create the ...
How can I save figures when created in a loop?
Use the saveas command to store the figure in a folder. If the folder is not there, you can use the mkdir command to create the ...
4ヶ月 前 | 0
回答済み
Create non-visible message dialog box
One option is to not create all four dialog at once. Just create the dialog that needs to be visible at the time and store its h...
Create non-visible message dialog box
One option is to not create all four dialog at once. Just create the dialog that needs to be visible at the time and store its h...
4ヶ月 前 | 0
回答済み
How to clear workspace from a function?
Functions do not keep their variables across calls to them unless a variable is specifically defined in the function using the "...
How to clear workspace from a function?
Functions do not keep their variables across calls to them unless a variable is specifically defined in the function using the "...
5ヶ月 前 | 1
| 採用済み
回答済み
Comparing two curve fits (using AIC?)
The lsqcurvefit returns the residual norm of the fit. The model that has the least residual norm would be the "best" one by this...
Comparing two curve fits (using AIC?)
The lsqcurvefit returns the residual norm of the fit. The model that has the least residual norm would be the "best" one by this...
5ヶ月 前 | 0
回答済み
Multiply structure by a constant
You have to cycle through the individual fields of the structure: s = struct('a', [1 2 3 4], 'b', -1) for f = fieldnames(s)' ...
Multiply structure by a constant
You have to cycle through the individual fields of the structure: s = struct('a', [1 2 3 4], 'b', -1) for f = fieldnames(s)' ...
5ヶ月 前 | 0
回答済み
Plotting date and time
tdata = { ... '04/07/2022 18:00', ... '05/08/2022 19:30', ... '06/08/2022 11:30' }; ydata = [10, 20, 15]...
Plotting date and time
tdata = { ... '04/07/2022 18:00', ... '05/08/2022 19:30', ... '06/08/2022 11:30' }; ydata = [10, 20, 15]...
5ヶ月 前 | 0
回答済み
closest value to zero excluding the first one?
load('var.mat') [~,I] = sort(abs(dis_y), 'ascend'); % Closest value to 0: dis_y(I(1)) % Second closest value to 0: dis_...
closest value to zero excluding the first one?
load('var.mat') [~,I] = sort(abs(dis_y), 'ascend'); % Closest value to 0: dis_y(I(1)) % Second closest value to 0: dis_...
5ヶ月 前 | 0
回答済み
I am getting the message "execution of script matlabtb as a function not supported"
See the note in the documentation page: https://www.mathworks.com/help/hdlverifier/ref/matlabtb.html "Enter this command in the...
I am getting the message "execution of script matlabtb as a function not supported"
See the note in the documentation page: https://www.mathworks.com/help/hdlverifier/ref/matlabtb.html "Enter this command in the...
5ヶ月 前 | 0
| 採用済み
回答済み
How to arrange input fields straight below each other using inputsdlg?
You won't get perfect alignment, but you can pad the prompt strings with empty spaces: prompt = {... 'ParticipantID'; ... ...
How to arrange input fields straight below each other using inputsdlg?
You won't get perfect alignment, but you can pad the prompt strings with empty spaces: prompt = {... 'ParticipantID'; ... ...
5ヶ月 前 | 0
| 採用済み
回答済み
Unable to read data from text file in matlab
The file your are looking for is probably not there, or at least, not on the MATLAB path. See what fid is: if it is -1, then you...
Unable to read data from text file in matlab
The file your are looking for is probably not there, or at least, not on the MATLAB path. See what fid is: if it is -1, then you...
5ヶ月 前 | 0
回答済み
Why doesn't the for loop work?
p = isprime(p) gives you a logical vector, similar to p = [true true false true] When you try to assign i to p(i) it converts ...
Why doesn't the for loop work?
p = isprime(p) gives you a logical vector, similar to p = [true true false true] When you try to assign i to p(i) it converts ...
5ヶ月 前 | 0
回答済み
Error: Not enough input arguments
There are probably other array concatenation issues in your equation definitions, but regarding your current issue, remove the c...
Error: Not enough input arguments
There are probably other array concatenation issues in your equation definitions, but regarding your current issue, remove the c...
5ヶ月 前 | 0
回答済み
How to input corresponding data from separate matrices
A = [1 2 3 4 5 6 7 8 9 10]'; B = [ 2 3 1 7 9 10 4 6 5 8; 12 43 64 94 27 58 64 13 90 74]'; % Iterate over every element of A ...
How to input corresponding data from separate matrices
A = [1 2 3 4 5 6 7 8 9 10]'; B = [ 2 3 1 7 9 10 4 6 5 8; 12 43 64 94 27 58 64 13 90 74]'; % Iterate over every element of A ...
5ヶ月 前 | 0
回答済み
Add one year to date
You can use the datetime and years commands to do what you want: date = '2022-01-05'; d = datetime(date) d1 = d + years(1) s...
Add one year to date
You can use the datetime and years commands to do what you want: date = '2022-01-05'; d = datetime(date) d1 = d + years(1) s...
5ヶ月 前 | 0
| 採用済み
回答済み
How to pad zero in string using sprintf
This should work on both char arrays as well as strings: a = { '1010' '111' '010' '10' '101...
How to pad zero in string using sprintf
This should work on both char arrays as well as strings: a = { '1010' '111' '010' '10' '101...
5ヶ月 前 | 2
回答済み
How to implement a transfer function with variable coefficients?
The top part of your first diagram does not implement 1/(b+s). To confirm this, label the output of the top sum block as e. The...
How to implement a transfer function with variable coefficients?
The top part of your first diagram does not implement 1/(b+s). To confirm this, label the output of the top sum block as e. The...
5ヶ月 前 | 0