Answered
how to merge different dimension .mat files to single file
A mat file is not the same thing as a variable. You can actually store multiple variables in a single mat file if you want. See ...

5 years ago | 0

| accepted

Answered
How to show most values of one variable in a plot3
Can you use a text description?

5 years ago | 0

Answered
For loop that keeps only the first result of a random number generator function for all the loop runs
You would have to generate the random numbers before entering the loop, or inside an if statement inside the loop that only exec...

5 years ago | 0

| accepted

Answered
Extract data of a specific location out of climate projection file in structure format
Using "==" will only find an exact match. If one cannot be found, the result is empty. You don't want to find an exact match. Yo...

5 years ago | 1

Answered
Changing color of a certain cell in a matrix after breaking a for-loop
Before the break command in your if statement, include code for changing the color. Since you are using imagesc, this means actu...

5 years ago | 0

| accepted

Answered
How can I merge the plot using the same x axis and y axis?
The closest MATLAB function I can think of is stackedplot. It's not exactly the same, but it's an easy way to get something clos...

5 years ago | 0

Answered
Undefined function or variable 'filename'
The error means you are using filename as a variable or function but have not created it or defined it yet. Given the choice of ...

5 years ago | 0

Answered
Error in solution: Line: 6 Column: 5 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
You must create a variable for your loop counter in your for loop. Look at some of the examples here. For loop syntax is also c...

5 years ago | 1

Answered
Trying to learn griddata function.
Your x1, x2 and xx, yy inputs do need to be unique. Since you create the vectors using rand, every once in a while you may get d...

5 years ago | 1

| accepted

Answered
ODE45 code won't run
There's something with your tau. Right now it is 200. When I make it <=30 I get it to run very quickly. If instead I use ode15...

5 years ago | 1

| accepted

Answered
Error while vectorizing my code
The error is because your vectors x and n are not the same length. x has 501 elements while n has 50. Also, power is doing n.^x....

5 years ago | 1

| accepted

Answered
Error: Matrix dimensions must agree.
Y_VALUES is a 1x11 matrix while ls is 1x100. In order to subtract them, they must either both have the same size, or one must be...

5 years ago | 1

| accepted

Answered
Mapping a Coastline of the Antarctic showing different boundaries
You haven't given us much to go on. Perhaps to get started, check out the link Create Your First World Map. If I were going to ...

5 years ago | 0

Answered
How do i set the color bar to logaritmical?
Does this post by the MathWorks support team work for you?

5 years ago | 1

| accepted

Answered
How can I extract a mammogram image's tumor area after drawing it with using roipoly command ?
See this answer: https://www.mathworks.com/matlabcentral/answers/512971-finding-area-of-polygon-defined-by-roipoly

5 years ago | 0

Answered
What smoothing algorithm is used in smoothed training accuracy in deep learning
I don't know that there is source code available, but you may be able to find information on the algorithm(s) used in the Algori...

5 years ago | 0

| accepted

Answered
Manipulation of data for plotting
Not sure how you went from 12 to 3 in your first dimension, but use indexing to reduce your data down to 12 x 8 1076 x 10. newV...

5 years ago | 0

| accepted

Answered
How to make the frequency vector to analyze a complex signal?
I think I would explain it this way. Due to Nyquist theory, the highest frequency you can detect is half your sample rate (must ...

5 years ago | 0

| accepted

Answered
Scatter Error in color/linetype argument when using '|' marker
It works for me. What version of MATLAB are you using? These marker options were added in MATLAB R2020b: https://www.mathworks.c...

5 years ago | 2

| accepted

Answered
need mfile for my non linear system
You can find examples and explanations about how to create a funciton file here: https://www.mathworks.com/help/matlab/matlab_p...

5 years ago | 0

Answered
what is the wrong here
Do you realize your screenshot has nothing to do with the code you've shared? You are not using a valid variable name Your scr...

5 years ago | 0

Answered
how i use example.m file to another homework.m file
You can run a script using its name. If you want to run a script inside another script, just put its name in the script. So if y...

5 years ago | 0

| accepted

Answered
Diff limits on same axis
MATLAB does not provide a function for this. However, this post contains some suggestions. Another option is to realize that yo...

5 years ago | 0

| accepted

Answered
How to make the axis adjust to new plots
I would add the following to the bottom of your plotting code. hold(app.Graph,'off') % best practice to always pair hold on wit...

5 years ago | 1

Answered
Comparing two table. Coursera project
There is a forum in the course. Please use that to ask questions. It is actively monitored.

5 years ago | 0

Answered
How to add drop lines into plot ?
I don't know about drop lines, but one way to achieve this might be adding a stem plot on top of your plot. x = 1:5; y = [6 3 ...

5 years ago | 0

| accepted

Answered
change color single bars in pareto matlab
Similar to how you would do it with a bar plot (see this example). The trick is getting the correct object (pareto contains bar ...

5 years ago | 0

| accepted

Answered
Move multiple rows with exceptions
H = H([1 4:6 2 3],:)

5 years ago | 1

Answered
How can I plot matrix from a text file in App Designer ?
The same way you would plot it in MATLAB. Just be sure to specify the target axes. plot(app.UIAxes,xData,yData)

5 years ago | 0

| accepted

Load more