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

Answered
so I'm making a videogame
Do you have any calls to 'drawnow'? I don't think that simply changing the xdata/ydata is supposed to change handle visibility. ...

13 years ago | 0

Answered
Add Value to GUI
To clarify, you are trying to make a GUI? Are you going to replace the calls to 'input' (which gets information from the command...

13 years ago | 0

Answered
Need help very new to Matlab
What does this part mean "I basically need y2 to find its matching value below or above .01 in the y1 column"? y2 differs fro...

13 years ago | 0

Answered
watershed I have an image with contours but this ALgorithme don't output a good result, if someone has a good solution please , i need your help
Two things: -Have you looked through the demos for the Image Processing Toolbox at some of the other tools for contour dete...

13 years ago | 1

Answered
how write a matlab code for adaptive thersholding
This is a pretty big question. Is there a particular algorithm that you are trying to implement? A simple Google search for "Mat...

13 years ago | 0

Answered
Streeter Pheps Equations
What have you done so far? To get you started, look at the documentation for ode45 (and the other ODE solvers). The documentati...

13 years ago | 0

Answered
Technology used
Hardware/RAM/Disk space: This is a pretty difficult question to recommend on a general basis, as it depends on your specific im...

13 years ago | 0

Answered
how to read complicated CSV files into matlab?
Can you excerpt the actual text of your CSV file (not the file imported into Excel that you screenshot, but the actual original ...

13 years ago | 0

Load more