Answered
finding e-mail address which begins with 2 character and different domain names as array
If you split the problem into parts then it is much easier to solve. Here are the data call arrays, which I altered e.g. by addi...

11 years ago | 1

| accepted

Answered
converting a horizontal matrix to vertical
Use <http://www.mathworks.com/help/matlab/ref/transpose.html |transpose|>, which can also be written |.'| >> A = [1,2;3,4;5...

11 years ago | 3

| accepted

Answered
Data sorting by time
Sorting these timestamps into order is *really easy*, because actually you do not need to convert to date numbers or numeric val...

11 years ago | 1

Answered
how to share a single variables between different callbacks?
Here are some good resources that will help you: http://www.mathworks.com/help/matlab/creating_guis/share-data-among-callback...

11 years ago | 1

Answered
Generate a evenly spaced array based on two arrays
>> s_pt = [1,8,15]; >> e_pt = [3,12,20]; >> cell2mat(arrayfun(@(s,e)s:e, s_pt, e_pt, 'UniformOutput',false)) ans = ...

11 years ago | 0

| accepted

Answered
I have the x and y coordinates of a gray scale image. How to get the gray values for that particular set of coordinates?
You are putting way too many superfluous parentheses in there, and this is causing the error. If you just stick to putting in th...

11 years ago | 0

| accepted

Answered
Entering power in MATLAB title
The text in a title can be formatted using TeX or LaTeX markup, which means you need to group characters with curly brackets, no...

11 years ago | 2

| accepted

Answered
looping to read image
My File Exchange submission natsortfiles was written exactly for solving this problem: http://ww.mathworks.com/matlabcentral/fi...

11 years ago | 0

| accepted

Answered
Saving file with file name from user
It depends on _how_ you want them to enter the filename: * in a GUI, then try <http://www.mathworks.com/help/matlab/ref/uiput...

11 years ago | 2

Answered
how to change values in matrix by indices
You might find <http://www.mathworks.com/help/matlab/ref/toeplitz.html |toeplitz|> useful for this: >> n = 4; >> toeplit...

11 years ago | 0

Answered
Outputing Array from Nested Why Loops
It is possible to <http://www.mathworks.com/help/matlab/matlab_prog/vectorization.html vectorize this code> a bit by using |rand...

11 years ago | 1

Answered
Replace some values of a vector with another vector which has a different size
This can be achieved very simply using basic <http://www.mathworks.com/help/matlab/math/matrix-indexing.html logical indexing>: ...

11 years ago | 1

Answered
Structure array and file operations
You can find a list of functions that can read textfiles here: http://www.mathworks.com/help/matlab/text-files.html I woul...

11 years ago | 1

| accepted

Answered
How can I get updated value of UI toggle button, within it's callback function?
I also wanted to use a toggle-button as an on-off switch for some looped operation, and solved this using some fairly simple cod...

11 years ago | 0

Answered
How to import blanks cells as Nans
Here is a list of some functions that can import blank/missing data as |NaN|: http://www.mathworks.com/help/matlab/ref/textsc...

11 years ago | 0

Answered
Maximum of a row in a matrix
Use <http://www.mathworks.com/help/matlab/ref/max.html |max|>, and some <http://www.mathworks.com/help/matlab/indexing.html inde...

11 years ago | 0

| accepted

Answered
How to enter MATLAB code here ?
Here it is a tutorial that shows all of the formatting options for this forum: http://www.mathworks.com/matlabcentral/answers...

11 years ago | 1

| accepted

Answered
how to extend a cell array?
A *fast* and *neat* way to do this would be to use basic <http://www.mathworks.com/help/matlab/math/matrix-indexing.html MATLAB ...

11 years ago | 5

Answered
Find if a value in a column is greater than a number and exclude the entire row
If |A| is that matrix of data, first we can check the seventh column: A = [...]; idx = A(:,7) > 1e-5; and then remove...

11 years ago | 1

| accepted

Answered
how to run a function again and again till a condition satisfies?
This is what a <http://www.mathworks.com/help/matlab/ref/while.html |while| loop> is for. There are good examples in the documen...

11 years ago | 1

Answered
When do we use conjugate transpose instead of transpose? When will (ATA)-1 AT Y become(AHA)-1 AH Y????????
This might help: http://www.mathworks.com/help/matlab/matlab_prog/array-vs-matrix-operations.html And also read the docume...

11 years ago | 0

Answered
How to use MATLAB to search through inputs and return an answer
Rather than thinking about each note as being its own individual variable, this is much simpler when we realize that they are al...

11 years ago | 1

| accepted

Answered
Access elements of a Vector without a few Indices?
You could use <http://www.mathworks.com/help/matlab/ref/setxor.html |setxor|> to generate the indices: >> X = [4 5 1 7 3 9 ...

11 years ago | 0

| accepted

Answered
vertical alignment with different size character with fprintf.
According to the <http://www.mathworks.com/help/matlab/ref/fprintf.html fprintf documentation> one can specify a field width for...

11 years ago | 1

| accepted

Answered
Can I scan 10 arrays all together to find one smallest value between all arrays?
Basically you have to choose whether you combine the values or take the <http://www.mathworks.com/help/matlab/ref/min.html minim...

11 years ago | 0

Answered
the first argument of "warning" should be a message identifier
Either: * Add a message identifier. As the warning says, these are quite useful later... Or * Right click where the red...

11 years ago | 0

| accepted

Answered
Cell Data, How do I access it?
You will find these useful to read: http://blogs.mathworks.com/loren/2006/06/21/cell-arrays-and-their-contents/ http://www...

11 years ago | 1

| accepted

Answered
How to change variable names to headings in table?
Use <http://www.mathworks.com/help/matlab/ref/table.html table's> optional argument <http://www.mathworks.com/help/matlab/ref/ta...

11 years ago | 0

Answered
How to store the gray level pixel values into a 2-D array?
If the images are the same size then you can simply subtract the arrays directly: A = imread(filenameA); B = imread(file...

11 years ago | 1

| accepted

Answered
Unable to solve Indexing error in matlab
Use the debugging tools and check the size of the matrix just before the error occurs: http://www.mathworks.com/help/matlab/d...

11 years ago | 1

Load more