Community Profile

Contact

Top 5% contributor

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...

accepted

1

Answered 1 month ago

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

2387 views

Posted 1 month ago

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

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

Solve this!

1 year ago

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

Check if sorted. Example: Input x = [1 2 0] Output y is 0

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

Regardless of input, output the string 'yes'.

Given a number n (1<=n<=9), return a left justified numeric matrix p with all the palindromes of the form 1 to n and back to 1. ...

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

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...

0

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

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

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 ...

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

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

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

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

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

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...

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

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...

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

1809 views

Responded 5 months ago

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...

Answered 5 months ago

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...

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...

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

Load more