Community Profile

Andriy Nych


34 total contributions since 2007

http://stackoverflow.com/users/1835141/anandr
Professional Interests: image processing, signal processing, H/W programming

Contact

Andriy Nych's Badges

Contributions in
View by

Solved


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

11 months ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

11 months ago

Solved


Matrix of almost all zeros, except for main diagonal
Write a program to input an integer n and build a n-by-n matrix with the numbers 1,2,...,n on the main diagonal and zeros elsewh...

11 months ago

Solved


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

11 months ago

Submitted


fog3D
FOG3D adds 3D fog to the axes to emphasize depth of the shown 3D plot

2 years ago | 2 downloads |

Thumbnail

Solved


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

3 years ago

Solved


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

3 years ago

Solved


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

3 years ago

Solved


Symmetry of vector
Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] ...

3 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

3 years ago

Solved


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

3 years ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

3 years ago

Solved


Sort complex numbers into complex conjugate pairs
Sort complex numbers into complex conjugate pairs. Example: Input x = [3-6i -1-4i -1+4i 3+6i] Sorted output = [-1 - ...

3 years ago

Solved


Find the sum of all the numbers of the input vector
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 ...

3 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

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

3 years ago

Submitted


AdvancedColormap
Performs advaced colormap operations

3 years ago | 32 downloads |

Thumbnail

Posted


MatLab+CUDA: GPU selection
Hi guys. I'm planning to buy a laptop with modern GPU to do some MatLAb+CUDA calculations. Considering price/performance ratio I...

5 years ago | 2728 views

Responded


Re: Does anyone know how to programmatically distinguish between scripts and function *.m files?
To be more precise I'm wandering if there is standard MatLab methods to do that in order to not to reinvent the wheel.

5 years ago | 821 views

Posted


Does anyone know how to programmatically distinguish between scripts and function *.m files?
Does anyone know a reliable way how to programmatically (preferably in matlab) distinguish between scripts and function *.m file...

5 years ago | 821 views

Responded


Re: Mixed text/binary data handling
Thanks for your reply 100% agree. I'll switch to HDF or other high-level container-like format. Actually, under windows differe...

5 years ago | 2380 views

Posted


Mixed text/binary data handling
Hi all Recently I faced with a problem with handling mixed text/binary data files. I need to work with files that start with tex...

5 years ago | 2380 views

Posted


Handling multiple rectangles (imrect) problem
Hi all I need to select a rectangular area that should include some features on four images simultaneously. I want to be able to...

6 years ago | 4938 views

Responded


Re: Xlabel question!
xlabel( var(1).name , 'Interpreter','none'); see also TEXT properties, especially the INTERPRETER one

7 years ago | 1310 views

Posted


Image as a popup menu item: is it possible?
I'm not very familiar with Java programming. But when programming in Delphi for Windows, it is possible to switch ComboBox (it i...

7 years ago | 1601 views

Responded


Re: indexing?
Robert, I think that above suggestion to chech HISTC function is OK with what you are doing. This function has two syntaxes: and...

7 years ago | 2396 views

Responded


Re: fread waitbar integration
What about loop like this: 1. Create waitbar 2. Open 'your file' for reading 3. while ~feof('your file') 4. Close 'your file' 5...

7 years ago | 1332 views

Submitted


ini2struct
Function parses INI file and returns it as a structure with section names and keys as fields

9 years ago | 16 downloads |

Thumbnail

Responded


Re: Image shrinkage problems in subplot
Geico Caveman <spammers-go-here@spam.invalid> wrote in message <f9d0c4$4s0$1@aioe.org>... supposed to have a very one panel and...

9 years ago | 1341 views

Responded


Re: PCX-files + resolution
Jonne " <jonne.haapalainen@gmail.com> wrote in message be Looks like no. Bu if you know the offset of the bytes you want to ...

9 years ago | 929 views

Load more