Inna Pelloso
Followers: 0 Following: 0
Feeds
提问
Parse variable in a table
Hi, I have a variable in a table, timestamp, in the following format: 2023-02-24 13:00:00 How can I parse this variable i...
1 year 前 | 1 个回答 | 0
1
个回答提问
Find position of specific digit in a number
Hi, I have A = [123; 312]. How can I find the position of the digit 3 in each element of A? That is, I want B = [3; 1]. Any he...
1 year 前 | 1 个回答 | 0
1
个回答提问
Add suffix to name of all variables in workspace
Hi, Is there a way to add a suffix to the end of the names of every variable in the work space? (i.e. i have variables a,b, and...
2 years 前 | 1 个回答 | 0
1
个回答提问
Shutdown at specific time
Hi, What is the best way to make Matlab shutdown at a specific time? I am running a timer object, tmr, and want to exit matlab...
2 years 前 | 3 个回答 | 0
3
个回答提问
Have time object start and stop at a specific time
Hi, I have a timer object, tmr: %%my_timer_test tmr = timer ... ( 'Name' , 'm...
2 years 前 | 1 个回答 | 0
1
个回答提问
Parsing variable in table
Hi, I have a 3x1 table, with one variable, timestamp: timestamp 2021-02-01 09:00:00 2021-02-01 09:01:0...
2 years 前 | 1 个回答 | 0
1
个回答提问
Split matrix into N Equal Parts by rows
Hi, I have an Nx10 matrix. How can I split this into three equally sized matrices (by number of rows) ? Is this something the r...
2 years 前 | 3 个回答 | 0
3
个回答提问
Code Generation for Prediction of Machine Learning Model
Hi, I have auto-generated C++ code using Matlab Coder for a machine learning model, that has a 1x27 double as input. Is there a...
2 years 前 | 1 个回答 | 0
1
个回答提问
Last value of Moving Average in single command
Hi, I have A = rand(10,1). I am calculating an exponential moving average, B = movavg(A,'exponential',2). I only want the last ...
2 years 前 | 1 个回答 | 0
1
个回答提问
Setting up linear optimization problem
Hi, I have two 100x1 arrays, X and Y. How do I set this linear problem to run using the optimization toolbox solver? I want to...
2 years 前 | 2 个回答 | 1
2
个回答提问
fitcensemble optimize hyperparameters without showing plots
Hi, I am fitting an ensemble of learners for classification, and optimizing the hyperparamers (using the 'auto' selection): f...
2 years 前 | 1 个回答 | 0
1
个回答提问
Indexing matrix from array
Hi, I have A = [1:3; 4:6; 7:9] and an index B = [1;0;1]. How can I extract from each column of A the values at are equal to 1 ...
2 years 前 | 1 个回答 | 0
1
个回答提问
Select table data by Date
Hi, I have a table, where the frist column is the date, and second column is a variable. ''2021-Jan-04'' -0.1581 ''2021-Jan...
3 years 前 | 1 个回答 | 0
1
个回答提问
Creating index and replacing values
Hi, I have A = [0 0 1 0 1 0 0], and B = [ "030121", "030221", "030321"] I want to create C = [ "030121", "030121", "030...
3 years 前 | 2 个回答 | 0
2
个回答提问
Position of element in a row
Hi, I have a 3 x 2 matrix, A: A = [1 2 3; 3 5 4] How can I find the position of the number 3 in each row? I want to create B...
4 years 前 | 1 个回答 | 0
1
个回答提问
Logical Indexing via multiplication
Hi, I have a 3 x 3 matrix, B = [ 1 2 3; 4 5 6; 7 8 9 ] I have a matrix, A = [ 0 1 0 ]'. How can I extract only the middle ...
4 years 前 | 2 个回答 | 0
2
个回答提问
Extracting every nth and (n+1)th element
Hi, I have A = (1:101). How can I extract every nth and (n+1)th element? For example, if n = 10, I want reate B = [10, 11, 20...
4 years 前 | 1 个回答 | 0
1
个回答提问
Find all occuarances of two numbers together
Hi, I have an array, a = [ 0 -1 1 0 0 -1 1 0] How can I fing all the ocurances of [ 1 0], ie. the index showing when the numbe...
4 years 前 | 2 个回答 | 0
2
个回答提问
Create index between values
Hi, I have a 5 x 1 array, a = [ 0 1 0 2 0]. (this is a generalization of a larger problem) I want create and index that fills ...
4 years 前 | 2 个回答 | 0