Responded

Re: adding commas to a string

You can use a regular expression replacement: regexprep(String_With_Numbers, '(?<![.]\d*)\d{1,3}(?=(\d{3})+(?!\d))', '$&,') The...

8 months ago | 4925 views

Answered

Camera identified by hardware detection application but doesn't show up in image acquisition tool

With regards to copying the data, there is an alternative method, but exactly what use it is I do not know. I've actually manage...

Camera identified by hardware detection application but doesn't show up in image acquisition tool

With regards to copying the data, there is an alternative method, but exactly what use it is I do not know. I've actually manage...

1 year ago | 0

Solved

Sum all integers from 1 to 2^n

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

1 year ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

1 year ago

Answered

What's wrong with this expression?

Are a, b, & c scalars. If so: y = a*exp(-((x-b)/c).^2); However, a more general version makes use of bsxfun ( <http://matlab...

What's wrong with this expression?

Are a, b, & c scalars. If so: y = a*exp(-((x-b)/c).^2); However, a more general version makes use of bsxfun ( <http://matlab...

1 year ago | 0

Answered

Cylindrical to rectangular correction in image processing

Create projected co-ordinates of original image [Ny, Nx] = size(Img); x = (1:Nx).'; y = (1:Ny).'; Create original ...

Cylindrical to rectangular correction in image processing

Create projected co-ordinates of original image [Ny, Nx] = size(Img); x = (1:Nx).'; y = (1:Ny).'; Create original ...

1 year ago | 0

Answered

How to write a Monte Carlo Simulation Code?

Your question is ill-defined. Monte-Carlo simulations simply mean perform your simulation with varying inputs such that the i...

How to write a Monte Carlo Simulation Code?

Your question is ill-defined. Monte-Carlo simulations simply mean perform your simulation with varying inputs such that the i...

1 year ago | 0

Answered

How to show a sequence of images

You need to either add a callback function to the image/figure to respond to user key presses or mouse clicks, or you could add ...

How to show a sequence of images

You need to either add a callback function to the image/figure to respond to user key presses or mouse clicks, or you could add ...

1 year ago | 0

Answered

Matlab OOP, dependent class properties, correct coding techiques

I generally just ignore this warning - you can turn it off for the line, file or all files (I've done the latter). In your sc...

Matlab OOP, dependent class properties, correct coding techiques

I generally just ignore this warning - you can turn it off for the line, file or all files (I've done the latter). In your sc...

1 year ago | 1

| accepted

Answered

How can I use MATLAB to estimate the parameters of an exponential-gamma convolution?

Simple solution v = fminsearch(@(v) sum(abs(Data - YourGammaConvolutionFunction(v(1), v(2), v(3))).^2), [v01 v02 v03]); ...

How can I use MATLAB to estimate the parameters of an exponential-gamma convolution?

Simple solution v = fminsearch(@(v) sum(abs(Data - YourGammaConvolutionFunction(v(1), v(2), v(3))).^2), [v01 v02 v03]); ...

1 year ago | 0

Answered

How to prepare data set from an Image to find out number of clusters automatically?

What do you mean cluster? The image processing toolbox has functions for doing this (if you mean a cluster is when all adjacent ...

How to prepare data set from an Image to find out number of clusters automatically?

What do you mean cluster? The image processing toolbox has functions for doing this (if you mean a cluster is when all adjacent ...

1 year ago | 0

| accepted

Answered

How to continue GPIB reading with fscanf after EOI?

Try using fgetl to read the whole line, and then you can perform some error checking or different parsing rules. Also, surely...

How to continue GPIB reading with fscanf after EOI?

Try using fgetl to read the whole line, and then you can perform some error checking or different parsing rules. Also, surely...

1 year ago | 0

Answered

Nested For loops- Pleeease HELP!!

* Your code could easily be vectorized. * *never* use i or j for indexing because these are used for sqrt(-1) and can easily c...

Nested For loops- Pleeease HELP!!

* Your code could easily be vectorized. * *never* use i or j for indexing because these are used for sqrt(-1) and can easily c...

1 year ago | 0

Answered

Which camera should i use to acquire real time video to matlab

If you cannot narrow down your choice based on specifications, pick any! http://uk.mathworks.com/hardware-support/basler-came...

Which camera should i use to acquire real time video to matlab

If you cannot narrow down your choice based on specifications, pick any! http://uk.mathworks.com/hardware-support/basler-came...

1 year ago | 0

Answered

Logical or not logical?

* All numbers are by default of class type "double" (unless specifically cast as int etc.). * Logical values are of class "logi...

Logical or not logical?

* All numbers are by default of class type "double" (unless specifically cast as int etc.). * Logical values are of class "logi...

1 year ago | 1

Answered

Positive Semi-definite Matrix Problem

FYI: C' is conjugate transpose - you should use C.' if you don't want the complex conjugate. If it is indeed due to a numeric...

Positive Semi-definite Matrix Problem

FYI: C' is conjugate transpose - you should use C.' if you don't want the complex conjugate. If it is indeed due to a numeric...

1 year ago | 0

Answered

Which camera should i use to acquire real time video to matlab

Look here http://uk.mathworks.com/hardware-support/index.html?q=product%3A%22Image%20Acquisition%20Toolbox%22 It took about ...

Which camera should i use to acquire real time video to matlab

Look here http://uk.mathworks.com/hardware-support/index.html?q=product%3A%22Image%20Acquisition%20Toolbox%22 It took about ...

1 year ago | 0

Answered

How can i make a Moving Average Filter of order 4 for removing the noise from signal?

It doesn't look like you have fs=10kHz in (2) since you are aliasing that signal. Anyway, filtering can be achieved using the f...

How can i make a Moving Average Filter of order 4 for removing the noise from signal?

It doesn't look like you have fs=10kHz in (2) since you are aliasing that signal. Anyway, filtering can be achieved using the f...

1 year ago | 0

Posted

regexp to get filenames?

I use this method all the time (replace <folder> and <regular expression string> accordingly, and you could change the directory...

1 year ago | 6857 views

Responded

Re: Multithreading in GUI Application

The other methods described below seem to be an overly complicated way of doing the same thing. Remember that the GUI and the ex...

2 years ago | 4926 views

Answered

Camera identified by hardware detection application but doesn't show up in image acquisition tool

There are a couple of methods: # Write a dll C-wrapper that can interface between Matlab and the uEye SDK and then use the lo...

Camera identified by hardware detection application but doesn't show up in image acquisition tool

There are a couple of methods: # Write a dll C-wrapper that can interface between Matlab and the uEye SDK and then use the lo...

2 years ago | 2

Answered

Controlling uEye µEye camera in Matlab with shared library by loadlibrary

The issue is not quite to do with handling pointers - Matlab does that quite well when connecting to DLLs - you have to pass a d...

Controlling uEye µEye camera in Matlab with shared library by loadlibrary

The issue is not quite to do with handling pointers - Matlab does that quite well when connecting to DLLs - you have to pass a d...

2 years ago | 0

| accepted

Answered

Unable to detect IDS uEye camera

I didn't get far using this route (it was my initial plan and I purchased the IMAQ toolbox just for this purpose). Anyway, the w...

Unable to detect IDS uEye camera

I didn't get far using this route (it was my initial plan and I purchased the IMAQ toolbox just for this purpose). Anyway, the w...

2 years ago | 0

| accepted

Answered

ActiveX, Camera uEye

ActiveX uses the COM interface, which is now no longer supported by IDS (uEye cameras). It is now recommended to use the .NET in...

ActiveX, Camera uEye

ActiveX uses the COM interface, which is now no longer supported by IDS (uEye cameras). It is now recommended to use the .NET in...

2 years ago | 0

| accepted

Answered

uEye USB camera in Matlab?

There are a couple of methods: # Write a dll C-wrapper that can interface between Matlab and the uEye SDK and then use the lo...

uEye USB camera in Matlab?

There are a couple of methods: # Write a dll C-wrapper that can interface between Matlab and the uEye SDK and then use the lo...

2 years ago | 0

| accepted

Answered

Capture and Display image set using .NET library

Check out this post: http://stackoverflow.com/a/24937766 I've written a little function that will load the assembly if requir...

Capture and Display image set using .NET library

Check out this post: http://stackoverflow.com/a/24937766 I've written a little function that will load the assembly if requir...

2 years ago | 0

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

2 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

3 years ago