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

fast 9 Jahre vor | 0

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

fast 9 Jahre vor | 1

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

fast 9 Jahre vor | 1

| akzeptiert

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 1

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 0

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

fast 9 Jahre vor | 0

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

fast 9 Jahre vor | 1

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 1

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

fast 9 Jahre vor | 0

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 1

| akzeptiert

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

fast 9 Jahre vor | 1

| akzeptiert

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

fast 9 Jahre vor | 0

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

fast 9 Jahre vor | 1

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

fast 9 Jahre vor | 1

| akzeptiert

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

fast 9 Jahre vor | 0

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

fast 9 Jahre vor | 1

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 0

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

fast 9 Jahre vor | 3

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

fast 9 Jahre vor | 1

| akzeptiert

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

fast 9 Jahre vor | 1

| akzeptiert

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

fast 9 Jahre vor | 4

Mehr laden