Answered
What is the approach to simultaneously changing the brightness on both the GUI axes and figure?
What do you mean by "brighten" the figure? Do you mean that you want the background color to become a lighter shade of gray (or ...

13 years ago | 0

Answered
Standard deviation ignoring 0s in matrix
One easy way would be to convert all zeros to NaN, and then use the nanstd function to ignore the NaNs in the std calculation. ...

13 years ago | 1

| accepted

Answered
How to extract data from a figure which contains a uitable?
The number that is given when you do get(gcf,'Children') is the handle to one of the child objects (presumably the uitable if th...

13 years ago | 0

| accepted

Answered
Mapping colored image on grayscale
What do you want the resulting image to look like? Do you want the brain to render as gray, with the tumor shown in the flame-li...

13 years ago | 0

Answered
rows which do not contain zero
row = any(D,2); rowCount = sum(row); %number of rows with non-zero elements

13 years ago | 0

| accepted

Answered
Brain tumor detection in CT data
Hi Peter, Nobody is going to be able to give you a full turnkey solution to your problem, largely because a) such a task is p...

13 years ago | 0

| accepted

Answered
I have a code for Powell's hybrid method for optimization can any one change it to Matlab
Hi Raj, This code appears to be written in Fortran. In general, nobody on this forum is going to have the time to convert you...

13 years ago | 1

Answered
How can i store the labeled coordinates in differnt arrays?
Run regionprops() on B, and then look at the 'PixelList' property.

13 years ago | 0

Answered
Need help with a While loop
I reformatted the code for easier reading. A few questions: # 1. what are X and Y for? They don't appear to be used anywhere...

13 years ago | 0

Answered
Modifying impixelinfo to display 3d coordinates
I don't believe that impixelinfo or impixelinfoval allows you to specify a custom callback, which is what you would need to do w...

13 years ago | 0

| accepted

Answered
matrix turning nans to 1
Let M be your matrix. M(isnan(M))=1;

13 years ago | 2

| accepted

Answered
encryption of .mat files
Hi Khaled, This hasn't gotten any bites yet, so I thought I'd take a stab at it, although I am not an encryption expert by an...

13 years ago | 1

Answered
irregular ,specific geometric shapes
Hi selim, I've actually worked on a similar problem of trying to match irregular shapes from a pattern of other shapes. (In m...

13 years ago | 0

| accepted

Answered
Create a 4-pole, 300-6000HZ bandpass butterworth filter?
If you have the Signal Processing Toolbox, you can use the 'butter' function. doc butter Also, you mention that you hav...

13 years ago | 0

Answered
Computing the curvature of a boundary
Hi Said, I have done something similar. Here's one approach: If you have the Spline Fitting Toolbox, you can use the periodic...

13 years ago | 0

Answered
Proper implementation and use of fmincon
Hi Mitesh, I'm confused as to your problem formulation. The x(1)=[1 2 3 4] and x(2)=[6 7 8] are not valid MATLAB. What does t...

13 years ago | 0

Answered
Manipulate data in cells
Hi Rebecca, I think it would be easiest just to loop through all of the elements of the matrix. To access a given element in...

13 years ago | 0

| accepted

Answered
Selecting a particular part of a string variable
Regular expressions might provide an easier way. fcn = @(s) regexpi(s, '^(\D+)', 'match', 'lineAnchors'); %regex function ...

13 years ago | 0

Answered
GUI: draw 2 point
One way to do it is to reset the callback 'windowbuttondownfcn' after two clicks. Something like this: function pushbutton1...

13 years ago | 0

| accepted

Question


Documentation of 'spectrum' function from Matlab 5.x releases?
Hi everyone, I am upgrading some very old code that I inherited. The function comments indicate that code was originally writ...

13 years ago | 1 answer | 0

1

answer

Answered
How to get specific data with an input, without using eval command
Hi Juan, I agree that you should be able to do it without eval. However, I am still a little unclear how you want your code t...

13 years ago | 0

| accepted

Answered
accelerating code in matlab - for loop
Could you please format your code properly? It is difficult to tell which lines are commented, etc. Please edit your question to...

13 years ago | 0

Answered
Maximum separation of certain points on a 2d plot
You write that "the optimum kx+b line should separate points in such a manner so that there are no points with label 1 in region...

13 years ago | 0

Answered
Skull striping without affecting tumor region
If you have the Image Processing Toolbox, you can use 'regionprops' to identify the various objects after your thresholding. For...

13 years ago | 1

Answered
'terminator ' 'LF'
The 'terminator' character is an ASCII character (in this case, ASCII char 10) that MATLAB looks for from the serial port to ind...

13 years ago | 0

Answered
Smart Solution needed (reading bar code)?
This isn't really a MATLAB question, but anyway.... What exactly do you mean by "manage the extraction or carrying out the su...

13 years ago | 1

Answered
*Import data from a file - HELP*
I would first read the file into a string using fileread(). You should then be able to parse the file using regexp(), with the ...

13 years ago | 0

Answered
I have a closed outline How t associate a label for each pixel that exit in the region limited by outline
Can you clarify what you are trying to do? Is the closed outline in an image? In that case, use bwboundaries() to get the pixels...

13 years ago | 0

Answered
how to get boundary of a hand image???
Images in MATLAB are read in as row x column matrices, like any other matrix. Thus, the horizontal position of a given pixel is ...

13 years ago | 0

Answered
SEGMENTATION
There is no generic code that we can send you--it entirely depends upon your image. Regions of interest can be identified using ...

13 years ago | 0

Load more