separate object from an image completely
Hello all, Im just starting with matlab. we are a group of lecturers that are very new to this software. we are interested in the image processing capabilities in matlab. We have a few questions. 1. If i have an image (eg http://bit.ly/dxTKGh) we have already done edge detection to find the different objects in t... 8 Feb 2010 14:30
finding nearest value in 2D arrays
Hi! I have three arrays that include latitude, longitude, and corresponding values at each pixel location. latitude=[10 20 30 40 50; 10 20 30 40 50; 10 20 30 40 50]; longitude=[80 80 80 80 80; 70 70 70 70 70; 60 60 60 60 60]; values=[2 6 3 1 3; 3 1 7 9 3; 1 2 7 3 3]; Here... 8 Feb 2010 14:30
basic sphere volume plot
Hi, I need to plot the volume of a sphere (V=(4/3)pir^3) with the radius bounds being from .1 to 10. Everytime I run it I always get this error. I just can't get it to work so please help x = .1:.1:10; y= x^3*pi*4/3; plot(x,y) ??? Error using ==> mpower Matrix must be square. -mike ... 8 Feb 2010 13:22
CSVREAD issue: How to treat characters?
Hi all, I am trying to read a csv file that is full of numerical values, but one single column (the most important for my purposes) has a couple of 'C' characters when the value is missing. And because of that csvread crashes. The file is too long (above 2million lines), to open it with excel and have a simple repla... 8 Feb 2010 15:39
beginners matlab
Hi, few beginner questions. in matlab are arrays and matrices ultimately the same thing? I want an array of three columns. The first column holds the time, 2nd holds a pressure, and the third a volume. I created an array pv = ones(1000, 3); i believe this will be an array of 1000 rows, and 3 columns. then ... 23 Feb 2010 11:17
isequal function handles
The help doc on isequal() does not say how it treats function handles. Experimentation shows inconsistent results, however: isequal(@sin,@sin) ans = 1 isequal(@(x)x+1,@(x)x+1) ans = 0 Does anyone know why the case of anonymous functions does not work? Since an error was not thrown, ... 8 Feb 2010 14:30
Interpolation of Points on a Curve
Hi Everyone, Say I have 5 points of data that describe a relationship between variable A and variable B. I put these into an array so that I can use it as a look up table ( e.g an arbitrary example: if A = 1, then B = 5). But what happens if the A value I need is not one of my original 5 points in the A vector ... 8 Feb 2010 11:05
Determine BufSize in texscan
Hi everybody, this is a small question about memory usage in textscan. Is there a formula to determine the size of the buffer depending on the number of characters in textscan? Thanks. Pascal ... 8 Feb 2010 11:05
convertiing from cell to matrix
I have <39X1> cell that I am trying to convert to matrix. When I use cell2mat I get the following error msg: Chi_cell = '4.53725e-006' '4.87675e-006' '5.62039e-006' '6.41923e-006' '4.37755e-006' '3.65092e-006' '7.15641e-006' '3.99299e-006' '3.82947e-006' '6.05986e... 8 Feb 2010 14:30
Send scripts to Cygwin from matlab script
Hello everyone, I am currently building a GUI over a numerical model that was initially designed to run under Linux. However, I'd like to make my package as much as possible platform-independent, so I adopted the Cygwin option for Windows. However, I didn't manage yet to find the way to send my script and my vari... 8 Feb 2010 09:58