Mitch Lautigar
Followers: 0 Following: 0
Feeds
回答済み
Cannot get a non-singular matrix
Couple comments. Please see my added comments to the code f = @(x) log(exp(x) + 1) + 2 * sin(x); %I'd change "*" to ".*" since ...
Cannot get a non-singular matrix
Couple comments. Please see my added comments to the code f = @(x) log(exp(x) + 1) + 2 * sin(x); %I'd change "*" to ".*" since ...
2年以上 前 | 0
回答済み
How can I dynamically create new structures out of existing ones?
Convert the structure to a table, combine the tables, then convert back to structure. Googling "struct2table" and "table2struct...
How can I dynamically create new structures out of existing ones?
Convert the structure to a table, combine the tables, then convert back to structure. Googling "struct2table" and "table2struct...
2年以上 前 | 0
| 採用済み
回答済み
how to do a 2d plot
You need to use dot indexing since the values passed in will be in an array. Since this looks like a HW problem, I encourage you...
how to do a 2d plot
You need to use dot indexing since the values passed in will be in an array. Since this looks like a HW problem, I encourage you...
2年以上 前 | 0
| 採用済み
回答済み
A (possibly compact) way to find (1) unique rows, when rows have switched elements, (2) rows with switched elements, and (3) indices of rows with switched elements
There isn't a compact way to do this. You will need to build a for loop for each of the conditions you are attempting to do. I'v...
A (possibly compact) way to find (1) unique rows, when rows have switched elements, (2) rows with switched elements, and (3) indices of rows with switched elements
There isn't a compact way to do this. You will need to build a for loop for each of the conditions you are attempting to do. I'v...
2年以上 前 | 0
回答済み
Find linear indices between two matrices
If A and B are the same size, and you are only attempting to find where the values of A is greater than B, use the following log...
Find linear indices between two matrices
If A and B are the same size, and you are only attempting to find where the values of A is greater than B, use the following log...
2年以上 前 | 0
| 採用済み
回答済み
Converting data contained in a cell array (4D-single) into .xls matrix for excel
You should be able to access the data inside of "erspdata" and store it elsewhere. an example of this would be "temp = erspdata(...
Converting data contained in a cell array (4D-single) into .xls matrix for excel
You should be able to access the data inside of "erspdata" and store it elsewhere. an example of this would be "temp = erspdata(...
2年以上 前 | 1
| 採用済み
回答済み
Nested functions in a class - Call the function without including the class name as filename.function
You can put subfunctions/nested functions below the Class call (after the end for classdef) and therefore have local functions f...
Nested functions in a class - Call the function without including the class name as filename.function
You can put subfunctions/nested functions below the Class call (after the end for classdef) and therefore have local functions f...
2年以上 前 | 0
| 採用済み
質問
Loading in Data from large files
Hello everyone, Going to try and explain what i'm trying to do below and I welcome any suggestions the community can provide. ...
2年以上 前 | 0 件の回答 | 0
0
回答回答済み
Extend a cell array of dates (from days only, to hours and days) in a compact way
stack_array = [stack_array;cell(strjoin(cellstr(curr_date),'-',num2str(j)) )]; should be: stack_array = [stack_array; cell(strj...
Extend a cell array of dates (from days only, to hours and days) in a compact way
stack_array = [stack_array;cell(strjoin(cellstr(curr_date),'-',num2str(j)) )]; should be: stack_array = [stack_array; cell(strj...
2年以上 前 | 1
回答済み
Can I control a labview executable with matlab?
MATLAB and LABVIEW are two very distinctly different programs. If you wanted to pass inputs/outputs, you could do that. But havi...
Can I control a labview executable with matlab?
MATLAB and LABVIEW are two very distinctly different programs. If you wanted to pass inputs/outputs, you could do that. But havi...
2年以上 前 | 0
| 採用済み
回答済み
Delete duplicate values from string array
You need to use strcmpi() which will compare strings ignoring case and have it index through each spot of the array to compare t...
Delete duplicate values from string array
You need to use strcmpi() which will compare strings ignoring case and have it index through each spot of the array to compare t...
2年以上 前 | 0
回答済み
Get value of a variable
When you call an edit text box, the user inputs some text which will then save. If it is a popup window you are using, you shoul...
Get value of a variable
When you call an edit text box, the user inputs some text which will then save. If it is a popup window you are using, you shoul...
2年以上 前 | 0
| 採用済み
回答済み
Extend a cell array of dates (from days only, to hours and days) in a compact way
Use for loops. Here's an untested example of what I mean. stack_array = []; for i = 1:length(C) curr_date = C(i); for j ...
Extend a cell array of dates (from days only, to hours and days) in a compact way
Use for loops. Here's an untested example of what I mean. stack_array = []; for i = 1:length(C) curr_date = C(i); for j ...
2年以上 前 | 1
回答済み
How can I select all parts of a vector?
Remove the -1 from your for loop. for ci = 1:numel(bins)-1
How can I select all parts of a vector?
Remove the -1 from your for loop. for ci = 1:numel(bins)-1
2年以上 前 | 0
回答済み
How to create table or matrix from these cell array in MATLAB?
Use a for loop, index through whichever variable you wish and grab each spot of data making sure to convert to double. This woul...
How to create table or matrix from these cell array in MATLAB?
Use a for loop, index through whichever variable you wish and grab each spot of data making sure to convert to double. This woul...
2年以上 前 | 0
回答済み
Conversion to string from struct is not possible.
Couple ways to handle this. I'll explain the top 2. 1 - Pull the data out of the struct. num_data = x.data; str_data = x.tex...
Conversion to string from struct is not possible.
Couple ways to handle this. I'll explain the top 2. 1 - Pull the data out of the struct. num_data = x.data; str_data = x.tex...
2年以上 前 | 0
回答済み
break from a nested for loop
https://www.mathworks.com/help/matlab/ref/continue.html Using Matlabs "continue" command should do what you need.
break from a nested for loop
https://www.mathworks.com/help/matlab/ref/continue.html Using Matlabs "continue" command should do what you need.
2年以上 前 | 0
回答済み
Recognise specific pattern in timetable
After you grab the data, run a simple check to see if the rpm's drastically decrease. This can look something like the following...
Recognise specific pattern in timetable
After you grab the data, run a simple check to see if the rpm's drastically decrease. This can look something like the following...
2年以上 前 | 1
回答済み
How do I decode encrypted data and plot it??
You have a couple different ways to do this. I've listed two below to try and help. Both ways I did it start with the following...
How do I decode encrypted data and plot it??
You have a couple different ways to do this. I've listed two below to try and help. Both ways I did it start with the following...
2年以上 前 | 0
| 採用済み
回答済み
Minimization problem with integral constraint
My suggestion is to use a smaller step size for <a,b,c> if you know what they are. Typically when you are trying to fix the curv...
Minimization problem with integral constraint
My suggestion is to use a smaller step size for <a,b,c> if you know what they are. Typically when you are trying to fix the curv...
2年以上 前 | 1
回答済み
Index in position 1 exceeds array bounds (must not exceed 3) For loop error
The issue you have is that your second for loop is looking in the same indices as your first for loop. Here's my suggestion: in...
Index in position 1 exceeds array bounds (must not exceed 3) For loop error
The issue you have is that your second for loop is looking in the same indices as your first for loop. Here's my suggestion: in...
2年以上 前 | 0
回答済み
Removing specific lines from a .txt file.
As you read this in, you really just need to add in a conditional flag. Specifically, if a "hold" is seen, set a hold_flag to be...
Removing specific lines from a .txt file.
As you read this in, you really just need to add in a conditional flag. Specifically, if a "hold" is seen, set a hold_flag to be...
2年以上 前 | 0
回答済み
Check for a certain variable in a cell filled with different timetables
What you need to do is to index through every timetable. Since data is a structure, you can use fields command to get all of the...
Check for a certain variable in a cell filled with different timetables
What you need to do is to index through every timetable. Since data is a structure, you can use fields command to get all of the...
2年以上 前 | 1
| 採用済み
回答済み
GUI_BUILDING_BUTTONS-NOT_WORKING
Assuming you used guide, dragging a button over to the canvas should populate a button with basic controls. If it's not, then yo...
GUI_BUILDING_BUTTONS-NOT_WORKING
Assuming you used guide, dragging a button over to the canvas should populate a button with basic controls. If it's not, then yo...
2年以上 前 | 0
回答済み
I am trying to simulate a battery discharge test in which I am trying to control a relay switch that's connecting battery to the load using Flow chart
Error 1: "Error in port widths or dimensions. 'Output Port 1' of 'cell_unit_discharge/Chart/temp' is a one dimensional vector wi...
I am trying to simulate a battery discharge test in which I am trying to control a relay switch that's connecting battery to the load using Flow chart
Error 1: "Error in port widths or dimensions. 'Output Port 1' of 'cell_unit_discharge/Chart/temp' is a one dimensional vector wi...
2年以上 前 | 1
| 採用済み
回答済み
Operands to the || and && operators must be convertible to logical scalar values.
riskUserId=[]; %MATLAB is expecting a 1 or 0 for preexisting conditions. IF the values in the table are true/false, use strcmpi...
Operands to the || and && operators must be convertible to logical scalar values.
riskUserId=[]; %MATLAB is expecting a 1 or 0 for preexisting conditions. IF the values in the table are true/false, use strcmpi...
2年以上 前 | 1
回答済み
Fast Fourier Transform function
Couple things i'd like to comment on to try and help you. Please see bullets below. You're original graph is setup correctly, b...
Fast Fourier Transform function
Couple things i'd like to comment on to try and help you. Please see bullets below. You're original graph is setup correctly, b...
2年以上 前 | 1
回答済み
Add phrase to string if condition is true
int i = 4; String[] testString = new String[i]; for (int j = 0; j < i; j++) { testString[j] = String.valueOf("test"+(j+1))...
Add phrase to string if condition is true
int i = 4; String[] testString = new String[i]; for (int j = 0; j < i; j++) { testString[j] = String.valueOf("test"+(j+1))...
2年以上 前 | 0
| 採用済み
回答済み
How can i clear a row or all rows of UItable in AppDesigner?
https://www.mathworks.com/matlabcentral/answers/40789-is-there-a-way-to-delete-a-whole-row-in-a-uitable-by-clicking-a-delete-row...
How can i clear a row or all rows of UItable in AppDesigner?
https://www.mathworks.com/matlabcentral/answers/40789-is-there-a-way-to-delete-a-whole-row-in-a-uitable-by-clicking-a-delete-row...
2年以上 前 | 0
回答済み
Plot Semilog/loglog data missing in plot
I believe the issue you are seeing is that you cannot take the log of a negative number. Since the majority of your data is nega...
Plot Semilog/loglog data missing in plot
I believe the issue you are seeing is that you cannot take the log of a negative number. Since the majority of your data is nega...
2年以上 前 | 0