Answered

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

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

Answered

How to upgrade Matlab Online?

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

How to upgrade Matlab Online?

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

Answered

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.

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

Answered

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

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

Answered

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.

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

Answered

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.

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

How can I multiply N dimensional matrices

See the pagemtimes function introduced in release R2020b.

How can I multiply N dimensional matrices

See the pagemtimes function introduced in release R2020b.

9 giorni ago | 0

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

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

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

Answered

fmincon and optimization with a symbolic matrix

The function is optimoptions (plural) not optimoption (singular).

fmincon and optimization with a symbolic matrix

The function is optimoptions (plural) not optimoption (singular).

12 giorni ago | 0

| accepted

Answered

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

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

Answered

How to plot histogram where the data is the height

histogram('BinEdges', [0 1 2], 'BinCounts', [107 55])

How to plot histogram where the data is the height

histogram('BinEdges', [0 1 2], 'BinCounts', [107 55])

13 giorni ago | 0

Answered

working with missing table data

Calling scatter on data stored in a table array is possible. You just need to extract the data from the table rather than trying...

working with missing table data

Calling scatter on data stored in a table array is possible. You just need to extract the data from the table rather than trying...

13 giorni ago | 0

| accepted