# Rik

E-mails with feedback/questions about FEX submissions are welcomed. In general I will post e-mails about Answers on the related page, unless there is good cause not to do so.

**Statistics**

RANK**24**

of 265.367

REPUTATION**8.563**

CONTRIBUTIONS

**12** Questions

**2.936** Answers

ANSWER ACCEPTANCE **
33.33%
**

VOTES RECEIVED**1.200**

RANK**1.948** of 18.136

REPUTATION**868**

AVERAGE RATING**4.80**

CONTRIBUTIONS**28** Files

DOWNLOADS **126**

ALL TIME DOWNLOADS**5920**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Solved

Sum of Arithmetic Progression

Given the starting number, difference and the number of terms - find the sum of the arithmetic progression.

circa 3 ore ago

Solved

There are 10 types of people in the world

Those who know binary, and those who don't. The number 2015 is a palindrome in binary (11111011111 to be exact) Given a year...

circa 22 ore ago

Solved

Create initial basic feasible solution for transportation problems -Minimum Cost Method

circa 22 ore ago

Solved

Create initial basic feasible solution for transportation problems - North-West Corner Method

circa 23 ore ago

Solved

Numerical Integration

Input * |x0|, a real number greater than 0 Output * |I|, a numerical estimate of the integral x0 / I...

circa 23 ore ago

Solved

Differential equations I

Given a function handle |f| an initial condition |y0| and a final time |tf|, solve numerically the differential equation dy...

circa 24 ore ago

Solved

Monte-Carlo integration

Write a function that estimates a d-dimensional integral to at least 1% relative precision. Inputs: * d: positive integer....

1 giorno ago

Solved

The Birthday Phenomenon

First off, leap years are not being considered for this. In fact the year that people are born shouldn't be taken into considera...

1 giorno ago

Solved

Throwing Dice - Will You Be Eaten By The Dragon?

You and a dragon have agreed to let dice rolls determine whether it eats you or not. The dragon will roll a single die, of x ...

1 giorno ago

Solved

Chess probability

The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...

1 giorno ago

Solved

Calculate Amount of Cake Frosting

Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

1 giorno ago

Solved

Solve a System of Linear Equations

Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...

1 giorno ago

Solved

Find the maximum number of decimal places in a set of numbers

Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not coun...

1 giorno ago

Solved

Make roundn function

Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

1 giorno ago

Solved

Rounding off numbers to n decimals

Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

1 giorno ago

Solved

Matlab Basics - Rounding III

Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

2 giorni ago

Solved

Matlab Basics - Rounding II

Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

2 giorni ago

Solved

Check that number is whole number

Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. http://en.wikipedia.org/wiki/Whole_numb...

2 giorni ago

Solved

MATLAB Basic: rounding IV

Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

2 giorni ago

Solved

MATLAB Basic: rounding III

Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

2 giorni ago

Solved

MATLAB Basic: rounding II

Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

2 giorni ago

Solved

MATLAB Basic: rounding

Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

2 giorni ago

Find the nearest two values in all grid cells to a specified value across a 3D matrix

Why squeeze the indices? Just use them to index (for which you need sub2ind). As for the second closest: the easiest way is to ...

6 giorni ago | 0

| accepted

Calling the error function does not print the line number in r2022b

I personally use my own customized versions of error and warning. They take an options struct as the first argument to determine...

6 giorni ago | 0

Pseudorandom character matrix generation

If you want a 10x10 char array, you can also use indexing: source = 'bdpq'; Array = source(randi(end,[10 10]))

6 giorni ago | 0

| accepted

If not with a xlsx file

You should have used isempty in your current code: if ~isempty(app.filename) For the test you now want to do, you should extra...

7 giorni ago | 0

| accepted

Saving file causes glitch

As a temporary workaround you can use this: edit my_script.m % should give you a popup asking if you want to create the file O...

8 giorni ago | 0

Fitting data from file

You can specify those parameters, but what is much more effective is providing good initial guesses (and not mixing up x and y):...

8 giorni ago | 1

| accepted

get alpha (color) value of a line

I have no clue why this is hidden, but converting the object to a struct and hunting for a few appropriate candidates I found th...

8 giorni ago | 1

| accepted