Question

Matlab on Jupyter Notebook

I follow https://www.mathworks.com/help/cloudcenter/ug/run-matlab-desktop-in-jupyter.html. I ran python -m pip install jupyter-m...

3 månader ago | 0 answers | 0

Question

How to deal with this grpstat error message

I have an error message https://imgur.com/a/OGCDL4n Please advise the next step.

3 månader ago | 2 answers | 0

Question

Can one use retime function to calculate mean and sum of the same variable?

Suppose I have a timetable Visitors January 1 10 January 3 20 ...

3 månader ago | 0 answers | 0

Question

Error message when trying to install 2021b

I got a following error message when trying to install 2021b on a Window 10 PC. https://imgur.com/a/PPBwBPW Please advise the...

3 månader ago | 0 answers | 0

Question

The desktop configuration file is corrupt ....

I have an error message "Warning: The desktop configuration file is corrupt or improperly formatted. Problem parsing Desktop re...

3 månader ago | 0 answers | 0

Question

Merge data from multiple XML files, Part 2

I have multiple xml files to merge into one excel (or csv or other) formats that can be procesed with Matlab. I asked this quest...

5 månader ago | 1 answer | 0

Question

Can one convert a Livescript file to a Jupyter file?

Livescript creates mlx file. Can one convert it to ipynbe file to be read at Jupyter notebook?

5 månader ago | 0 answers | 0

Question

why does websave creates empty files?

I run baseurl = "https://www.sonecompany.com/xml/"; datelimits = datetime({'20080401', '20080601'}, 'InputFormat', 'yyyyMMdd'...

5 månader ago | 1 answer | 0

Question

how can one specify a directory that websave saves files?

I want to specify a directory that websave saves files. I checked https://www.mathworks.com/help/matlab/ref/websave.html. https:...

5 månader ago | 1 answer | 0

Question

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

5 månader ago | 1 answer | 0

Question

datetime format issue?

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

5 månader ago | 2 answers | 0

Question

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

5 månader ago | 1 answer | 0

Question

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

6 månader ago | 1 answer | 0

Question

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

12 månader ago | 1 answer | 0

Question

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

12 månader ago | 1 answer | 0

Question

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

12 månader ago | 1 answer | 0

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

12 månader ago | 2 answers | 0

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

12 månader ago | 1 answer | 0

Question

How can one write a condition datetime is not NaT?

How can one write a condition datetime is not NaT?

12 månader ago | 1 answer | 0

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

12 månader ago | 1 answer | 0

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

12 månader ago | 1 answer | 0

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

ungefär ett år ago | 1 answer | 0

Question

How to create a pivot table from this table (revised)

Suppose I have a table T location gender ----------------------------------------------...

ungefär ett år ago | 2 answers | 0

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

ungefär ett år ago | 1 answer | 0

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

ungefär ett år ago | 1 answer | 0

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

ungefär ett år ago | 1 answer | 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...

ungefär ett år ago | 0 answers | 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...

ungefär ett år ago | 1 answer | 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-...

ungefär ett år ago | 1 answer | 0

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

ungefär ett år ago | 1 answer | 0