Community Profile # alpedhuez

Last seen: ungefär 2 månader ago Active since 2017

#### Statistics

• #### Content Feed

View by

Question

How to patch upperbound and lowerbound

### 1

Question

How can one change the font for graphics to sans serif?

### 1

Question

How to create a pivot table from this table, Part 2

### 1

Question

How does one display the fit line in this plot in this situation?
I have a timetable T with T.date T.vistors T.sales ---------------------------------------- I draw a plot yyaxis left plo...

### 2

Question

How does one use bookmark feature in Livescript?
https://www.mathworks.com/products/matlab/whatsnew.html says " Live Editor Bookmarks: Navigate quickly between lines (R2021a)" ...

### 1

Question

How can one write a condition datetime is not NaT?
How can one write a condition datetime is not NaT?

### 1

Question

Display first columns and rows of a table
Function head displays "Get top rows of table, timetable, or tall array." https://www.mathworks.com/help/matlab/ref/table.head....

### 1

Question

How can one create a timetable with one column (all 1) with beginning date and end date?
I want to create a timetable T that begins on 1/2/2020 till 5/15/2020. How can one get started? https://www.mathworks.com/help...

### 1

Question

remove variables except for prespecified variables from a table
Suppose I have a table T with the set of variables Date Location Visitors Purchases Item1 Item2 Item3 ... I just want to keep...

### 1

Question

How to create a pivot table from this table (revised)
Suppose I have a table T location gender ----------------------------------------------...

### 2

Question

Loop over a list of variables indexed by numbers
Suppose I have a table Day1Vistors Day1Sales Day2Visitors Day2Sales NY 10 100 15 45 SF ...

### 1

Question

Reshaping a table with date and characteristics in rows
Suppose I start with the table date age18-24 age 25-34 1/1/2021 10 10 1/2/2021 20 30 Then want to generate a table group...

### 1

Question

Adjust the vertical and horizontal alignment of the label of xline function
xline function is nice. There is an example of "Adjust the vertical and horizontal alignment of the label" at https://www.math...

### 1

Question

print command print only part of the graph
I did a plot and Matlab displays a plot correctly. Then I run print(gcf, '-dtiff', 'abc.tiff','-r300'); The resulting tiff f...

### 0

Question

When is the renamevars function introduced?
I use MATLAB Version: 9.7.0.1190202 (R2019b) and got "error using eval. unrecognized function or variable 'renamevars'. Can it b...

### 1

Question

do not figure out errors in xlim
z1=datenum(T.Date(1,:)) z2=datenum(T.Date(height(T.Date),:)) xlim([z1 z2]) Error using xlim (line 31) Limits must be a 2-...

### 1

Question

How can one specify the color of comparison bar chart?
Suppose I have bin_age = ['test', 2]; vals = [ 1 1; 2 2]; b = bar(vals) newXticklabel = {'young', 'old'} set(gca,'XtickLa...

### 1

Question

How can one draw a plot of this table?
Suppose I have table T date visiors sales 1/1/2021 3 100 1/2/2021 5 120 I...

### 1

Question

How can one reshape this table?
Consider a table T with group date visitor age 18-24 1/1/2021 10 age 18-24 1/2/2021 20 age 25-34 1/1/202...

### 1

Question

how to run multiple number of regressions?
I have table T with Date Location Sales Visitors 1/1 NY 10 5 1/1 LA 7 3 1/2 NY 9 5 1/2 LA 4 1 Then I want to run regressi...

### 1

Question

Can one get fitted value without going to predict?
I have a regression mdl=fitlm(X,Y) How can one obtain the fitted value of the regression without going for predict?

### 1

Question

Sort timetable in the ascending order of dates
I have timetable T that says date visitor 1/2 5 1/1 6 How can one have date visitor 1/1 6 1/2 5 That is, s...

### 0

Question

How to sum up over dates?
I have table with T date location sales -------------------- 1/1 NY 100 1/2 NY 105 1/1 LA 70 1/2 LA 90 I want to su...

### 1

Question

normalize the vector by taking the difference from the first element
Suppose I have a vector T 1 2 3 Then I want to normallize T by taking the difference from the first element T1 0 (=1-1) ...

### 1

Question

run regression, change the value of x and calculate how y changes, and then plot both
(Revised) Suppose I have a table T y x1 x2 10 3 4 7 2 3 5 1 2 run a regression mdl =fitlm([T.X1, T.X2],T.y) Th...

### 1

Question

Is there any way to output the statistical outcome in latex?
It seems that R has a package that allows to create a latex output of statistical outcome https://cran.r-project.org/web/packag...

### 0

Question

Is it possible for Matlab to access files in Github?
I would like to know whether it is possible for Matlab to access m files in Github and run them.

### 1

Question

how to define a variable with dates
I want to define a variable "NYC" that will take a value for each day of 1/1/2021 to 3/31/2021. How can one do this?

### 1

Question

Does not properly read csv file
I try to read the attached csv file using readtable. But the data does not seem to be read. What can be done?