matlab

Alternatives to Matlab's Image Processing Toolkit

Are there any comprehensive open-source alternatives to Matlab's Image Processing Toolkit? ...

Using bash shell inside Matlab

I'm trying to put a large set of bash commands into a matlab script and manage my variables (like file paths, parameters etc) from there. It is also needed because this workflow requires manual intervention at certain steps and I would like to use the step debugger for this. The problem is, I don't understand how matlab interfaces with ...

binary linear programming solver in Python

I have a Python script in which I need to solve a linear programming problem. The catch is that the solution must be binary. In other words, I need an equivalent of MATLAB's bintprog function. NumPy and SciPy do not seem to have such a procedure. Does anyone have suggestions on how I could do one of these three things: Find a Python li...

Similarity search between time series in Matlab. Possible ? I cant find R-tree implementation in matlab

Hi there, I would like to implement similarity search in matlab. I wanna to know is it possible ? My plan is to do use 2 popular similarity measurement which are Euclidean Distance and Dynamic Time Warping. Both of these will be applied on time series dataset. My question at this point is how can I evaluate both of these two measurem...

How to detect if there is an object inside an image using MATLAB

I'm sorry if this sounds stupid but I want to make a system that can detect if an image has an object (i.e face) inside it or not. Can you help me with the MATLAB tutorial? Sorry for my bad English. ...

Running Matlab with virtual PC

I have a GUI program for MATLAB that won't run on a mac. Can I use virtual PC or something to run it on my mac or would I have to reinstall MATLAB to do that? ...

How to solve a differential equation with MATLAB

i have a problem. that is : y"^2 + 2*y'+ 3*y = sin(x), y'(0)=0, y(0)=1 I want solve this problem with MATLAB but I can't. Can you help me ? ...

Generating random noise in matlab

When I add Gaussian noise to an array shouldnt the histogram be Gaussian? Although the noise is random, the distribution should be gaussian right? That is not what I get. A=zeros(10); A=imnoise(A,'gaussian'); imhist(A) ...

Matlab Problem: If i have a set of matrix and would like to compare any values in the matrix with a number then replace it with 1 or0.

Hi all, I am really new with matlab and would like some helps with matlab.. Here is the problem: Say if i have a 256 by 256 matrix. I would like to replace any values that are 'greater' or 'equal' to 10 with 'one' and name the rest as 'zero' i.e. (values <10).. How can I do it?? For example, 2 3 6 15 24 32 1 7 39 10.... 1 5 7 11 19...

Textfiles problem

I've been trying to call my textfile and use my data to plot a curve for analysis and the code i use is [NP,Fluenz,ODRescan1,ODRescan5,ODRescan9,ODRescan15,StdDevRe1,StdDevRe5,StdDevRe9,StdDevRe15] = textread(x,'%f %f %f %f %f %f %f %f %f %f','headerlines',4) and each time i ran this ,an error appear.How can i do this ,pls any help.Thank...

need help with sorting an array

Suppose I have the following array 1.0000 2.0000 0.4231 1.0000 3.0000 0.8050 1.0000 4.0000 0.7116 2.0000 4.0000 0.6682 2.0000 5.0000 0.4460 2.0000 7.0000 0.5818 3.0000 4.0000 0.0977 3.0000 6.0000 0.5989 3.0000 7.0000 0.3237 4.0000 7.0000 0.2882 5.0000 6.0000 0.1456 5.0000...

Function imnoise() in Matlab

Why is the mean for imnoise() limited to [0,1]? Is there a way to extend it? ...

How can i pass command line arguments to a standalone MATLAB executable running on linux/unix?

How can i pass command line arguments to a standalone MATLAB executable running on Linux/UNIX? I need to compile my MATLAB script as a standalone file that can be run on a machine without matlab present. It needs to be able to work in a way similar to C's argv[], where you do the following: COMMAND LINE: myfile argument1.txt argument2...

Criticizing Matlab from a software engineer point of view

I am an experienced C++/Python/Java programmer starting to write some Matlab code and I'm having a really hard time getting use to it. Somehow it reminded me of something I read on a random blog a while ago : Closed languages owned by a single company without the resources to build out an ecosystem can and do fail eventually. Someti...

Why does fopen fail the first time, but work the second time?

Hi, I am using Matlab to create a new file by calling fid = fopen(filename,'w') since filename doesn't exist, it should create a new file and give me a valid file descriptor. Instead it returns -1. If I run the code again however, I get fid = 3. This is being run on ubuntu but it apparently works fine on windows and I can't figure ...

Return perl array to MATLAB

Is there a way to return a perl array to MATLAB? Or do I just have to return a string and parse it? I'm using a call from MATLAB to a perl script to interface with a MySQL database. After I get the results of a query, I want to pass it back to MATLAB. EDIT: I'm using a modified version of perl.m to call the perl script. It calls the ver...

Problem looking at data between 0 and -1...

I'm trying to write a program that cleans data, using Matlab. This program takes in the max and min that the data can be, and throws out data that is less than the min or greater than the max. There looks like a small issue with the cleaning part. This case ONLY happens when the minimum range of the variable being checked is 0. If this i...

Modeling HSV Color Space in MATLAB

I am able to create a 3D cone in MATLAB, but: does anyone know how to paint the cone so that it recreates the HSV color space? I know there is the command: colormap hsv; but how do I use it? Thanks in advance. ...

Integration with matlab

hi, i want to solve this problem: i don't want to use "int", i want to use "quad" family (quad,dblquad,triplequad) but i can't. can you help me? ...

matrix based on vector and diagonal elements=1 using matlab

How can I create the following matrix 1 0 0 0 0 k1 1 0 0 0 k2 k1 1 0 0 k3 k2 k1 1 0 k4 k3 k2 k1 1 ...