Answered

PLY/ RGB to 2D Grayscale Image

Based on the above code, Image stores the Color Matrix of just the Red channel R, G, B refer to the values of first, second ...

PLY/ RGB to 2D Grayscale Image

Based on the above code, Image stores the Color Matrix of just the Red channel R, G, B refer to the values of first, second ...

2 years ago | 0

Answered

syntax for updating values using webwrite

To make a POST request with request body, send() can be used, with the "Request Body" parameters passed in the body property of ...

syntax for updating values using webwrite

To make a POST request with request body, send() can be used, with the "Request Body" parameters passed in the body property of ...

2 years ago | 1

| accepted

Answered

Determine the extreme values for the function f(x)

To determine the extrema, optimization toolbox can be used . For example %% Finding local minima in [0,4] using fminbnd minima...

Determine the extreme values for the function f(x)

To determine the extrema, optimization toolbox can be used . For example %% Finding local minima in [0,4] using fminbnd minima...

2 years ago | 0

Answered

convert a pixel intensity of gray-scale image to 1D type Signal

The algorithm for converting RGB values to Intensity values is This algorithm converts a n-by-1-by-3 vector into a n-by-1 ve...

convert a pixel intensity of gray-scale image to 1D type Signal

The algorithm for converting RGB values to Intensity values is This algorithm converts a n-by-1-by-3 vector into a n-by-1 ve...

2 years ago | 0

| accepted

Answered

PSF (Motion blur) from the blurred and sharp (or deblurred) image pair.

In frequency domain, PSF can be calculated as fft(blurred)/fft(original). Additional information can be found at this link

PSF (Motion blur) from the blurred and sharp (or deblurred) image pair.

In frequency domain, PSF can be calculated as fft(blurred)/fft(original). Additional information can be found at this link

2 years ago | 0

| accepted

Answered

How can I use symsum function to calculate this equation?

%% Define constants syms n phi lambda; beta_alpha = 1.2*pi; epsilon0 = 1; %% Epsilon when n=0 epsilon = 2; %% Epsilon when...

How can I use symsum function to calculate this equation?

%% Define constants syms n phi lambda; beta_alpha = 1.2*pi; epsilon0 = 1; %% Epsilon when n=0 epsilon = 2; %% Epsilon when...

2 years ago | 0

Answered

How to generate a matrix in simulink

MATLAB function block can be used to generate a matrix from existing parameters. Additional documentaion can be found here

How to generate a matrix in simulink

MATLAB function block can be used to generate a matrix from existing parameters. Additional documentaion can be found here

2 years ago | 0

Solved

Energy of a photon

*⚛ ☢ ⚛ ☢ ⚛ ☢ ⚛* Given the frequency F of a photon in giga hertz. Find energy E of this...

2 years ago

Solved

Project Euler: Problem 2, Sum of even Fibonacci

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

2 years ago

Solved

Sum of first n terms of a harmonic progression

Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....

2 years ago

Solved

Project Euler: Problem 6, Natural numbers, squares and sums.

The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

2 years ago

Solved

Relative ratio of "1" in binary number

Input(n) is positive integer number Output(r) is (number of "1" in binary input) / (number of bits). Example: * n=0; r=...

2 years ago

Solved

Bit Reversal

Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...

2 years ago

Solved

Given an unsigned integer x, find the largest y by rearranging the bits in x

Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

2 years ago

Solved

Binary numbers

Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

2 years ago

Solved

Find out sum and carry of Binary adder

Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition. Examples Previo...

2 years ago

Solved

Convert given decimal number to binary number.

Convert given decimal number to binary number. Example x=10, then answer must be 1010.

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

2 years ago

Solved

Getting the row and column location from a matrix

This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to get <http://www.mathwo...

2 years ago

Solved

Sum of odd numbers in a matrix

Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

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

Solved

Finding perimeter of a rectangle

A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

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

Solved

Is the Point in a Triangle?

Check whether a point or multiple points is/are in a triangle with three corners Points = [x, y]; Triangle = [x1, y1; x...

2 years ago