Unable to use CTRL+R to comment
Open the Preferences using the button in the Enviroment section on the Home tab of the Toolstrip. In the MATLAB section of the p...

9 giorni ago | 0

I'm not on the MATLAB Online team but I see in the Application Status page that there was an issue around noon that caused some ...

9 giorni ago | 0

| accepted

Setting Limits to end of table Variable
Use bounds and/or min and max on your time data to find the tight bounds and use those with xlim to adjust the limits.

9 giorni ago | 0

Simplifying a matematical expression
After inserting it into Answers using the sigma button on the toolstrip: Honestly, I wouldn't enter this as one term. As you ...

9 giorni ago | 1

How can i vectorize a matrix multiplication of higher dimension arrays?
If you're using release R2020b or later, take a look at the pagemtimes function introduced in that release.

9 giorni ago | 1

How to multiply N matrices without a FOR loop? (Slices of 3D array)
If you're using release R2020b or later, take a look at the pagemtimes function introduced in that release.

9 giorni ago | 0

Matching string from multiple arrays
If you have your data stored in timetable arrays, call synchronize with your three timetable arrays as input and specify the new...

9 giorni ago | 0

Table manipulation for saving variables
Here's a small example you could use as a model: T = array2table(magic(3)) % T is a 3-by-3 T(4, :) = {10, 11, 12} % T is now a...

9 giorni ago | 0

| accepted

How to enter a function into MATLAB
Is your calculator computing the cosine of angles in degrees (which in MATLAB is the cosd function) or in radians (cos)?

9 giorni ago | 0

Operations Research formulation in MATLAB
Looking at the code you posted as a comment I have a couple of observations and suggestions. The Queen's MATLAB was only an Apr...

9 giorni ago | 0

How can I multiply N dimensional matrices
See the pagemtimes function introduced in release R2020b.

9 giorni ago | 0

How can I check if a value in one array is in between two values in another array?
You want to discretize your data? edges = 0:2:10; sampleData = 10*rand(10, 1); whichBin = discretize(sampleData, edges); lef...

10 giorni ago | 0

MATLAB bug for plotting? Overlap between the x-ticks and the number labels: when using inverted y-axis and logarithmic x-axis.
When I run the code in the Description section of bug report 1832634 I see the same type of problem as in your reproduction step...

10 giorni ago | 1

My matlab R2020a cannot display 1 and 4 in the console and script
That is unusual, I don't think I've seen that behavior before. From your picture it looks like MATLAB can display the number 1 i...

10 giorni ago | 0

Creating legend based on numeric array
If you're using a newer release of MATLAB, I'd use a string array to create the legend. N = [1 7 14 30 90 180 360]; x = linspa...

10 giorni ago | 0

letting an object name itself
With the clarifications you gave I now have enough information to make some suggestions that may resolve the question, so I'm ma...

10 giorni ago | 1

| accepted

Error creating matrix using a integer and vector in Matlab
madhan ravi has told you how to do this but I want to explain why your original approach didn't work. If x is a column vector w...

10 giorni ago | 0

Index _Problem and for loop ??
Count your parentheses. If you start a counter at 0, add 1 to the counter every time you see a (, and subtract 1 from the counte...

11 giorni ago | 2

How do I increment "I" more than once in more than one range in a single for loop? Basically combine all for loops into a single loop with different "I" values.
for k = [1:9 10:10:90 100:100:1000] fprintf("The current value of k is " + k + newline) end

11 giorni ago | 0

The end operator must be used within an array index expression
The identifiers shot (all lower-case) and Shot (first letter capitalized) are two different things in MATLAB. Did you mean to in...

11 giorni ago | 0

| accepted

Remove legend from patches in Matlab
Specify the handles of the objects that you want to see in the legend when you create it. x = 0:360; axis([0 360 -1 1]) hold ...

11 giorni ago | 0

Why the results are different every time using the code of Nonnegative matrix factorization ?
From the documentation page for the nnmf function: "The factorization uses an iterative method starting with random initial valu...

11 giorni ago | 0

Plot shows no line, only markers
Do your time and/or data vectors contain NaN values? any(isnan(time1)) any(isnan(time2)) any(isnan(data1)) any(isnan(data2))...

12 giorni ago | 0

Worldwide statistics on use of Matlab products
This page states "The tools used at more than 6500 universities worldwide." You may find the company fact sheet interesting. W...

12 giorni ago | 0

Matlab 5.2
Are you asking if you can run MATLAB 5.2 using that license? Possibly if you can find an old machine. The System Requirements fo...

12 giorni ago | 0

code analyzer bar not indicating syntax errors
There are some problems that Code Analyzer's static analysis can detect, but a misspelled function name is not always something ...

12 giorni ago | 0

| accepted

fmincon and optimization with a symbolic matrix
The function is optimoptions (plural) not optimoption (singular).

12 giorni ago | 0

| accepted

hold on does not work
Can you confirm that you're calling the hold function included in MATLAB and not a different hold.m that you've written and/or d...

12 giorni ago | 0

How to plot histogram where the data is the height
histogram('BinEdges', [0 1 2], 'BinCounts', [107 55])

13 giorni ago | 0