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

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

11 meses ago | 0

| accepted

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

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

12 meses ago | 0

Answered

Solve symbolic differential equation

Please refer to Solve Differential Equation

Solve symbolic differential equation

Please refer to Solve Differential Equation

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

12 meses 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

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

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

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

12 meses ago

Solved

Add two numbers

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

12 meses 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

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

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

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

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

12 meses ago

Solved

Sum of series VI

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

12 meses ago

Solved

Sum of series V

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

12 meses 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?

12 meses ago

Solved

Sum of series II

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

12 meses ago

Solved

Sum of series III

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

12 meses ago

Solved

Sum of series I

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

12 meses ago

Answered

When does Matlab consider a Neural Network deep?

trainNetwork works with Deep Learning Layers. Additional Information can be found here

When does Matlab consider a Neural Network deep?

trainNetwork works with Deep Learning Layers. Additional Information can be found here

12 meses ago | 0

Answered

How can I solve mini-batch size issue in my LSTM network?

A plausible solution would be to Change the MiniBatch SIze to 114 Convert Xcell, Ycell, and XTestCell to double type Xcell = ...

How can I solve mini-batch size issue in my LSTM network?

A plausible solution would be to Change the MiniBatch SIze to 114 Convert Xcell, Ycell, and XTestCell to double type Xcell = ...

12 meses ago | 0

| accepted

Answered

Can't use laplace transformed expression with transfer function.

A plausible solution is as follows % Collect the coefficients of r2 h = collect(r2); % Split the coefficients into numerator ...

Can't use laplace transformed expression with transfer function.

A plausible solution is as follows % Collect the coefficients of r2 h = collect(r2); % Split the coefficients into numerator ...

12 meses ago | 2

| accepted

Answered

optical power vs distance

A plausible solution clf; figure; % Create a distance vector of range 1m to 3m distance = linspace(1,3,101); hold on % plo...

optical power vs distance

A plausible solution clf; figure; % Create a distance vector of range 1m to 3m distance = linspace(1,3,101); hold on % plo...

12 meses ago | 0

| accepted

Answered

Mac Bic Sur + R2020b

Gatekeeper could be preventing the installation of MATLAB. Please refer to this answer for a workaround

Mac Bic Sur + R2020b

Gatekeeper could be preventing the installation of MATLAB. Please refer to this answer for a workaround

12 meses ago | 0