matlab

How can I access a postgresql database from matlab with without matlabs database toolbox?

I tried already to use pgmex. Unfortunately it doesn't work with libpq5 (matlab immediately crashes). ...

How do I implement such an invertible mapping(one-to-one) for curves using MATLAB?

So that several curves X,Y can be mapped to another curve R,which is invertible so that I can still get X,Y from R. Anyone has ideas for this or perhaps some term I can google it myself? UPDATE I think some clarifications are deserved here. map(X,Y) => R; invertible_map(R) => (X,Y) ...

Write a MAT file without using matlab headers and libraries.

Hello all, I have some data that I would like to save to a MAT file (version 4 or 5, or any version, for that matter). The catch: I wanted to do this without using matlab libraries, since this code will not necessary run in a machine with matlab. My program uses Java and C++, so any existing library in those languages that achieves this...

MATLAB feature function

I'm curious where to find a complete description of FEATURE function? Which arguments it accepts? No documentation was found. I heard only about memstats and getpid. Anything else? >> which feature built-in (undocumented) ...

Problem with input filter using doxygen 1.6.3 on windows XP

I am trying to use doxygen to generate documentation for some matlab classes I have written. I am using the doxygen-matlab package, which includes a perl script to kludge matlab .m files into c++ style commented files, so that doxygen can read them. In my doxyfile, I have set (according to the instructions) FILTER_PATTERNS = *m=...

image processing toolbox in matlab

I've got a specific question and a related more general one... Why does imextendedmax() not give for example 9 in A(3,3) as a max? Generally... what is the best way for finding multiple maxes/peaks? The nice thing about imextended max is it allows a threshold where presumably everything under that threshold is not counted whereas imregio...

MATLAB intersection of 2 surfaces

Hi everyone, I consider myself a beginner in MATLAB so bear with me if the answer to my question is an obvious one. Phi=0:pi/100:2*pi; Theta=0:pi/100:2*pi; [PHI,THETA]=meshgrid(Phi,Theta); R=(1 + cos(PHI).*cos(PHI)).*(1 + cos(THETA).*cos(THETA)); [X,Y,Z]=sph2cart(THETA,PHI,R); surf(X,Y,Z); %display hold on; x1=-4:.1:4; [X1,Y1] = mes...

Matlab: getting "Unexpected error status flag encountered. Resetting to proper state"

I have a matlab script, that every now and them produces the message: Caught std::exception Exception message is: bad allocation Unexpected error status flag encountered. Resetting to proper state. What could be causing this? ...

Finding many local max in an image (using MatLab)

How do you go about figuring our multiple max in a 2D image where the max aren't necessarily all the same height? I have found that the imregionalmax(), imextendedmax(), and findpeaks() functions aren't necessarily that helpful because they give many local max that are really just maxes within the background noise. I tried bw=array>imdi...

How do I encapsulate some text information in an image and extract it using MATLAB?

new_img = convert(img, text); (img, text) = convert_back(new_img); Can someone illustrate with a built-in image of MATALB? ...

MATLAB: How does the syntax (:) work?

Given the following example: >> I=[2 1 3;3 2 4] I = 2 1 3 3 2 4 >> I(:) ans = 2 3 1 2 3 4 >> I(1:2) ans = 2 3 Why does I(:) return a column vector while I(1:2) returns a shorter row vector? ...

building .exe format from matlab

hello. my m file is: x=0:0.01:2*pi; y=sin(x); plot(x,y) I want build this program by .exe format. i want run this .exe in a computer that dosen't has matlab. can you help me? ...

Pass data from workspace to a function

I created a GUI and used uiimport to import a dataset into matlab workspace, I would like to pass this imported data to another function in matlab...How do I pass this imported dataset into another function....I tried doing diz...but it couldnt pick diz....it doesnt pick the data on the matlab workspace....any ideas?? [file_input, pathn...

??? Error using ==> dlmread at 55 Filename must be a string.

[file_input, pathname] = uigetfile( ... {'*.txt', 'Text (*.txt)'; ... '*.xls', 'Excel (*.xls)'; ... '*.*', 'All Files (*.*)'}, ... 'Select files'); D = uiimport(file_input); M = dlmread(D); X = freed(M); Getting errors with dlmread......"??? Error using ==> dlmread at 55 Filename must be a string."..need to get the data from dlmread t...

VB.Net plugin using Matlab COM Automation Server...Error: 'Could not load Interop.MLApp'

My Problem: I am using Matlab COM Automation Server to call and execute matlab .m files from a VB.Net plugin for a CAD program called Rhino 3D. The code works flawlessly when set up as a simple Windows Application in Visual Studio, but when I insert it (and make the requisite reference) into my .Net plugin and test it in the CAD program...

How do I count the number of persons in an image using MATLAB?

Has anyone ever tried doing this kinda job? ...

how to do thread in matlab?

how to do thread in matlab? i want to run one function on two variables simulatniosly how to do it? ...

What's this setting of MATLAB for(which is causing lots of troubles for lots of people)?

This setting in PATH: D:\MATLAB\R2007b\bin\win32 Here is a fresh bad affect by this setting for me: http://stackoverflow.com/questions/2712913/why-does-this-program-require-msvcr80-dll-and-whats-the-best-solution-for-this-k And here's an issue reported by another guy: http://groups.google.com/group/ggobi/browse_thread/thread/dacea0...

MEX-File to Output Pulse in a Loop to a DAQ-Board

Hi there, i figured I must use a MEX-File to output Digital pulses in a loop (40 kHz) from Matlab to my DAQ-Board, I have some APIs from the DAQ-Board vendor, but I really dont know if they are useful. It´s a big documentation on the Mathworks website about MEX-File and APIs, that just make me confused. So I´m asking here if someone ca...

Statistics toolbox in Matlab

Is the default linear discriminant analysis (LDA) in Matlab the Fisher discriminant analysis? ...