統計
All
Feeds
回答済み
What license I need to freelance?
See Pricing and Licensing and MATLAB and Simulink for Startups and MATLAB and Simulink for Startups Request Form These links sa...
What license I need to freelance?
See Pricing and Licensing and MATLAB and Simulink for Startups and MATLAB and Simulink for Startups Request Form These links sa...
1年以上 前 | 0
回答済み
Help increasing the speed of a piece of code
"I need to do the other steps". Removing NaN before calculating the mean cuts the elapse time in half (on my PC with R2018b) ti...
Help increasing the speed of a piece of code
"I need to do the other steps". Removing NaN before calculating the mean cuts the elapse time in half (on my PC with R2018b) ti...
1年以上 前 | 0
回答済み
How to ensure that onCleanup destroys last
How to avoid this error? Warning: The following error was caught while executing 'dlnode' class destructor: Method 'delete' is...
How to ensure that onCleanup destroys last
How to avoid this error? Warning: The following error was caught while executing 'dlnode' class destructor: Method 'delete' is...
1年以上 前 | 0
回答済み
"ismethod" on restricted methods
This works function flag = CheckForMethod1(anotherClass) mc = metaclass( anotherClass ); flag = ismember( 'method1', ...
"ismethod" on restricted methods
This works function flag = CheckForMethod1(anotherClass) mc = metaclass( anotherClass ); flag = ismember( 'method1', ...
1年以上 前 | 1
回答済み
Property assignment is not allowed when the object is empty. Use subscripted assignment to create an array element.
Always include the full error message in the your question. I don't have the data acquisition toolbox. However, the error mess...
Property assignment is not allowed when the object is empty. Use subscripted assignment to create an array element.
Always include the full error message in the your question. I don't have the data acquisition toolbox. However, the error mess...
約2年 前 | 0
回答済み
How can I programmatically change all my matlab code to use "datetime" rather than "datestr(now)" ?
By mistake, I answer the general question: "Can I do this [replace datestr by datetime] programatically?". IMHO: It cannot be...
How can I programmatically change all my matlab code to use "datetime" rather than "datestr(now)" ?
By mistake, I answer the general question: "Can I do this [replace datestr by datetime] programatically?". IMHO: It cannot be...
約2年 前 | 0
| 採用済み
回答済み
Which MATLAB GUI framework to use?
Caveats: I have not used the new GUI framework in any serious way Yes “it depends”. This answer suggests how I would approach...
Which MATLAB GUI framework to use?
Caveats: I have not used the new GUI framework in any serious way Yes “it depends”. This answer suggests how I would approach...
約2年 前 | 0
| 採用済み
回答済み
Data extraction from txt file with changing number of columns
The file All-In-19-QUICK_EVAL.txt contains 73 sections. Each section starts with two consequtive empty rows followed by in th...
Data extraction from txt file with changing number of columns
The file All-In-19-QUICK_EVAL.txt contains 73 sections. Each section starts with two consequtive empty rows followed by in th...
約2年 前 | 0
回答済み
Compare table variables with input list and replace missing vars with NA
This should work with 2017b. %% fid = fopen( 'output.csv', 'rt' ); output_csv = textscan( fid, '%s%*f', 'Headerlines',1...
Compare table variables with input list and replace missing vars with NA
This should work with 2017b. %% fid = fopen( 'output.csv', 'rt' ); output_csv = textscan( fid, '%s%*f', 'Headerlines',1...
2年以上 前 | 0
質問
How to find a user based on full name and eight digit number
Background: I promised to answer a question and asked the user to include a "reference" to my name - like . We used the Communit...
2年以上 前 | 1 件の回答 | 0
1
回答回答済み
Extract data from csv with header ond footer
I've replaced "data" in your file by "3.14" and I've skipped the the two column header lines, because they are weird. Here is...
Extract data from csv with header ond footer
I've replaced "data" in your file by "3.14" and I've skipped the the two column header lines, because they are weird. Here is...
2年以上 前 | 0
| 採用済み
回答済み
Find pattern in vector while ignoring/skipping certain indices
I assume it's a vector of integers. Steve Amphlett showed this trick at comp.soft-sys.matlab twenty years ago. %% Create sa...
Find pattern in vector while ignoring/skipping certain indices
I assume it's a vector of integers. Steve Amphlett showed this trick at comp.soft-sys.matlab twenty years ago. %% Create sa...
2年以上 前 | 0
回答済み
How to use extractBetween command?
startStr and endStr must be in the same row (i.e. in a contiguous sequence of characters). %% chr = fileread('input.txt'); m...
How to use extractBetween command?
startStr and endStr must be in the same row (i.e. in a contiguous sequence of characters). %% chr = fileread('input.txt'); m...
2年以上 前 | 0
| 採用済み
回答済み
Changing the content of an object that is contained with an array of objects
The behavior you see is the way Matlab is designed to work. See Properties Containing Objects and Property Default Values. The k...
Changing the content of an object that is contained with an array of objects
The behavior you see is the way Matlab is designed to work. See Properties Containing Objects and Property Default Values. The k...
2年以上 前 | 0
回答済み
Is it possible to rename columns in a table?
You can rename the variables in a table by using either the "Properties.VariableNames" property or the "renamevars" function. (I...
Is it possible to rename columns in a table?
You can rename the variables in a table by using either the "Properties.VariableNames" property or the "renamevars" function. (I...
2年以上 前 | 39
| 採用済み
回答済み
Separating data into one-second intervals, and finding the maximum data in each interval
%% load data num = load('Green6000X.csv'); %% split data into chunks of one second N = ceil( num(end,1) ); chunk = cell( ...
Separating data into one-second intervals, and finding the maximum data in each interval
%% load data num = load('Green6000X.csv'); %% split data into chunks of one second N = ceil( num(end,1) ); chunk = cell( ...
2年以上 前 | 0
| 採用済み
回答済み
Extract files with the same names in subfolders and save them into a new folder with a different name
%% myFolder = 'current folder path'; filePattern = fullfile(myFolder,'**','*.png'); theFiles = dir(filePattern); numFiles ...
Extract files with the same names in subfolders and save them into a new folder with a different name
%% myFolder = 'current folder path'; filePattern = fullfile(myFolder,'**','*.png'); theFiles = dir(filePattern); numFiles ...
2年以上 前 | 0
| 採用済み
回答済み
comparison of two column vectors
An example %% v1 = rand( 6,1 ); v2 = rand( 6,1 ); %% v1 > v2 This result tells us that the first, fourth, fifth and sixth ...
comparison of two column vectors
An example %% v1 = rand( 6,1 ); v2 = rand( 6,1 ); %% v1 > v2 This result tells us that the first, fourth, fifth and sixth ...
2年以上 前 | 0
回答済み
How to set the value of a variable in one function from another?
Modify the function so that f1 takes n as an input argument function [n,x,y] = f1( n ) n; //code that does stuff with n end ...
How to set the value of a variable in one function from another?
Modify the function so that f1 takes n as an input argument function [n,x,y] = f1( n ) n; //code that does stuff with n end ...
2年以上 前 | 0
| 採用済み
回答済み
Error with readtable function
I assume that the entire text file and the result fits in your RAM. "huge" means different things to different people. This fun...
Error with readtable function
I assume that the entire text file and the result fits in your RAM. "huge" means different things to different people. This fun...
2年以上 前 | 0
| 採用済み
回答済み
How to delete the words/characters from a .txt file?
Another way. See documentation on textscan(), formatSpec — Format of the data fields fid = fopen( 'loadcell_data.txt' ); cac ...
How to delete the words/characters from a .txt file?
Another way. See documentation on textscan(), formatSpec — Format of the data fields fid = fopen( 'loadcell_data.txt' ); cac ...
2年以上 前 | 2
回答済み
How do you vertically concatenate the rows of a cell array consisting of vectors of numbers?
Example m = magic(3); m = [m,m,m]; cac = num2cell(m); % sample data arrayfun( @(ix) vertcat(cac{:,ix}), [1:9], 'uni',false ...
How do you vertically concatenate the rows of a cell array consisting of vectors of numbers?
Example m = magic(3); m = [m,m,m]; cac = num2cell(m); % sample data arrayfun( @(ix) vertcat(cac{:,ix}), [1:9], 'uni',false ...
2年以上 前 | 0
| 採用済み
回答済み
Help with the below error
Example A = 17; % A is a scalar A(2) % there is no element with index 2
Help with the below error
Example A = 17; % A is a scalar A(2) % there is no element with index 2
2年以上 前 | 1
| 採用済み
回答済み
[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
I noticed a minor issue with hyperlink. Clicking the link (marked with yellow below) in my Content Feed takes me to the wrong ...
[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
I noticed a minor issue with hyperlink. Clicking the link (marked with yellow below) in my Content Feed takes me to the wrong ...
2年以上 前 | 0
回答済み
Why do I get invalid expression error for this piece of code?
Missing comma and a semicolon % disp(['The number of days between bdate,'and, 'edate'; leapyr]); % % ...
Why do I get invalid expression error for this piece of code?
Missing comma and a semicolon % disp(['The number of days between bdate,'and, 'edate'; leapyr]); % % ...
2年以上 前 | 1
回答済み
How to subtract contents of cells in cell array?
The problem is that baskets_xyz is a cell array of cell arrays. Your cellfun statements requires a cell array of double (numeric...
How to subtract contents of cells in cell array?
The problem is that baskets_xyz is a cell array of cell arrays. Your cellfun statements requires a cell array of double (numeric...
2年以上 前 | 0
| 採用済み
回答済み
Class : Error while assigning variables in constructor
How did you call the constructor? I added a few line to make your code a syntactically correct class. And tested the constructo...
Class : Error while assigning variables in constructor
How did you call the constructor? I added a few line to make your code a syntactically correct class. And tested the constructo...
2年以上 前 | 0
回答済み
How to add header to cell matrix
No, however that depends on what you require from the "header". Is this useful? If not see table - Table array with named variab...
How to add header to cell matrix
No, however that depends on what you require from the "header". Is this useful? If not see table - Table array with named variab...
2年以上 前 | 0
| 採用済み
回答済み
[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
A minor issue By mistake I accepted an old question of mine. I realized my mistake an unaccepted the question. However, in my "...
[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
A minor issue By mistake I accepted an old question of mine. I realized my mistake an unaccepted the question. However, in my "...
2年以上 前 | 1
回答済み
Class method is 'call by value' function, isn't it?
See Comparison of Handle and Value Classes. Your myClass is a value class. "It tells me that first input arg must be instance...
Class method is 'call by value' function, isn't it?
See Comparison of Handle and Value Classes. Your myClass is a value class. "It tells me that first input arg must be instance...
2年以上 前 | 0