164 total contributions since 2009

http://www.crisluengo.net/

Professional Interests: Image analysis

Answered

Why function gradmag isn´t working for me?

This code, which you have copied from <https://www.crisluengo.net/index.php/archives/217 my blog>, requires DIPimage to run. Get...

Why function gradmag isn´t working for me?

This code, which you have copied from <https://www.crisluengo.net/index.php/archives/217 my blog>, requires DIPimage to run. Get...

environ un an ago | 0

Answered

mxCreateSharedDataCopy no longer supported in R2018a

Note that the new C++ interface (introduced in R2018a) has documented ways of creating shared data copies: <https://www.mathw...

mxCreateSharedDataCopy no longer supported in R2018a

Note that the new C++ interface (introduced in R2018a) has documented ways of creating shared data copies: <https://www.mathw...

plus d'un an ago | 1

Answered

.mex File crashes when executed in rapid succession

pointer[(iField + iSensor * 11) * bufferSize + iElement] should probably be pointer[(iField + iSensor * 11) * nNoEleme...

.mex File crashes when executed in rapid succession

pointer[(iField + iSensor * 11) * bufferSize + iElement] should probably be pointer[(iField + iSensor * 11) * nNoEleme...

presque 2 ans ago | 1

| accepted

Answered

UTF-8 strings in MEX-files

A solution when using C++11: I found this answer on StackOverflow: http://stackoverflow.com/a/38383389 It turns out C++11 ha...

UTF-8 strings in MEX-files

A solution when using C++11: I found this answer on StackOverflow: http://stackoverflow.com/a/38383389 It turns out C++11 ha...

plus de 2 ans ago | 1

| accepted

Question

UTF-8 strings in MEX-files

This question has been asked here before, but not with any satisfying answers. Since all those answers, a new documented functio...

plus de 2 ans ago | 3 answers | 1

Answered

Determine if using HG2

Revisiting this issue. The best method discussed here is using `graphics` version. However, you currently get a warning when ...

Determine if using HG2

Revisiting this issue. The best method discussed here is using `graphics` version. However, you currently get a warning when ...

plus de 2 ans ago | 0

Submitted

boxplot

Elegant box plot with a few customisation features

plus de 4 ans ago | 5 downloads |

Submitted

svg_fix_viewbox(in_name,varargin)

Make SVG file stretch with containing HTML element

plus de 4 ans ago | 0 downloads |

Answered

Determine if using HG2

You can simply check the class of the figure handle: function tf = ishg2(fig) tf = isa(h,'matlab.ui.Figure'); or: ...

Determine if using HG2

You can simply check the class of the figure handle: function tf = ishg2(fig) tf = isa(h,'matlab.ui.Figure'); or: ...

presque 5 ans ago | 2

Answered

DIPimage initialise

If you downloaded DIPimage from its website, <http://www.diplib.org/>, you would have noticed three things: 1- The installati...

DIPimage initialise

If you downloaded DIPimage from its website, <http://www.diplib.org/>, you would have noticed three things: 1- The installati...

presque 5 ans ago | 0

Answered

DIPimage – What is your experience?

Dear Marco, I am the main developer of DIPimage. Thank you for the nice words. I understand hesitation among people used t...

DIPimage – What is your experience?

Dear Marco, I am the main developer of DIPimage. Thank you for the nice words. I understand hesitation among people used t...

presque 5 ans ago | 0

| accepted

Solved

Factorize THIS, buddy

List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

environ 7 ans ago

Solved

Bottles of beer

Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

environ 7 ans ago

Solved

radius of a spherical planet

you just measured its surface area, that is the input.

environ 7 ans ago

Solved

Reverse the vector

Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

environ 7 ans ago

Question

Unlocking answers to last Cody problem?

I've written a valid answer to the last Cody problem, but it is not even close to the best answer. I have no idea how they made ...

environ 7 ans ago | 1 answer | 2

Solved

Find the palindrome

Given the string a, find the longest palindromic sub-string b. So when a = 'xkayakyy'; you should return b = 'kayak';

environ 7 ans ago

Solved

Prime factor digits

Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

environ 7 ans ago

Solved

Interpolator

You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

environ 7 ans ago

Solved

It dseon't mettar waht oedrr the lrettes in a wrod are.

An internet meme from 2003 (read more <http://www.snopes.com/language/apocryph/cambridge.asp here>) asserted that readers are re...

environ 7 ans ago

Solved

Alphabetize by last name

Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

environ 7 ans ago

Solved

Find the peak 3n+1 sequence value

A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

environ 7 ans ago

Solved

Distance walked 1D

Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

environ 7 ans ago

Solved

Rotate input square matrix 90 degrees CCW without rot90

Rotate input matrix (which will be square) 90 degrees counter-clockwise without using rot90,flipud,fliplr, or flipdim (or eval)....

environ 7 ans ago

Solved

Mandelbrot Number Test [Real+Imaginary]

The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

environ 7 ans ago

Solved

Solve Quadratic : No * - or key functions permitted

Solve the quadratic equation *ax^2+bx+c=0*. However, some of the normal functions and symbols are not allowed. x=[ -b +/- sq...

environ 7 ans ago

Solved

Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed

Find the remaining side of a triangle given the hypotenuse and a side. However, the normal functions and symbols are not allowe...

environ 7 ans ago

Solved

Multiply 2 numbers

Very easy, you just have to multiply 2 numbers but you cannot use the following signs (*, /, - ,^) ,mtimes , times, cross, pro...

environ 7 ans ago

Solved

Top of the Hour : Return from your routine within 1 second of the hour

*Top of the Hour* Submit your routine such that it returns to Cody after the hour and within 1 second of the hour. The tes...

environ 7 ans ago