I am an Applications Support Engineer at Mathworks.

Disclaimer: Any articles/ideas/opinions here are my own and in no way reflect that of Mathworks.

Solved

Which quadrant?

Given a complex number, output quadrant 'I' 'II' 'III' or 'IV' | II | I | ...

11 jours ago

Solved

Filter AC, pass DC

Input x is the sampled signal vector, may have both AC and DC components. Output vector y should not contain any AC component. ...

12 jours ago

Solved

Compute a dot product of two vectors x and y

x and y are input vectors, d is a number and contains their dot product

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

14 jours ago

Answered

relative error of machine epsilon

According to the formal definition, the approximation of Machine Epsilon is as follows epsilon = 1.0; while (1.0 + 0.5 * eps...

relative error of machine epsilon

According to the formal definition, the approximation of Machine Epsilon is as follows epsilon = 1.0; while (1.0 + 0.5 * eps...

15 jours ago | 0

Answered

Create a function myPrimes that returns the first n primes as a vector, given a positive integer. For example, if the positive integer is 5, the vector returned would include 1, 2, 3, 5, 7. In your script, prompt the user for the positive integer val

Refactor the first two lines to clc; n=input('Prime Numbers until:'); output = myPrimes(n) Edit : Addressed @Rik 's feedba...

Create a function myPrimes that returns the first n primes as a vector, given a positive integer. For example, if the positive integer is 5, the vector returned would include 1, 2, 3, 5, 7. In your script, prompt the user for the positive integer val

Refactor the first two lines to clc; n=input('Prime Numbers until:'); output = myPrimes(n) Edit : Addressed @Rik 's feedba...

15 jours ago | 0

Answered

Monitor Deep Learning Training Progress

I tried reproducing the above issue using an example provided in the documentation - digitDatasetPath = fullfile(matlabroot,'t...

Monitor Deep Learning Training Progress

I tried reproducing the above issue using an example provided in the documentation - digitDatasetPath = fullfile(matlabroot,'t...

16 jours ago | 0

Answered

What is the triangular and rectangle block symbols in this model, from the two pictures?

The triangular block is a Gain Block while the Temperature Sensor could be a subsystem. As an alternative option, Ideal Temperat...

What is the triangular and rectangle block symbols in this model, from the two pictures?

The triangular block is a Gain Block while the Temperature Sensor could be a subsystem. As an alternative option, Ideal Temperat...

16 jours ago | 0

Answered

Reduce read (characteristic) timeout for BLE

As of the current release, the default timeout of read cannot be configured. If a given characteristic supports 'Notify' attrib...

Reduce read (characteristic) timeout for BLE

As of the current release, the default timeout of read cannot be configured. If a given characteristic supports 'Notify' attrib...

17 jours ago | 0

Answered

Solve symbolic differential equation

Please refer to Solve Differential Equation

Solve symbolic differential equation

Please refer to Solve Differential Equation

17 jours ago | 0

Answered

Lanczos kernel for image resizing (imresize function)

The Lanczos-2 algorithm precalculates the coefficients based on the resize factor. The model calls the lanczos2_coeffi.m script ...

Lanczos kernel for image resizing (imresize function)

The Lanczos-2 algorithm precalculates the coefficients based on the resize factor. The model calls the lanczos2_coeffi.m script ...

17 jours ago | 2

Answered

MatLab r2020b from Database Toolbox - How to Configure Data Source from Microsoft 2016 MSExcel(64Bit) & MSAccess(64bit)

The data source configuration can be done using configureODBCDataSource. Additional documentation can be found here

MatLab r2020b from Database Toolbox - How to Configure Data Source from Microsoft 2016 MSExcel(64Bit) & MSAccess(64bit)

The data source configuration can be done using configureODBCDataSource. Additional documentation can be found here

17 jours ago | 0

Solved

Distance walked 1D

Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

19 jours ago

Solved

Return the 3n+1 sequence for n

A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

19 jours ago

Solved

Is the Point in a Circle?

Check whether a point or multiple points is/are in a circle centered at point (x0, y0) with radius r. Points = [x, y]; c...

19 jours ago

Solved

Add two numbers

Calculate the sum of two numbers. Example input = [2 3] output = 5

19 jours ago

Solved

find the surface area of a cube

given cube side length x, find the surface area of the cube, set it equal to y

19 jours ago

Solved

Append two matrix as shown below example

Append two matrix as shown below example A=[1 2; 3 4] and B=[5 6;7 8] Answer must be 1 2 5 6 3...

19 jours ago

Solved

Convert Fahrenheit to Celsius

Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

19 jours ago

Solved

Number of Circles in a Number

Given a number, return the number of closed 'circles' in the base 10 numerical representation. Note: the number 4 has no circ...

19 jours ago

Solved

Generate Square Wave

Generate a square wave of desired length, number of complete cycles and duty cycle. Here, duty cycle is defined as the fraction ...

24 jours ago

Solved

Sum of series VI

What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

24 jours ago

Solved

Sum of series V

What is the sum of the following sequence: Σk(k+1) for k=1...n for different n?

24 jours ago

Solved

Sum of series IV

What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?

24 jours ago

Solved

Sum of series II

What is the sum of the following sequence: Σ(2k-1)^2 for k=1...n for different n?

24 jours ago