Hi There,
I am using web-camera to capture real-time image via matlab, and succeeded to preview the video using simple videoinput, getsnapshot, and preview functions.
To be honest, I am not really satisfied with the result though, because the view-angle is still too wide and I can not set the position of my webcam manually, means I ca...
Is there a built in matlab function to find out if a matrix contains a value?
Thanks
...
Hi,
I have two waveforms which are linked by a numerical factor. I need to use optimal scaling (least squares) between the two waveforms to calculate this factor in Matlab. Unfortunately I have no idea how to do this. The two wave forms are seismic signals related by the velocity of the seismic waves, which I'm trying to calculate. Any ...
I have a computer vision set up with two cameras. One of this cameras is a time of flight camera. It gives me the depth of the scene at every pixel. The other camera is standard camera giving me a colour image of the scene.
We would like to use the depth information to remove some areas from the colour image. We plan on object, person ...
Hi,
I have generated a plot like
figure; hold;
axis([0 10 0 10]);
fill([ 1 1 5 5], [5 1 1 5],'b')
and now I want to have this plot as an matrix so that I can i.e. filter the blog with a gaussian. Googleing I found this thread Rasterizing Plot to Image at Matlab Central. I tried it, but I could only get it to work for line or function...
Hello,
Can anyone enlighten me about the use of fudgeFactor in Matlab?
Thanks.
...
Is there a way to save MATLAB error messages to a file?
This may be a simple issue, but Google couldn't give me an answer. I've compiled a GUI executable for use without a MATLAB license, and occasionally it freezes. For aesthetic purposes, I suppressed the command window normally accompanying such an executable, so I can't get an erro...
Hey,
I have performed an fft (fast fourier transform) on a time series waveform in Matlab, but I seem to have a weird wave actually in the fourier transform plot, although there are spikes this wave looks like something I'd expect to see only in the time domain. Is there any programming reason why this could happen?
...
I'm using the C++ API to fire up MATLAB (via engOpenSingleUse). Everything's working fine. But I'd like to change the title of the window from "MATLAB Command Window" to something else.
I often have 4 or 5 of them open, and occasionally one gets orphaned if my program crashes. If I could change the title, I'd have a better shot of kn...
In ordinary class methods I can supply content for the "help" command in MATLAB. However, when writing an abstract method, the help function does not see the abstract methods. For example, if you have a class NeedsHelp:
classdef NeedsHelp
methods (Abstract)
INeedHelp(self)
% This method is not visible to the help com...
I was wondering if there is a way to create a '.exe' file from ' .m' file in matlab , such that it can be run in machine which does not have matlab ( like it can be done in c, C++)
I know writing a Matlab function is one way, but not sure if it can run in machine without Matlab.
Also i would like to hide my code and just create a scri...
is it possible to add (install) symbolic toolbox from earlier versions of MATLAB to newer one?
if it is, how?
...
Hello,
I have a segmented image as shown. Is there a way to smoothen the lines so that it does not look so wavy? Thanks.
...
Hello,
I'm a beginner in MATLAB and image processing.
I encountered a problem while trying to use the batch processing and hope someone would be able to enlighten me. Thanks.
Following the example from MATLAB, I did these:
p = which('Picture1.tif');
filelist = dir([fileparts(p) filesep 'Picture*.tif']);
fileNames = {filelist.name}'
...
I want to get a vector of elements of a Matlab matrix at predefined locations. For example, I have the following
>> i = [1,2,3];
>> j = [1,3,4];
>> A = [1,2,3,4; 5,6,7,8; 9,10,11,12; 13,14,15,16]
A =
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
I want a vector that will give me ...
I am trying to compare two data sets in MATLAB. To do this I need to filter the data sets by Fourier transforming the data, filtering it and then inverse Fourier transforming it.
When I inverse Fourier transform the data however I get a spike at either end of the red data set (picture shows the first spike), it should be close to zero a...
I would like to do element wise addition over matrices while skipping NaN values.
MATLAB and Octave have nansum, but it does column wise addition within a matrix.
Let:
a = NaN * zeros(3)
b = ones(3)
I want:
c = nan+(a, b)
and
c = b
and:
d = nan+(a,a)
and
d = a
...
I am looking for a simple way to visualize some of my data in numpy, and I discovered the mlabwrap package which looks really promising. I am trying to create a simple plot with the ability to be updated as the data changes.
Here is the matlab code that I am trying to duplicate
>> h = plot([1,2,3], [1,2,3], '-o');
>> set(h, 'XData', [...
I've got the following equation:
a^3-4*a^2+[1 0 2;-1 4 6;-1 1 1]=0
How do I solve this in MATLAB?
...
I would like to add two vectors with different lengths in Matlab or Octave. E.g.
aa = [1 2 3 4];
bb = [100 100];
Which should result in a vector cc containing
cc = [101 102 3 4]
Can anyone figure out how to do this?
Update: This is the code I ended up with for the signals that I then later convert to grey scale images.
load train...