Answered
Invalid data type. First argument must be numeric or logical error when using simplisma
It looks to me like the issue is one of data type. You create datar and varlisst as tables, which are a MATLAB data type that is...

4 years ago | 0

Answered
readtable behaves different after editing CSV?
I think the issue is more obvious if you open the csv file in a text editor instead of Excel. The original file does not have t...

4 years ago | 0

| accepted

Answered
Can't manage to set up an optimization problem in Matlab 2021b from Excel
I would look into problem based optimization with MATLAB (requires Optimization Toolbox). Here's a link to a quick-start "cheat...

4 years ago | 0

Answered
Help Plotting this function
If there is no error message, the most common reason is that you are plotting a single point. By default, MATLAB does not use a ...

4 years ago | 0

Answered
Unable to perform assignment because the size of the left side is 2-by-1 and the size of the right side is 2-by-2. error in sol= pdepe(m,@grainpde,@grainic,@grainbc,r,t);
The error appears to be caused by your pdefun, grainpde. It is returning a 2x2 matrix for c. However, when checking the document...

4 years ago | 0

Answered
How to plot multiple curves without usnig a for loop?
MATLAB will treat columns of data in a matrix as series. If you organize your "curves" so that each is in its own column, you sh...

4 years ago | 0

Answered
HOW TO SOLVE UNABLE TO CONECT TO MATHWORKS?
This is typically due to your firewall or security software preventing your computer from reaching MathWorks servers. See this a...

4 years ago | 1

Answered
how to use matlab in python ?
Start with the webpage Using MATLAB with Python. Another good page is the related cheat sheets. A more detailed page is the Ca...

4 years ago | 0

Answered
How can I re-project my maps from oblique mercator to miller projection?
See the "Change Map Projectoins Using Geoshow" page.

4 years ago | 0

Answered
Variables within time series aren't being plotted and failed linear regression test - No errors shown?
It's because your X data, dn, is a single value. This plots all your data in each series on top of itself. By default, MATLAB pl...

4 years ago | 0

Answered
Which ANOVA type to apply in experimental design with replication?
It's best for you to make that call, but here are the relevant pages: 1-way Anova 2-way Anova A quick observation is that onl...

4 years ago | 1

| accepted

Answered
how can i compare 3 different columns of an Excel sheet with contourf plot in Matlab GUI
A contour plot is created from a matrix (Z data; see here). You must be giving it a vector, causing the error message you see. ...

4 years ago | 0

Answered
MATCHING EXCEL FILES USING MATLAB
Load both files using readtable, then merge the tables using join. If you are new to joining tables, I recommend using the Join...

4 years ago | 0

Answered
i need help to write code to find and plot the Fourier transform for the signal f(t)=e^(-2t)u(t)
Perhaps some of the examples here can help you.

4 years ago | 0

Answered
What to do if insertText doesn't work, but there are no error codes?
insertText essentially creates a new image. You need to add another imshow command for RGB to see it. See the examples here. H...

4 years ago | 2

| accepted

Answered
radiobutton to switch between scatter3 datasets?
Right now, your color is set by your variable RGB (which appears to be undefined in the callback function you have shared). So l...

4 years ago | 0

Answered
Plotting section works for one case and not for the other similar case
The last two else-if statements are working as designed. Perhaps you could more clearly state what "not working" means to you? ...

4 years ago | 1

| accepted

Answered
xlsread() not reading entire values in column
When opened in Excel, notice that the cells that are being read in as NaN have a green triangle in the upper left. The warning m...

4 years ago | 0

| accepted

Answered
How to use strings to access a multi-level structure?
You can use strings to build a structure, but I don't believe you can add multiple levels at once, and I don't believe you can d...

4 years ago | 1

Answered
How to use boxchart 'GroupByColor'
The ability to group by color was added in R2020b (see this release note). If you have the Statistics and Machine Learning toolb...

4 years ago | 1

| accepted

Answered
How do I plot on a tab within a tabgroup in Appdesigner?
Make sure the axes are part of the tab group (the tab background will change color when adding a component to it). Once done, pl...

4 years ago | 0

| accepted

Answered
Scatter3 : How do I add 4th variable to Data Tips?
See the Create Custom Data Tips page.

4 years ago | 1

Answered
[App Designer] How to randomly generate the number of buttons and check which button was pushed in the button push callback function
Consider creating a uibuttongroup. You can then use the SelectedObject property to determine which button was pushed. Using the...

4 years ago | 0

| accepted

Answered
Axis labels - subscripts not working
I heard back. This was an intentional setting change introduced with Timeseries. The work around for now is to manually override...

4 years ago | 2

Answered
Need assistance properly plotting a 3D variable from a NetCDF (.nc) file.
See my posts here and perhaps here. The difference is that your color variable is 3D. Each sheet corresponds to a different tim...

4 years ago | 0

Answered
Interpolate NaN depth values in the bathymatry
There is no elevation data in the nc file, just depth. If it is a matter of getting the coloring to match, you can use the plott...

4 years ago | 0

Answered
How do I interact with heatmaps?
It would appear that functionality is not currently possible with heatmap (see this answer). A possible workaround is to create...

4 years ago | 0

| accepted

Answered
How I can get the dimension of matrix
Use size perhaps. B = dec2bin(123125); B = [repmat('0',rem(length(B),2)),B]; A= reshape(B,2,[])' - '0'; [x,y]=size(A)

4 years ago | 0

| accepted

Answered
Import datetime with MESZ format
I don't believe MATLAB is able to automatically recognize the timezone code. Importing might be a two step process where the dat...

4 years ago | 1

| accepted

Answered
Listbox multiselect in app designer
See this example on the uilistbox documentation page. Note that, in Windows at least, you must hold down the ctrl key while sel...

4 years ago | 2

| accepted

Load more