Answered
System Error (MATLAB R2019a) after update
See Maadhav Akula's answer on this Answers post.

6 years ago | 1

| accepted

Answered
Why do I get these errors in Toolbox package? Help me out
The MCR directories in the directory for MATLAB Compiler should not be on the MATLAB path. If you've added toolbox\compiler\mcr ...

6 years ago | 0

| accepted

Answered
Error using 'pi' too many input errors with my equation
You're missing * operators after the two calls to pi on the line where you define y, just like you did on the lines where you de...

6 years ago | 0

| accepted

Answered
Even binned histogram to uneven bins?
Let's make some sample data. x = randi(255, 1, 1e5); Use bin edges that are the squares of the integers between 1 and 16. Each...

6 years ago | 0

Answered
Error using subplot using for loops: subplot index too large
Set a conditional breakpoint on the line where you call subplot. The condition is nVals1*4 < indexplot. Run your code. When MATL...

6 years ago | 0

Answered
Array of Structures (not structure array)
Consider a struct whose fields are themselves struct arrays. arr.asdf = struct('A', 3, 'B', 2); arr.zxcv = struct('A', 7, 'B',...

6 years ago | 1

| accepted

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

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

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

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

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

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

6 years ago | 1

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

6 years ago | 0

Answered
How to write values from workspace dynamically into a table
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...

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

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

6 years ago | 0

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

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

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

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

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

6 years ago | 9

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

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

6 years ago | 0

Answered
Why is there no one to help me?
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...

6 years ago | 2

| accepted

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

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

6 years ago | 1

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

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

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

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

6 years ago | 0

Load more