질문


Why is this happening in this code?
I run the code from https://www.mathworks.com/matlabcentral/answers/1646135-downloading-files-from-a-website-with-conditions-on-...

4달 전 | 답변 수: 1 | 0

1

답변

질문


datetime format issue?
As a continuation of a previous question, datelimits = datetime({'20080401', '20080402'}, 'InputFormat', 'yyyyMMdd'); outputs...

4달 전 | 답변 수: 2 | 0

2

답변

질문


datetime to string conversion
I have day = datetime(2008,04,01) with the output day = datetime 01-Apr-2008 I then run string(day) with...

4달 전 | 답변 수: 1 | 0

1

답변

질문


downloading files from a website with conditions on names of files
Question: I work on a website https://www.somecompany.com/xml/. This directory has files whose filename starts with a letter "A...

5달 전 | 답변 수: 1 | 0

1

답변

질문


How to patch upperbound and lowerbound
I read about patch to fill in the confidence interval https://www.mathworks.com/matlabcentral/answers/422522-patch-or-fill-bet...

10달 전 | 답변 수: 1 | 0

1

답변

질문


How can one change the font for graphics to sans serif?
https://www.mathworks.com/matlabcentral/answers/49446-how-can-i-change-the-fontface-of-a-text-within-a-plot shows set(gca, 'F...

11달 전 | 답변 수: 1 | 0

1

답변

질문


How to create a pivot table from this table, Part 2
To generalize https://www.mathworks.com/matlabcentral/answers/898782-how-to-create-a-pivot-table-from-this-table-revised?s_tid=s...

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 2 | 0

2

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 2 | 0

2

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 1 | 1

1

답변

질문


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

11달 전 | 답변 수: 0 | 0

0

답변

질문


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

11달 전 | 답변 수: 1 | 1

1

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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?

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 0 | 0

0

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

11달 전 | 답변 수: 1 | 0

1

답변

질문


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

12달 전 | 답변 수: 0 | 0

0

답변

더로드