Answered
How can I move data on a graph?
Perhaps you want to use errorbar to create you plot instead of plot.

5 years ago | 0

Answered
App Designer: control focus on pressing Tab
Tab order appears to be linked to the order of your components in the component browser. See this answer for a way to change the...

5 years ago | 0

| accepted

Answered
Using a for loop to extract values from a matrix
Typically this is done using your loop counter to index into your vector. You can learn more about indexing in Ch 5 of MATLAB O...

5 years ago | 0

Answered
Save Matlab data in Excel with ActiveX
See this example and this Answers post.

5 years ago | 0

| accepted

Answered
My code works when i open the main file directly, but dont work when i open the file from matlab!
Perhaps you need to change the extension of your file? In MATLAB, .mat files are not executable scripts. They are binary files t...

5 years ago | 0

Answered
Plot polars in app designer
Support for PolarAxes in app designer was added in R2018b. What version of MATLAB are you using? Perhaps the example 'Create Po...

5 years ago | 0

| accepted

Answered
ODE Solver Function File Help - Must return a column vector
Check the dimensions of h, your output from Julia_Prob1a_fun. The ode solver expects a column vector, which has dimensions mx1. ...

5 years ago | 0

Answered
plot from discrete points
Ch 9 of MATLAB Onramp covers plotting.

5 years ago | 0

Answered
deleting of rows in a matrix
I'd use a logical array (Ch 12 of MATLAB Onramp) created by ismember. I had to fix some values of A. % Original matrix A=[0.02...

5 years ago | 1

| accepted

Answered
Building a matrix inside a for loop
See this example.

5 years ago | 0

Answered
How to change the style of plot with different colors using matlab?
There are ways to do this, but not using plot. See this answer. It does require you determining a good way to get the colors to ...

5 years ago | 0

| accepted

Answered
Calling a number from an edit in a uicontrol in a separate function
It looks like you are trying to build an app programmatically. If you haven't already done so, I recommend looking at this examp...

5 years ago | 0

Answered
how to increasse Bar3 plot bar thickness in both axies
You could try using the 'Width' name value pair (see this example), but I think the bigger issue is the scale of your X vs Y axe...

5 years ago | 0

Answered
1-cos(x)^2 doesn't simplify?
Perhaps try using the Steps name-value pair. syms x simplify(1-cos(x)^2,'Steps',10)

5 years ago | 2

| accepted

Answered
how to store the data in table after running if loop
You need to assign the results from each look to a matrix. See this example. You can learn more about for loops in Ch 13 of MAT...

5 years ago | 0

| accepted

Answered
XY MODEL COLOR MAP/PCOLOR
This looks like the HSV colormap. I'm not sure what you have for data, but first thought is to use imagesc. % create a matrix ...

5 years ago | 0

| accepted

Answered
ode 45 doesnt work
There is an issue with your initial conditions. See this post on how to set up an initial value problem when t ~= 0. However, y...

5 years ago | 1

Answered
My timeSpan is considered a nonscalar operator when using if statement. Help.
Your if statement is not doing what you think it is doing. To learn more about how an if statement works, I suggest going throug...

5 years ago | 1

| accepted

Answered
read csv file with dates and numerical in R2016b
Use readtable.

5 years ago | 0

| accepted

Answered
Find specific entry based on column value in table
I'd create a logical array of the name column, and use that to extract the number from the first column. You can learn about log...

5 years ago | 0

| accepted

Answered
Multiple geoplot lines with one call
Use the documentation to determine what valid input arguments are. Your observation is correct - geoplot currently only supports...

5 years ago | 0

Answered
How do i convert .mdl file to slx
See this answer.

5 years ago | 0

Answered
Some issues about showing a plot in App Designer
When plotting in an app, you must specify the target axes. plot(ax,___) So inside your class, your plot command might be plo...

5 years ago | 0

Answered
I would like to know how to write a MATLAB code that reads and imports the coordinates of an element (A) that is in a dataset from another dataset that contains this element (A)
Sounds like you might want to look into logical arrays. You can learn about them in MATLAB Onramp (CH 12).

5 years ago | 0

Answered
removevars ERROR for a table
I can't reproduce your error message, but I do get a different error. One of the variable names you are trying to remove does no...

5 years ago | 1

Answered
How to read the rainfall data format attached in the file and obtain the monthly, annual daily and hourly maximum values? Kindly help me with this
Once you get the data to import correctly (see datetime for time formatting options), I think you want to use groupsummary. Use ...

5 years ago | 1

| accepted

Answered
simple array calculation help
I suggest going through MATLAB Onramp

5 years ago | 0

Answered
Plotting two columns of data
Ch 9 of MATLAB Onramp covers plotting. You might also try the plot documentation page.

5 years ago | 0

Answered
plot different data in one surface plot
One way to do this is to create a matrix with the results of peaks in 1-25 and sin(peaks) in 26-50. mat = peaks; mat(:,26:end)...

5 years ago | 0

| accepted

Load more