Answered
Issues with while loop
You have no exit criteria for your while loop, which means you are creating an infinite loop. Do you even need a while loop? I...

6 years ago | 0

Answered
Index exceeds the number of array elements (1).
I suggest looking at one of these posts.

6 years ago | 0

Answered
Infinite loop in False postion method
I don't understand what your approach is, but by converting your while loop to a for loop, I can see that your error stops decre...

6 years ago | 0

| accepted

Answered
Function Subtracts Two Nonnegative Integers
For your if conditional, use two = for comparison. if x_minus_y(1) == 0

6 years ago | 0

| accepted

Answered
do you have a rate for retirees?
Agree with Star Strider, though that link specifically says they do not follow up on Student or Home license requests, which is ...

6 years ago | 0

Answered
legend doesn't list all of the plotted lines using plotyy
I think the issue here is that plotyy is not designed to work with hold on. It creates 2 axes superimposed on itself. When calle...

6 years ago | 0

| accepted

Answered
Hello, I was wondering why my last figure in this code keeps giving me a 3D graph instead of a 2D
Because your view command is changing the camera angle, resulting in a 3D view. view(85,25)

6 years ago | 0

| accepted

Answered
Need help cross referencing my code
It looks like you need help getting started with MATLAB. I suggest completing MATLAB Onramp.

6 years ago | 0

Answered
App panel keeps shifting content
I would recommend submitting a technical support request.

6 years ago | 1

Answered
Index exceeds the number of array elements (1) When developing reinforcement learning environment
The error suggests that ct>1, but either/both obj and Data have a length of 1. This is what the (1) at the end of the 'Index exc...

6 years ago | 0

Answered
Time weighted average after every 60mins
Look into groupsummary. You'll probably want something like this. I'm assuming your data is in a table. groupsummary(tblName,Da...

6 years ago | 0

Answered
Division int32 numbers in MATLAB R2019b
int32 is for storing 32-bit integers. The result of the division is rounded to the closest integer value. int32(32.5) If you w...

6 years ago | 0

Answered
Splitting up Numerical Text Data
t = ' 89 93 96 99100100100 98 96 94 90'; T = textscan(t,'%3s','Whitespace',''); T = str2double(T{:})

6 years ago | 1

Answered
why i can't not get my '' License Number or Activation Key ''
If you need a license or activation key, you will need to contact the department at your University that manages software. Typi...

6 years ago | 0

Answered
How to form a structure array variable?
See Steven Lord's reply here. Basically, something like this: Test{1}.a = [1; 2; 3]; Test{1}.b = [7; 3; 22]; Test{1}.c = [4; ...

6 years ago | 0

| accepted

Answered
Am I seeing a bug In LiveScript Output?
When I run your code in my computer, the resulting figure looks the same in a live script and the command window. I can also run...

6 years ago | 1

| accepted

Answered
fplot is not working
You are close. The error in line 3 is because f(x) is not the function name. Check in your workspace and you'll see that f is. ...

6 years ago | 0

Answered
drawing complex equation in 2D
You've already done all the hard work. Just define w first, and then use elementwise multiplication and division. You can use ab...

6 years ago | 0

Answered
Manually adjust labels on axis of plot (histogram)
You could change the X labels using the xticklabels function. I'll include a simple example of one way you could achieve this. ...

6 years ago | 0

| accepted

Answered
Error While running a while loop (index exceeds number of array elements)
You create variable Vdiode so that it contains a single value, 1. Then in your while condition, you try to compare the second va...

6 years ago | 0

Answered
Remove first characters from a string
Perhaps try using cellfun in combination with extract? u{1,1}="ART1/TEACH"; u{2,1}="H0ME/SHOW" f = @(x) extractAfter(x,5);...

6 years ago | 0

Answered
How can I import multiple text files in my folder to Matlab?
See my reply in this post.

6 years ago | 0

Answered
Plot multiple conditions in same figure using for and if loop.
You might as well keep your data in a table. Coverting it to a cell array doesn't help you. Creating your plot can be done quit...

6 years ago | 0

| accepted

Answered
Split a cell that contains a string
Look into cellfun. This will apply a function to each cell in the cell array. Here's an example of one way of doing this. u{1,...

6 years ago | 0

| accepted

Answered
Index exceeds the number of array elements (6) (I´m doing the program for composite simpson 3/8 rule)
The error generally means you are trying to extract a value of an element of a vector that does not exist. Here, your vector is ...

6 years ago | 0

Answered
How to plot forecasted data with corresponding dates
You simply have your X-Data be datetimes. The code you shared should work. Can you confirm that datetime(A) creates dates? Here...

6 years ago | 0

Answered
What is wrong with my code?
Nothing. It's doing exactly what you've told it to do. You specified a stepsize of 0 (variable h). This causes t to be an empt...

6 years ago | 0

Answered
How to make a standalone app have the ability to open .fig files?
You could add a button that uses uigetfile in the callback code to allow the user to select the fig file. The next line of the c...

6 years ago | 0

| accepted

Answered
Can I create on-ramp like tutorials?
It is not currently possible to create your own on-ramp style coures. While not equivalent, one option might be to create a cour...

6 years ago | 0

| accepted

Load more