brute force and extensive comments

Answered

I want to deblur an image that i don't have the original scene

the section on blind deconvolution will attempt to return a PSF as well as the deblurred image; i have tried this in the past wi...

I want to deblur an image that i don't have the original scene

the section on blind deconvolution will attempt to return a PSF as well as the deblurred image; i have tried this in the past wi...

environ 2 mois ago | 0

Solved

Dimensions of a rectangle

The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

2 mois ago

Solved

Area of an Isoceles Triangle

An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<https://imgur...

2 mois ago

Solved

Is this triangle right-angled?

Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

2 mois ago

Solved

Find a Pythagorean triple

Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

2 mois ago

Solved

Is this triangle right-angled?

Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

2 mois ago

Solved

Triangle sequence

A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

2 mois ago

Solved

Length of the hypotenuse

Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

2 mois ago

Solved

Area of an equilateral triangle

Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...

2 mois ago

Solved

Side of an equilateral triangle

If an equilateral triangle has area A, then what is the length of each of its sides, x? <<https://i.imgur.com/jlZDHhq.png>> ...

2 mois ago

Solved

Side of a rhombus

If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...

2 mois ago

Solved

Length of a short side

Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

2 mois ago

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

2 mois ago

Solved

Calculate the area of a triangle between three points

Calculate the area of a triangle between three points: P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) these three points are the vert...

3 mois ago

Answered

Overwrite 'NaN' cells of an array with non NaN cells of another

hi vasilis, have a look through this: rather than using a loop (which should work fine, but probably slower) you can use indexi...

Overwrite 'NaN' cells of an array with non NaN cells of another

hi vasilis, have a look through this: rather than using a loop (which should work fine, but probably slower) you can use indexi...

3 mois ago | 0

| accepted

Answered

Appending arrays of different length

didn't quite understand what output you really are looking for, but this shows how to use cat(). (note that with n=23, the resul...

Appending arrays of different length

didn't quite understand what output you really are looking for, but this shows how to use cat(). (note that with n=23, the resul...

6 mois ago | 0

| accepted

Answered

how to locate group of pixels in a large image

%% find known submatrix in large matrix % will find all instances sourceMat = magic(15); % example source matrix targMat = ...

how to locate group of pixels in a large image

%% find known submatrix in large matrix % will find all instances sourceMat = magic(15); % example source matrix targMat = ...

6 mois ago | 1

Answered

Hi everyone, I am having a problem with axes in gui.

the black parts are created when the new rotated image is created, and so are part of the image. if you know the colour of your ...

Hi everyone, I am having a problem with axes in gui.

the black parts are created when the new rotated image is created, and so are part of the image. if you know the colour of your ...

6 mois ago | 0

Answered

Why can't I form a table from my equation

you are indexing the (mon+1)th element of P, which is to say you are trying to line up n, which has many elements, with P(mon+1)...

Why can't I form a table from my equation

you are indexing the (mon+1)th element of P, which is to say you are trying to line up n, which has many elements, with P(mon+1)...

6 mois ago | 0

Answered

How to make matrix dimensions the same size?

% fixation time script % read data data = readtable('data.txt','HeaderLines',1,'Delimiter','\t'); % see my 'data.txt' below ...

How to make matrix dimensions the same size?

% fixation time script % read data data = readtable('data.txt','HeaderLines',1,'Delimiter','\t'); % see my 'data.txt' below ...

6 mois ago | 0

| accepted

Answered

Intersection point of yline

the code below shows how to 'brute force' a numerical answer, down to a precision you can adjust, by iteratively 'zooming in' on...

Intersection point of yline

the code below shows how to 'brute force' a numerical answer, down to a precision you can adjust, by iteratively 'zooming in' on...

7 mois ago | 0

Answered

guys can you chek this code its not working where is the fault?

hi ezgi, you've got yourself into some trouble here; don't worry, matlab isn't straightforward, and you had some decent ideas...

guys can you chek this code its not working where is the fault?

hi ezgi, you've got yourself into some trouble here; don't worry, matlab isn't straightforward, and you had some decent ideas...

7 mois ago | 0

Answered

zero crossings with interpolation

LOTS of ways to do this! i've 'over-commented' this code to show the logic - this is deliberately not the fastest or most comp...

zero crossings with interpolation

LOTS of ways to do this! i've 'over-commented' this code to show the logic - this is deliberately not the fastest or most comp...

7 mois ago | 0

Answered

could anyone help me to solve the issue

can't follow your question exactly; your expected output shows 2 answers in the top row, but these are not the highest values? (...

could anyone help me to solve the issue

can't follow your question exactly; your expected output shows 2 answers in the top row, but these are not the highest values? (...

plus d'un an ago | 0

Answered

How can i find the position of the origin of a Cartesian plot?

i would try looking at the 'position' property of the axes against the limits; the following works for figures, and seems to for...

How can i find the position of the origin of a Cartesian plot?

i would try looking at the 'position' property of the axes against the limits; the following works for figures, and seems to for...

plus d'un an ago | 0

Answered

Insert a vector into a matrix without where the row placement is given from a number

hi mikkel, the code below assumes the new depth is in the middle of the list somewhere. so this shows how to insert a row by br...

Insert a vector into a matrix without where the row placement is given from a number

hi mikkel, the code below assumes the new depth is in the middle of the list somewhere. so this shows how to insert a row by br...

plus d'un an ago | 0

Answered

Plot through bottom y-limit

not totally obvious what you mean. if you want to avoid the automatic joining of points through the x-axis that you want to ssho...

Plot through bottom y-limit

not totally obvious what you mean. if you want to avoid the automatic joining of points through the x-axis that you want to ssho...

plus d'un an ago | 0

| accepted

Answered

Insert a vector into a matrix without where the row placement is given from a number

yeah, the vector_add formulation is odd, and the direction is worng (?), but i think i see what you mean. you actually just have...

Insert a vector into a matrix without where the row placement is given from a number

yeah, the vector_add formulation is odd, and the direction is worng (?), but i think i see what you mean. you actually just have...

plus d'un an ago | 0

| accepted

Question

Creating figure with negative position for secondary monitor (on mac)?

i see some questions for this exact issue, but resolved for windows - i'm on a mac and can't translate the answers across. i ...

plus d'un an ago | 0 answers | 0