Answered
I want to remove trail licence from my account
From the Home tab in MATLAB, select Help> Licensing > Update Current Licenses From here, you should be able to select the licen...

5 years ago | 0

Answered
Invorrect number of answers
You are only capturing 1/3 of your data, then. This is because your outer for loop is always overwriting the previous result. Th...

5 years ago | 0

Answered
A switch case with multiple results or switch expressions?
First we need to fix some syntax issues. A CONTINUE may only be used within a FOR or WHILE loop Logical comparison requires 2 ...

5 years ago | 1

| accepted

Answered
i need to draw this figure by matlab code
Ch 9 of MATLAB Onramp covers plotting.

5 years ago | 0

Answered
Installing matlab in ubuntu
How can I install MATLAB or other MathWorks products on an offline machine?

5 years ago | 0

Answered
the meaning of length in my loop
Every function in MATLAB is documented. There, you can find a description, examples, and more. Check out the documentation for l...

5 years ago | 0

Answered
Alternatives to "drawnow"
It looks like your x data never changes. That should mean your number of y points also remains constant. One thing to try is to ...

5 years ago | 0

| accepted

Answered
Importing histogram count and bin values into a matlab histogram object
Pretty sure you can't. From the documention for histogram histogram('BinEdges',edges,'BinCounts',counts) manually specifies bin...

5 years ago | 0

| accepted

Answered
ODE23 errorline 114)
Read the full error message. Error using odearguments (line 83) The last entry in tspan must be different from the first entry...

5 years ago | 1

Answered
Creating empty ui control component
Try setting your property to an empty Label class using the following comp_ui_obj = matlab.ui.control.Label.empty

5 years ago | 1

| accepted

Answered
Plot does not match with x tick label
XTickLabel can have a value that does not correspond to the actual XTick value. That is likely what has happened here. You firs...

5 years ago | 0

| accepted

Answered
What do the x-axis and y-axis of the plot of the transformation curve represent?
From that same page: "This example shows how to plot the transformation curve for histogram equalization. histeq can return a 1-...

5 years ago | 0

| accepted

Answered
Plot 4D data of type double
There is no 4D plot. You will need to do something to represent your 4D data in 2 or 3 dimensions. The most obvious thing to do ...

5 years ago | 0

| accepted

Answered
Instead of for all subjects, my 'for loop' only shows results for 1 subject
That is because your loop is overwriting filtDATAs.TD each time. You need to use indexing to capture the result of every loop. S...

5 years ago | 0

Answered
Use a double as an index for another double works once and that gives indexing error.
Look at what the error message is saying. It has nothing to do with doubles vs floats. The problem is coordsROI contains value(s...

5 years ago | 1

| accepted

Answered
ı want to create a matrices for this indicated values. but ı confused about something that ı shown below. what if its one component is not given or there is nothing there, what can ı put there to make all matrices same size?
In this situation, the data is missing. Read the page Missing Data in MATLAB. You can't leave an element empty, but you can fi...

5 years ago | 1

Answered
Calculate percentage change from year to year in Matlab?
Use the diff function to find the difference between rows, then divide by the corresponding year's value. Just be aware that dif...

5 years ago | 0

| accepted

Answered
How to turn monthly data to annual data? data attached for example
Use the retime function to change your time step to 'yearly'. For method, use 'mean'. load EXAMPLEQUESTIONDATA.mat retime(TB6M...

5 years ago | 1

| accepted

Answered
Displaying images from cell arrays in app designer
It looks like you are indexing your cell array incorrectly. See this page: Access Data in Cell Array. Try something like this (...

5 years ago | 0

Answered
Plot command converting waitbar to figure
When you plot in an app. you should specify which axes to plot into using the following syntax: plot(ax,___) For a GUIDE app, i...

5 years ago | 0

| accepted

Answered
How can I predefine my variable better?
You can define the variable to be empty using empty brackets corr_measurement = []; Then you can have your if statement check ...

5 years ago | 0

Answered
Can someone help me with my code?
There are a couple ways to do this in MATLAB. I'll go with the one that doesn't require any additional toolboxes. You can do th...

5 years ago | 0

Answered
How can I use a value recursively in for loop
There is no loop here. As written, your sript will execute just once. You probably want to use a while loop, which will continu...

5 years ago | 0

| accepted

Answered
Who can I append a matrix on exist file ?
What are you expecting to see with this example? You are appending an empty matrix, so it would be impossible to tell if it has ...

5 years ago | 0

Answered
The format type of reading a matrix from a file?
I suspect the full values are there. However, by default MATLAB only displays 4 decimal places. If you look at the original and ...

5 years ago | 0

Answered
Why are the matrix numbers changing while converting table to matrix?
They are not changing, but you must have some large numbers in your data. When you convert the table to a matrix, it expresses a...

5 years ago | 0

| accepted

Answered
How to create a 112x112 heatmap from a 112x1 table?
Viewing a 112x112 matrix is easy. The hard part is creating the matrix. To do so, you need to define what "each value versus eac...

5 years ago | 0

| accepted

Answered
change function to script to save variables
This is a gui (created in GUIDE). You cannot change it to a script without breaking the gui. Perhaps this post will help you?

5 years ago | 0

Answered
readtable in matlab2020 vs readtable in matlab2018
We can't really help you with specifics unless you share the file, as well as specify if it is R2018a or b. With every release,...

5 years ago | 0

Answered
a simpler way to add a string variable to a table
The doc is your friend. You should really learn how to use it. This example shows a simple way to add a new variable to a table...

5 years ago | 0

| accepted

Load more