Do Matlab functions imread and imwrite belong to image processing toolkit? its name seems like image processing functions, but if we look at here:
http://www.mathworks.com/help/toolbox/images/ref/f3-23960.html
they are not. Can anyone give some info?
Thanks alot.
...
Hello if I wanted to do the opposite of what has been explained in this link:
http://stackoverflow.com/questions/3595485/other-problems-with-data-acquisition-from-matlab
I would pass by the vectors (eg. codeserv = [NNNNNNNNNN ....]
area = [IIIIIII ....] [.........]) to create the text file with the same format as in the link, ie:
Com...
I have a license for the matlab compiler and can compile exe files fine, is there any way to compile my project into a linux binary from my windows machine?
...
I am using meshm to plot densities.
How do I calculate the center point for each of the bins? I want to associate the data in m with the centerpoints I have looked at the source code of meshm and believe the solution will be a modified version of meshm that returns the latitude and longitudes of each bin's center point.
meshm calls th...
I would like to plot the classification boundary for the model obtained using Logistic Regression in Matlab. Solutions other than in Matlab are welcome but I will need access to Logistic Regression code for modification.
...
I have a MATLAB GUI I am working on and I would like to make a progress or status bar to show the user how long a certain script will take to run or where it is running relative to when it will finish.
I am new to this GUI thing, anyone have any ideas on how this could be done?
I dont understand any of the examples (aka don;t know how...
I have recently learned, that in MATLAB, the "!" mark runs the code in a command line and follwed by the "&" will pull up the command window, FOR EXAMPLE:
!RUN_FILE.bat&
It was a great day when I discovered this, or should I say when someone told me this. Anyways I was wondering if there was a way to run this batch file on a linux ma...
I am trying to generate a piecewise symbolic function in Matlab. The reason it has to be symbolic is I want to be able to integrate/differentiate the function afterwards and/or insert actual values. I have the following function:
x^3/6 -> 0 < x <= 1
(1/6)*(-3*x^3+12*x^2-12x+4) -> 1 < x <= 2
(1/6)*(3*x^3-24*x^2+60x-44) -> 2 <...
I really don't think this is a precision problem, the answer is .226-ish...
here's the exact code:
val = I(i,j)
bucketSize
pos = val / bucketSize
'I' is just a matrix I'm taking values from. Here is the output from MatLab:
val =
29
bucketSize =
128
pos =
0
what am I missing?
...
There is an image A of fixed size 256*256*3 (RGB). The mathematical formula for covariance between two adjacent pixels values x,y in an image of is popularly known to be
cov(x,y) =1/n summation _i =1 to N [ E(x_i-E(x))(y_i-E(y))]
r_xy= cov(x,y) / ( sqrt(D(x)* D(y) ))
where r_xy is the correlation coefficients between two horizontal...
I wish to compute this formula in matlab
[m,n,d]=size(img1);
matrix1=sum(abs(img1-img2));
a= matrix1/ m*n ;
b=a*100;
where img1,img2 are two images of dimension 512*512*3
The objective is to obtain a single numeral value, but i am getting a matrix. The actaul formula in case of a matrix A,B with i rows and j columns is
= (summation [...
Hi there. I have a system of 2 equations in 2 unknowns that I want to solve using MATLAB but don't know exactly how to program. I've been given some information about a gamma distribution (mean of 1.86, 90% interval between 1.61 and 2.11) and ultimately want to get the mean and variance. I know that I could use the normal approximation b...
I have a matrix, that I want to find a column that has item in row1 == x, and item in row2 == y; What is the fastest way to do this?
Thanks,
CP
...
Hi all,
I have the following ODE:
b'(t) + k16*b(t) = k15*a(t)
where k15 and k16 are constants.
Any idea on how to solve it?
Thanks!
Amit
...
Hello,
I have a txt file from which I want to load date & time data. UI import wizard ignores date & time string and loads only numeric data, which is also present in the file. How can I write a script that would load this date & time data as a vector of multiple values (I mean, 1st date, 2nd date and so on). I know how to manipulate th...
Is there a way to find the mean square error in matlab between 2 images A,B(say) in true color of dimension 256*256*3 ? The mathematical formula for a matrix say M1 and M2 is as under
mean sq err=1/n*n { summation (square[M1(i,j)-M2(i,j)])}
where i stands for row and j stands for column
...
I want to solve an equation for a different value in each cycle of a for loop. I usually include the value that I am solving for in the m-file function but I can't change the m file at each cycle in the for loop. Is there a way to solve the use fsolve but for a value !=0.
...
Hi. I have a large amount of data to import in to MATLAB, representing location of points in cartesian space. Which of the following is the most conventional for storing and processing standard XYZ data?:
OPTION #1
Store X, Y and Z coordinates as separate n * 1 vectors (possibly within a structure?). This makes:
Plotting simple: plot...
I am having a bit of trouble understanding how the precision of these doubles affects the outcome of arithmetic operations in Matlab. I thought that since both a & b are doubles they would be able to carry out operations up to that precision. I realize there can be round-off error but since these numbers are well within the 64-bit number...
Whenever fsolve finishes, it gives the output
Equation solved.
fsolve completed because the vector of function values is near zero
as measured by the default value of the function tolerance, and
the problem appears regular as measured by the gradient.
<stopping criteria details>
Is it possible to stop this?
...