Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 1

Réponse apportée
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...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 1

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 1

Réponse apportée
[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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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>: ...

plus de 8 ans il y a | 1

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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"...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 1

Réponse apportée
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 ...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 1

Réponse apportée
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-...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

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

plus de 8 ans il y a | 3

Réponse apportée
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...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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? ...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 4

Charger plus