Community Profile

photo

Inna Pelloso


Last seen: 1 month ago Active since 2020

Statistics

  • Thankful Level 3
  • First Answer

View badges

Content Feed

View by

Question


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...

8 months ago | 1 answer | 0

1

answer

Question


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 ago | 1 answer | 0

1

answer

Question


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...

1 year ago | 1 answer | 0

1

answer

Question


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...

1 year ago | 3 answers | 0

3

answers

Question


Have time object start and stop at a specific time
Hi, I have a timer object, tmr: %%my_timer_test tmr = timer ... ( 'Name' , 'm...

1 year ago | 1 answer | 0

1

answer

Question


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...

1 year ago | 1 answer | 0

1

answer

Question


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...

1 year ago | 2 answers | 0

2

answers

Question


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...

1 year ago | 1 answer | 0

1

answer

Question


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 ...

1 year ago | 1 answer | 0

1

answer

Question


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 ago | 2 answers | 1

2

answers

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 1 answer | 0

1

answer

Question


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...

2 years ago | 1 answer | 0

1

answer

Question


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 ago | 2 answers | 0

2

answers

Question


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...

3 years ago | 1 answer | 0

1

answer

Question


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 ...

3 years ago | 2 answers | 0

2

answers

Question


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...

3 years ago | 1 answer | 0

1

answer

Question


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...

3 years ago | 2 answers | 0

2

answers

Answered
Create index between values
Thank you! Really appreciate it.

3 years ago | 0

Question


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 ...

3 years ago | 2 answers | 0

2

answers