Respondida
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...

casi 9 años hace | 0

Respondida
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...

casi 9 años hace | 1

Respondida
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...

casi 9 años hace | 1

| aceptada

Respondida
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 ...

casi 9 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 1

Respondida
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...

casi 9 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 0

Respondida
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...

casi 9 años hace | 0

Respondida
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...

casi 9 años hace | 1

Respondida
[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...

casi 9 años hace | 0

| aceptada

Respondida
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>: ...

casi 9 años hace | 1

Respondida
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...

casi 9 años hace | 0

Respondida
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...

casi 9 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 1

| aceptada

Respondida
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"...

casi 9 años hace | 1

| aceptada

Respondida
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...

casi 9 años hace | 0

Respondida
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...

casi 9 años hace | 1

Respondida
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 ...

casi 9 años hace | 1

| aceptada

Respondida
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...

casi 9 años hace | 0

Respondida
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...

casi 9 años hace | 1

Respondida
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-...

casi 9 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 0

| aceptada

Respondida
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...

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 3

Respondida
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...

alrededor de 9 años hace | 1

| aceptada

Respondida
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? ...

alrededor de 9 años hace | 1

| aceptada

Respondida
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...

alrededor de 9 años hace | 4

Cargar más