Answered
how to extract the a and b channel from the lab color space
Sathiya - if you have access to the *Image Processing Toolbox*, try using the <http://www.mathworks.com/help/images/ref/rgb2lab....

12 years ago | 1

Answered
mex link with blas
John - I think that you have to explicitly link to the libraries rather than just passing in the lib names, i.e. use the *-l* op...

12 years ago | 0

Answered
How can I delete values from a matrix?
Azra - how does your logic of removing elements less than 0.01 apply to the following example flowData = [1 3 4; ...

12 years ago | 0

| accepted

Answered
Writing a loop to check the numbers in an array do not exceed a constant value
Zcarfaz - use <http://www.mathworks.com/help/matlab/ref/find.html find> to determine if you have any elements that fall outside ...

12 years ago | 0

| accepted

Answered
How can I change the line type in a graph using plot?
Khade - if you wish to use something other than a curved/connected line, then change your call to *plot* to plot(x,y,'--'); ...

12 years ago | 0

Answered
negative numbers on table
Rui - I suspect that the problem is more likely due to the fact that you have included a string, *'xyz'*, in with your numbers. ...

12 years ago | 0

| accepted

Answered
Adding zero points on a plot of a damped sine wave - quick question
Jesse - you could compare each element to its neighbour and see if there is a switch in sign i.e. from positive to negative or n...

12 years ago | 0

| accepted

Answered
How can I find one index for each row of a 2d matrix where a condition is met?
Funkadelala - try using the following which assumes that *A* and *B* have been defined as above cell2mat(arrayfun(@(k)find(A...

12 years ago | 0

Answered
I want to retrieve every data from my table (as atachment) in column red and green
Mimie - see <http://www.mathworks.com/help/matlab/ref/xlsread.html xlsread> for how you can read in the data from the spreadshee...

12 years ago | 0

| accepted

Answered
Using Newton Newton-Raphson iteration to solve a system on non-linnear equations
Dylan - the error Attempted to access x(2); index out of bounds because numel(x)=1. is telling you that your code is tre...

12 years ago | 0

Answered
How to save X ,Y coordinates in a structure?
Mario - if *s(k).PixelValues)* is a one dimensional array, then the standard deviation of this array will be a single element. ...

12 years ago | 0

| accepted

Answered
how to convert .tif to matlab.fig file?
Ferhat - just read the image in using <http://www.mathworks.com/help/matlab/ref/imread.html imread> and then use <http://www.mat...

12 years ago | 0

| accepted

Answered
Is it possible to change the color of the " waitbar" in the GUI? i mean the red colored thing moving inside the wait bar ? if yes how?
Pradeep - from <http://www.mathworks.com/matlabcentral/answers/101667-how-do-i-change-the-color-of-the-bar-in-a-waitbar-in-matla...

12 years ago | 0

| accepted

Answered
how i can make change on middle band of specific matrix?
gege - your first step may be to create the mask (or whatever you want to call it) that you have shown in the attached image. I...

12 years ago | 2

Answered
Getting current actual width of a column in a uitable
Daniel - you may want to check Yair Altman's undocumented MATLAB at <http://undocumentedmatlab.com/blog/uitable-cell-colors> whi...

12 years ago | 0

| accepted

Answered
Rename images using counter
Olu - you can use <http://www.mathworks.com/help/matlab/ref/sprintf.html sprintf> to create the new file name. Something like ...

12 years ago | 1

| accepted

Answered
How to save variable from GUI to workspace as a struct array
Tuan-Tu - why not just save the data to a mat file which can be accessible by the other functions outside of the GUI? You could...

12 years ago | 0

Answered
saving each iteration of Nested for-loops in a matrix
Antonio - for any iteration you have a png image and several variables. Try saving all of this to a structure like data.x1 ...

12 years ago | 0

Answered
Code sigadd help me
Syren - presumably you found *sigadd.m* from the submission by John Proakis at <http://www.mathworks.com/matlabcentral/fileexcha...

12 years ago | 0

| accepted

Answered
how to get following matrix using bsxfun
Saurabh - if *x* is your defined as x=[0 0 0;5 8 0; 7 6 0]; then you could replicate it 10 times as m = repmat(x,10,1...

12 years ago | 1

| accepted

Answered
How to extract variables from a structure?
Heo - try the following. Create a cell array outside of your loop to store the data that you read on each iteration of the loop...

12 years ago | 2

Answered
Save folder one above current directory
Zynk - try using *pwd* with *strfind* to determine the index of the last occurrence of the slash /. Then just remove it and eve...

12 years ago | 13

Answered
Strange problem with memory management in MEX
Stepan - if I try to run the same code (OS X 10.8.5, R2014a) it crashes unless I comment out all of the *mxFree* commands. Fo...

12 years ago | 1

Answered
Why do I need to matOpen() again after calling matGetDir()?
Guanqun - given that <http://www.mathworks.com/help/matlab/apiref/matgetdir.html matGetDir> determines the list of variables in ...

12 years ago | 1

Answered
why wont uitable accept this text
Jason - what has *dataset* been initialized too? If I set *B* as B = [ 'R01C01' 'R01C01' 'R01C01' 'R01C01' ...

12 years ago | 0

| accepted

Answered
Problem with portalpha function
The error message is indicating that either you are passing an incorrect set of input parameters to the *portalpha* function, or...

12 years ago | 0

| accepted

Answered
How to put a guide always on top?
Carlos - do you mean that you wish your GUI (created in GUIDE) should always be above any other window (figure, other GUI, etc.)...

12 years ago | 1

| accepted

Answered
Problem with mex compilation of Portaudio
Dorian - according to the <http://portaudio.com/docs/v19-doxydocs-dev/pa__ringbuffer_8c.html> link, these unresolved links are t...

12 years ago | 0

Answered
How to freeze the range of y-axis on an axes on gui?
Try using <http://www.mathworks.com/help/matlab/ref/ylim.html ylim> which will allow you to set the y-axis limits. In your case...

12 years ago | 0

Answered
Clear vairables in workspace using gui pushbutton callback??
Ozgur - if there are specific variables that you want to clear from the MATLAB (base) workspace, then you could use *evalin* wit...

12 years ago | 1

| accepted

Load more