Answered
Out of memory. The likely cause is an infinite recursion within the program.
Like the error message is saying, your problem is infinite recursion. Your function name is the same as the function you define ...

5 years ago | 0

| accepted

Answered
How to plot with if statement
I suggest going through MATLAB Onramp. Ch 9 - plotting Ch 13 - if statements, for loops

5 years ago | 0

Answered
What does a cross (horizontal line) in the regression plot of a neural network mean with multivariant input and output?
Normalizing is a standard preprocessing step. It is helpful when you have several inputs to your model that are of different sca...

5 years ago | 1

| accepted

Answered
I want to plot the above equation in matlab but i dont know how to plot please help or provide me code
Ch 9 of MATLAB Onramp covers plotting. If you are new to MATLAB, consider going through the entire onramp.

5 years ago | 0

Answered
Generate random decimal value
r=rand+1

5 years ago | 0

| accepted

Answered
How do I make my 3D graph plot within the MATLAB GUI and not as a separate figure
Typically this is done by specifying the axes to plot into as part of the plotting command. See this documentation page for an e...

5 years ago | 0

| accepted

Answered
overwriting in a loop
You have two for loops with loop counters i and j. You last line is using the outer counter, i. If you want to keep every value,...

5 years ago | 0

| accepted

Answered
how to get a drawing with the same axes?
add the following command after your plot command. axis equal

5 years ago | 0

| accepted

Answered
where can I find the type IV wind turbine model used in the examples of renewables
Assuming this is the example you are referring to, I belive this block is a custom block created by the authors of that example....

5 years ago | 0

| accepted

Answered
How can I group data points together
It doesn't sound like you want to average them. For the example you've given, why not just round the numbers down to 2? The func...

5 years ago | 0

Answered
Generate list of 2 digit combinations without repetition
I suspect [2 0] meets your standard for being repetitive as well? I'm assuming yes, otherwise the definition seems arbitrary. I...

5 years ago | 0

| accepted

Answered
3rd time asking this question, still hopeful. How can I match my bar colors to my plots?
It's not entirely clear to me what you want. Do you want one bar plot, where each bar has a different color? c = {'b','r','g',...

5 years ago | 0

| accepted

Answered
How can I change the title bar icon of my app?
Starting with R2020b, there is now an icon property. You can use it to "specify custom icons for UI figure windows and toolbar p...

5 years ago | 2

| accepted

Answered
Script: Indexing in function problem
Functions cannot be defined in the middle of your code. You will need to either place it at the bottom of your script, or in a s...

5 years ago | 0

Answered
How to get files back from the cloud MATLAB Online?
MATLAB Drive is the file system used in MATLAB Online and MATLAB Mobile. You can access your files at drive.matlab.com. You cou...

5 years ago | 0

Answered
How to make the x and y vector the same length
Take a look at the documentation for linspace. If you only input the start and stop values, linspace creates a vector with 100 ...

5 years ago | 0

| accepted

Answered
getting error in simulink onramp "Matlab Function block 7.2"..Failed to evaluate mask initialization command..
You need to connect the Signal Assessment block to the output signal labeled "Power". However, when I tested without having it ...

5 years ago | 1

| accepted

Answered
Cannot load built-in Image Histograms example from App Designer window
I don't know why that would have happened. Reinstalling might fix the issue. You might check if the app is on your computer. It...

5 years ago | 1

Answered
surface plot face not showing colors corresponding to Zgrid in some areas
This has to do with how surface plots are created. For an alterante explanation, see this post. Basically, your values are repr...

5 years ago | 0

Answered
plot3(X,Y,Z)
With plot3, you do not have to use meshgrid. Just create a vector a X values, a vector of Y values, and compute your Z values fr...

5 years ago | 0

| accepted

Answered
D'Agostino's skewness test
I'm not familiar with what R does, but you can see the algorithms used in MATLAB's skewness function here.

5 years ago | 0

Answered
Grayscale Image cannot be output in the GUI Matlab
The function rgb2gray returns an mxn matrix. However, as you can see in the error message, the image component in an app require...

5 years ago | 0

| accepted

Answered
Attempt to execute SCRIPT ... as a function:
The issue is that you are treating your script as a function. Functions have inputs, scripts do not. >> testfunktion(10) Just ...

5 years ago | 1

| accepted

Answered
I need help finding the mean/avg of my data set
I would use groupsummary for this. Keep your data in a table. We don't have your data to test with, but here's a simple examp...

5 years ago | 0

| accepted

Answered
Taking geo data and turn it into cartesian plot
Why not take your cartesian X,Y values, and convert them to lat/lon? Use the local2latlon function. You can then plot everything...

5 years ago | 0

| accepted

Answered
why there are 0's in my matrix?
You predefine your matrix A as zeros. So when you get to an equation that multiplies the original value in A to create the new v...

5 years ago | 0

| accepted

Answered
HOW TO READ A .WRL FILE IN MATLAB?
The most obvious error I see is that you change the varialbe name when you append the '_'. You save that result to filename. You...

5 years ago | 0

Answered
Why do I get "Array indices must be positive integers or logical values." Image processing.
You get that error because any time you use indexing to extract values from a variable, the index number must be integers >= 1. ...

5 years ago | 1

| accepted

Answered
If clause – if column blank than
Try isempty instead of ==[].

5 years ago | 0

| accepted

Answered
Indexing by year from full date
I'd convert your dates to datetimes. Then you can just use the year, month, and day functions.

5 years ago | 0

| accepted

Load more