Answered
Iteration in 'for loop' returns errors where there aren't errors. How to find the error or skip that iteration?
This error suggests that, at some point, your code is overwriting your variable d with one of its own making. When this happens,...

5 years ago | 0

Answered
Unable to perform assignment because the left and right sides have a different number of elements. Error in Double_Lab_Calcs (line 48) hp_val(counter) = S.hp;
It looks like you are trying to assign multiple values to location that can only hold a single value. You likely need to include...

5 years ago | 0

Answered
Find duplicate entries and sum up their associated values then put everything back in a table
It gets a bit trickly since you don't want to change the order of the names, but I think you could do this with groupsummary. %...

5 years ago | 1

Answered
Is it possible to grade Code in Live Editor
It is always possible, it just depends on what sort of experience you want to create for your learners. MATLAB Grader does not...

5 years ago | 1

| accepted

Answered
Possible failure in course Simscape Onramp
Note that to the left of the Submit button, there are links to see a Hint as well as the Solution. In your case, it looks like ...

5 years ago | 0

Answered
Index in position 2 exceeds array bounds (must not exceed 27630) of a for loop?
Here is the full error message I get. It's helpful to know what line is causing the error. Index in position 2 exceeds ...

5 years ago | 1

Answered
Changing fit line style changes the fit line (fit line shape)
It looks like you have set the line style for the solid blue data points as well as the fit line. % Default view x = (1:10)';...

5 years ago | 0

| accepted

Answered
In a color bar, how can I change to color of the ticks, number labels, and string label?
See the colorbar properties documentation page. cbar = colorbar; cbar.Label.String = 'Prob. Density'; cbar.Color = "w"; set(...

5 years ago | 0

| accepted

Answered
Migrating 2015b code to 2018b
The analoginput function was removed in R2016a. See the release notes here (under Legacy Interface Removed). Pre R2016a you mig...

5 years ago | 0

| accepted

Answered
Remove rows from a string array that correspond to rows being thresholded in a separate numeric matrix
Use an index to capture the rows that meet your criteria, and then use that index to delete the corresponding rows from both arr...

5 years ago | 0

| accepted

Answered
Too long time doing Image Processing Onramp??
This is an online, self-paced course. It does not matter what version of MATLAB you have. When completing the onramp, you are us...

5 years ago | 0

Answered
How do I point MatLab's command window to the Ledalab directory. Ledalab is a Matlab-based tool.
I think you may have that backward. See the installation instruction under Documentation on the Ledalab website. "Installation ...

5 years ago | 2

| accepted

Answered
how can i solve a warnning saying the length of lower bound is > length of( x)
I had to fix another error first. Error in main (line 14) Aineq=[0,6,-1,0,0,0,o,o]; It looks like you added the lett...

5 years ago | 0

| accepted

Answered
Optimization app has been removed in MATLAB Online?
gatool was removed in R2015b (see this answer). Your observation is not limited to MATLAB Online. In R2021a, the optimization a...

5 years ago | 2

Answered
Accessing a cell in a 2D grid
Consider using linear indexing. You can find an explanation towards the middle of this page. It is also explained here. If you n...

5 years ago | 0

Answered
Dimension problem in for loop?
I believe the issue is that you are trying to assign a 2-row array into a single row of H. Hence, the dimension mismatch error. ...

5 years ago | 0

Answered
How do I integrate the triple integral x^3*y*lnz from 0,1,0,1,0,1?
I suggest looking through the examples on the integral3 documentation page.

5 years ago | 0

Answered
Conversion of Simulink Model to previous version
Under the Save option, select Previous Version... and then, under the Save as Type drop down menu, select the version you want. ...

5 years ago | 0

Answered
define function and use ode45
It looks to me like you need to define your initial conditions for y. You say you declare them globally. You do not want to do t...

5 years ago | 0

Answered
Getting current time on x-axis using Design app - GUI
The same way you would do it in MATLAB. If your duration corresponds to daytime, then you can just set the format of your xdata ...

5 years ago | 0

| accepted

Answered
Subscript & superscript equation
You need to use latex in the equation editor, not symbolic. This expression x1=x_{b_1}^{a_1} turns into this: Note that MATL...

5 years ago | 1

| accepted

Answered
Loading a file into a function error: "Unable to resolve the name __"
You have given two different errors. "Unable to resolve the name Atmos.mat" Check that Atmos.mat is either in your current fo...

5 years ago | 1

| accepted

Answered
Matlab Grader file solution.m contains learner solution in one exercise, reference solution in another exercise
Am I correct in assuming the issue is ocurring when you click 'Validate Reference Solution'? Perhaps a brief explanation of wha...

5 years ago | 0

| accepted

Answered
Plot line is thick in the middle on a log-log scale
I can reproduce what you see in the code below. Since you haven't shared your code, I can't be certain it is the same cause, but...

5 years ago | 0

| accepted

Answered
How to find missing values in a table and delete the row along with all other associated rows
It seems a solution will need to be highly customized to your particular data set. Since you haven't shared your data, here's my...

5 years ago | 1

| accepted

Answered
how to write script window level
You need to separate your window level from your image data with a comma. Also, the low value should come first. imshow(I,[low...

5 years ago | 0

Answered
Trouble with quiver function and plotting a vector vield
I don't understand what you want your for loops to do. I think you have set them up incorrectly. You should check out Ch 13 of M...

5 years ago | 0

Answered
How to add text and numbers to gui table?
See these examples on the uitable documentation page. Basically, if you have mixed data types, either use a table or a cell arra...

5 years ago | 0

Answered
Plot three Sine signals having Amplitude = 5V, frequencies = 1Hz and Phase = 30, 45, 60.
MATLAB Onramp. In particular, Chs 4,6,7 and 9.

5 years ago | 0

Answered
Index exceeds matrix dimensions. Error in RRR_Robot>btn_inverse_Callback (line 279) handles.theta_1.String=num2str(floor(J(1)));
What version of MATLAB are you using? Given that your index is 1, I suspect the issue is that J is empty. The current release gi...

5 years ago | 0

Load more