Answered
I have three columns in an excel file and i want MATLAB to find the maximum value from all columns and return the column where the maximum is found. How to do this?
Hello Debbie, There are a couple of ways you could do this. One is to use max to find the maximum of each column, and then ma...

8 years ago | 0

Answered
Plot colors showing incorrectly with gradient
Hello Rick and Dominik, I've seen this <https://blogs.mathworks.com/videos/2014/08/12/coloring-a-line-based-on-height-gradien...

8 years ago | 1

Answered
Is there a way to add static text in app designer?
Hello Matt, Rik is correct that uilabel is the way to go. You can create the label manually during app creation: <</matlab...

8 years ago | 1

| accepted

Answered
How to interpolate missing range between curves?
Hello Ince, I am assuming that you have each of the x and y values for each line stored in a separate variable (and for this ...

8 years ago | 0

| accepted

Answered
How can I set up the axis values in a plot?
Hello Agustin, I'm not entirely certain what you mean by "a more detailed view of the signals". If you'd like to just thin ou...

8 years ago | 0

| accepted

Answered
how can i plot Time and Date from cell class (workspace)?
Hello Hasbian, It's pretty easy to convert cell arrays of character arrays into <https://www.mathworks.com/help/matlab/ref/da...

8 years ago | 1

Answered
Robotic System Toolbox not working
Hello Hector, Which release of MATLAB are you using? The online documentation is always on the latest release (R2017b current...

8 years ago | 0

| accepted

Answered
how can i connect thingspeak data to matlab2012b?
Hello Aditya, According to the File Exchange submission, the <https://www.mathworks.com/matlabcentral/fileexchange/52244-thin...

8 years ago | 0

Answered
Using interp2 - The grid must be created from grid vectors which are strictly monotonically increasing.
Hello Ankit, The issue is that your Pressure values go from 0.1 down to 0 and then back up to 1. Is that what you intended to...

8 years ago | 0

Answered
Finding values on only time (excluding date)
Hello Sikander, If you can import your data and get it into a <https://www.mathworks.com/help/matlab/ref/datetime.html dateti...

8 years ago | 1

Answered
[Beginner] Problem of :Vectors must be the same lengths
Hello Will, If you take a look at the variables that are produced when you run the code, you might notice that yo is not a le...

8 years ago | 0

| accepted

Answered
how to plot ecdf with > 0 value in a subplot?
You can use <https://www.mathworks.com/help/matlab/math/matrix-indexing.html#bq7egb6-1 logical indexing to do this easily>: ...

8 years ago | 1

Answered
Problem with plotting data using line plot and scatter plot?
Hello Rushan, In this case, "x" is equal to "datetimeStart", which is a scalar value. "y" is equal to "averageData", which is...

8 years ago | 0

Answered
How can make my Loop more efficient?
If you <https://www.mathworks.com/matlabcentral/answers/99124-how-do-i-pre-allocate-memory-when-using-matlab preallocate> the va...

8 years ago | 0

| accepted

Answered
How to set usamap projection to mercator?
Hello Leon, Once you use geoshow to place shapes onto the map, you cannot change the map projection. You could delete all the...

8 years ago | 0

| accepted

Answered
how to write equation in matlab to get the required graph ?
Hello Ajeet, Just at first glance, I can see that mod(x,2) will be cast to true when "x" is _odd_, not even. Normally, just t...

8 years ago | 0

| accepted

Answered
How to import data from a non-symmetric .txt file.
Hello Jeppe, If you give an explicit format to use, the data read functions will try to stick to it as best as possible. My p...

8 years ago | 1

| accepted

Answered
How can I execute a script with the evalin command?
Hey Fabian, The issue is that you are calling the script when you should be passing its name as an input argument to "evalin"...

8 years ago | 1

| accepted

Answered
Minimizing a function with discrete variables
Hello Koel, If your set of possible values is sufficiently small, and you're only dealing with a few variables, it probably i...

8 years ago | 0

Answered
Grayscale to Jet image
Hello Rahul, The reason "ind2rgb" probably failed is that it's likely a double image. That means that all the values are betw...

8 years ago | 1

Answered
How to find the closest data row index
Hello Kanakaiah, I think you're pretty much on the right track, though there's no need for bsxfun if you just want one index ...

8 years ago | 1

| accepted

Answered
I have problem in loading my dataset. I'm using MATLAB R2017a. It shows me an error like "Unknown text on line number 1 of ASCII file"
Hello Sarath, <https://www.mathworks.com/help/matlab/ref/load.html load> is generally best used with either MAT files, or fil...

8 years ago | 0

Answered
how to output selectively a random matrix
Hello Brian, From both your question and your code, I cannot understand what you are trying to get out of this. What is "numc...

8 years ago | 1

Answered
How we can take two or more times input from a single edit text in matlab
Hello Muhammed, I assume that this is on the same topic as your <https://www.mathworks.com/matlabcentral/answers/357182-more-...

8 years ago | 0

| accepted

Answered
Question about integration within matlab
Hello Ano, If you were to do this: x = 0:1:10; y = sin(x); intsinxdx = sum(y); Then this would be a valid appro...

8 years ago | 0

| accepted

Answered
How can I edit variables for a simulation in Simulink?
Hello Jasper, If you check out the model properties, you can see that the InitFcn callback calls this script to set some para...

8 years ago | 0

Answered
tic - toc behavior
As José was saying, there is more happening the first iteration through the loop than all subsequent iterations. MATLAB uses...

8 years ago | 3

Answered
how to extract value from .mat file
Hello Samah, It's not entirely clear to me what you are looking for. If you have a MAT file that contains an array, and you w...

8 years ago | 1

| accepted

Answered
Changing the output of the imread() function
Hey Seth, Could you just use <https://www.mathworks.com/help/matlab/ref/rgb2gray.html rgb2gray> on the output of imread? ...

8 years ago | 1

| accepted

Answered
How to fix: Index Exceeds Matrix Dimensions
I don't fully understand what you are trying to do here, but I can tell you how to examine the issue. With any kind of error, it...

8 years ago | 4

Load more