28 total contributions since 2015

Research Associate in Department of Computer Science, University of Sheffield

Submitted

wilocw/surf_map

Live script and demo for visualising 3-column CSV as surface

2 years ago | 1 download |

Solved

Divisible by 4

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

2 years ago

Solved

Divisible by 5

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

2 years ago

Solved

Divisible by 3

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

2 years ago

Solved

Divisible by 2

This is the first problem in a set of "divisible by x" problems. You will be provided a number as a string and the function you ...

2 years ago

Solved

Find the largest value in the 3D matrix

Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

2 years ago

Solved

Check if number exists in vector

Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

2 years ago

Solved

Target sorting

Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

2 years ago

Solved

Which values occur exactly three times?

Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

2 years ago

Solved

Remove the vowels

Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

2 years ago

Solved

Most nonzero elements in row

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

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

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

2 years ago

Solved

Determine whether a vector is monotonically increasing

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

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

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

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

4 years ago

Solved

Create sequnce 1 4 9 16 25.........

Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands

4 years ago

Answered

clustering based on area

Hi, I've looked at the code and I've worked out what you need. Before your final loop "% Loop over all blobs printing their me...

clustering based on area

Hi, I've looked at the code and I've worked out what you need. Before your final loop "% Loop over all blobs printing their me...

4 years ago | 0

| accepted

Answered

Help : Interpolation missing data

You also overwrite nanx in the line nanx(:,1) = CS(:,1); nanx = isnan(CS(:,2)); Should this be: nanu = isnan(CS(:...

Help : Interpolation missing data

You also overwrite nanx in the line nanx(:,1) = CS(:,1); nanx = isnan(CS(:,2)); Should this be: nanu = isnan(CS(:...

4 years ago | 0

Answered

Function changes its behavior at each iteration of a for loop

We'll call your input parameter list 'param', you can do something like the following: for k= 1:4 switch param(k) ...

Function changes its behavior at each iteration of a for loop

We'll call your input parameter list 'param', you can do something like the following: for k= 1:4 switch param(k) ...

4 years ago | 0

Answered

clustering based on area

Hi, k-means is probably the simplest method of clustering, but if you simply want to sort the regions based on their area, yo...

clustering based on area

Hi, k-means is probably the simplest method of clustering, but if you simply want to sort the regions based on their area, yo...

4 years ago | 0

Answered

How to find data from different matrix accordance to a treaty

You can use find() on the first column to get the row indexes of the rows you want to plot. Say your matrices are A and B, th...

How to find data from different matrix accordance to a treaty

You can use find() on the first column to get the row indexes of the rows you want to plot. Say your matrices are A and B, th...

4 years ago | 0

Submitted

icosphere

Generate unit geodesic sphere created by subdividing a regular icosahedron

4 years ago | 25 downloads |

Answered

How I can write the names of file in note bad without extension?

Use can use fprintf and fileparts functions for each line of your output: fid = fopen('target.txt','a+'); for i = 1:leng...

How I can write the names of file in note bad without extension?

Use can use fprintf and fileparts functions for each line of your output: fid = fopen('target.txt','a+'); for i = 1:leng...

4 years ago | 0

| accepted