Answered

How do I avoid using a lot of if statements in a row?

Do you need to have eleven individually numbered variables, or are they all the same size and type (and therefore "stackable" as...

How do I avoid using a lot of if statements in a row?

Do you need to have eleven individually numbered variables, or are they all the same size and type (and therefore "stackable" as...

8 dagar ago | 0

Answered

Out of memory. Type "help memory" for your options

Rather than keeping all the data for all the frames in memory and writing the video all at once why not open the VideoWriter obj...

Out of memory. Type "help memory" for your options

Rather than keeping all the data for all the frames in memory and writing the video all at once why not open the VideoWriter obj...

8 dagar ago | 0

Answered

How to solve error 'Error: File: function9.m Line: 10 Column: 5 Function definition is misplaced or improperly nested.'

You cannot define a nested function inside an if statement. This is the second item listed in the "Requirements for Nested Funct...

How to solve error 'Error: File: function9.m Line: 10 Column: 5 Function definition is misplaced or improperly nested.'

You cannot define a nested function inside an if statement. This is the second item listed in the "Requirements for Nested Funct...

8 dagar ago | 0

Answered

Explain the average of 8 nearest neighbors

Consider the following matrix. Each element is equal to its linear index. >> nRows = 4; >> nCols = 6; >> A = reshape(1:(nRows...

Explain the average of 8 nearest neighbors

Consider the following matrix. Each element is equal to its linear index. >> nRows = 4; >> nCols = 6; >> A = reshape(1:(nRows...

8 dagar ago | 0

Answered

I am doing triple integration by matlab and some error displayed.

Use the ^ operator when you want to perform matrix multiplication in raising the matrix to a power. Use the .^ operator when yo...

I am doing triple integration by matlab and some error displayed.

Use the ^ operator when you want to perform matrix multiplication in raising the matrix to a power. Use the .^ operator when yo...

8 dagar ago | 0

Answered

Dot notation from string

DON'T use eval. There's no need to use it in this case anyway. split the text representation of the nested fields into pieces th...

Dot notation from string

DON'T use eval. There's no need to use it in this case anyway. split the text representation of the nested fields into pieces th...

8 dagar ago | 0

| accepted

Answered

Calculating with Methods from Classes

To me, it seems like most if not all of these "calc<something>" methods should probably be property get methods and the properti...

Calculating with Methods from Classes

To me, it seems like most if not all of these "calc<something>" methods should probably be property get methods and the properti...

8 dagar ago | 0

Answered

Backward compatibility for Automated Driving Toolbox with Matlab 2016b

Automated Driving Toolbox was introduced as a new product in release R2017a. It is not available in release R2016b. If you have...

Backward compatibility for Automated Driving Toolbox with Matlab 2016b

Automated Driving Toolbox was introduced as a new product in release R2017a. It is not available in release R2016b. If you have...

8 dagar ago | 0

| accepted

Answered

1. Simulink requires a C compiler for simulation acceleration, model reference, and MATLAB Function Block capabilities. It is recommended that you install a supported compiler on your machine.

This isn't a report of a problem. It states that if you want to take advantage of "simulation acceleration, model reference, an...

1. Simulink requires a C compiler for simulation acceleration, model reference, and MATLAB Function Block capabilities. It is recommended that you install a supported compiler on your machine.

This isn't a report of a problem. It states that if you want to take advantage of "simulation acceleration, model reference, an...

9 dagar ago | 0

Answered

Solving a system of second order differential equations

"Y" (without the quotes) is a valid variable name. "Y " (again without the quotes but with the space) is not a valid variable n...

Solving a system of second order differential equations

"Y" (without the quotes) is a valid variable name. "Y " (again without the quotes but with the space) is not a valid variable n...

9 dagar ago | 0

| accepted

Answered

How to combine correlated year, month and day vectors

Use your Y, M, and D vectors to build a datetime array and pass that datetime array into plot. Here's a small example: Y = 2020...

How to combine correlated year, month and day vectors

Use your Y, M, and D vectors to build a datetime array and pass that datetime array into plot. Here's a small example: Y = 2020...

9 dagar ago | 0

Answered

How do I create a for loop in MATLAB for this?

Use the normalize function with the 'range' method. No for loop is required.

How do I create a for loop in MATLAB for this?

Use the normalize function with the 'range' method. No for loop is required.

9 dagar ago | 1

Answered

Which matlab version is suitable Matlab for macOS Mojave

The platform roadmap page indicates the first release that supported Mac OS X 10.14 (Mojave) was release R2018b and the last tha...

Which matlab version is suitable Matlab for macOS Mojave

The platform roadmap page indicates the first release that supported Mac OS X 10.14 (Mojave) was release R2018b and the last tha...

9 dagar ago | 0

Answered

How do I call the built-in disp function after I have overloaded it in a different class?

When you concatenate a char vector and an instance of your PermutationKey class, does that return an instance of the Permutatio...

How do I call the built-in disp function after I have overloaded it in a different class?

When you concatenate a char vector and an instance of your PermutationKey class, does that return an instance of the Permutatio...

9 dagar ago | 0

Answered

Is the time vector t for the function odefun() inside ode45() always required?

From the documentation page for the ode45 function "The function dydt = odefun(t,y), for a scalar t and a column vector y, must ...

Is the time vector t for the function odefun() inside ode45() always required?

From the documentation page for the ode45 function "The function dydt = odefun(t,y), for a scalar t and a column vector y, must ...

10 dagar ago | 0

| accepted

Answered

How to use ode45 for a row vector

See the "Pass Extra Parameters to ODE Function" example on the documentation page for the ode45 function. You can use it as a mo...

How to use ode45 for a row vector

See the "Pass Extra Parameters to ODE Function" example on the documentation page for the ode45 function. You can use it as a mo...

10 dagar ago | 0

Answered

How to open matlab app designer in MATLAB 2020 ?

App Designer and Polyspace aren't really related. App Designer is still present in MATLAB release R2020a, and the Polyspace fami...

How to open matlab app designer in MATLAB 2020 ?

App Designer and Polyspace aren't really related. App Designer is still present in MATLAB release R2020a, and the Polyspace fami...

10 dagar ago | 0

Answered

why does matlab tell me that the "chop" command doesn't exist?

Cleve's original version of MATLAB had a chop command as you can see from the user's guide, but I'm not sure there is such a com...

why does matlab tell me that the "chop" command doesn't exist?

Cleve's original version of MATLAB had a chop command as you can see from the user's guide, but I'm not sure there is such a com...

11 dagar ago | 0

Answered

Query regarding the colon operator

The a variable is a 6-dimensional array. The part you're showing spans all the rows (the first colon) and all the columns (the s...

Query regarding the colon operator

The a variable is a 6-dimensional array. The part you're showing spans all the rows (the first colon) and all the columns (the s...

11 dagar ago | 1

| accepted

Answered

Spherical coordinates to cartesian

From the documentation "azimuth is the counterclockwise angle in the x-y plane measured in radians from the positive x-axis." an...

Spherical coordinates to cartesian

From the documentation "azimuth is the counterclockwise angle in the x-y plane measured in radians from the positive x-axis." an...

11 dagar ago | 0

Answered

calculate week of year

Since the original question was written, we introduced datetime. If you're representing your time and date data as a datetime, c...

calculate week of year

Since the original question was written, we introduced datetime. If you're representing your time and date data as a datetime, c...

12 dagar ago | 0

Answered

OSError: MATLAB Engine for Python supports Python version 2.7, 3.5 and 3.6 but your version of Python is 3.7

Support for Python 3.7 was added in release R2019a. The Release field to the right of this question indicates you're using relea...

OSError: MATLAB Engine for Python supports Python version 2.7, 3.5 and 3.6 but your version of Python is 3.7

Support for Python 3.7 was added in release R2019a. The Release field to the right of this question indicates you're using relea...

13 dagar ago | 1

| accepted

Answered

How to create a vector with elements randomly chosen from another vector?

I have a column vector, each of whose elements is a row vector consisting of two elements The common term for that is a matrix....

How to create a vector with elements randomly chosen from another vector?

I have a column vector, each of whose elements is a row vector consisting of two elements The common term for that is a matrix....

13 dagar ago | 0

| accepted

Answered

Index in position 2 exceeds array bounds (must not exceed 5).

Rather than trusting your user to enter a value of n compatible with the sizes of A and b, compute it from A and/or b using size...

Index in position 2 exceeds array bounds (must not exceed 5).

Rather than trusting your user to enter a value of n compatible with the sizes of A and b, compute it from A and/or b using size...

14 dagar ago | 0

Answered

Problem with data type: calculate [HH:mm:ss.FFF]

Convert the text representations of those values into a duration array then call seconds on the duration array.

Problem with data type: calculate [HH:mm:ss.FFF]

Convert the text representations of those values into a duration array then call seconds on the duration array.

14 dagar ago | 0

Answered

I want to install 2020 matlab win32

The last release of MATLAB that was supported on a 32-bit Windows OS was release R2015b. You will need to be running a 64-bit ve...

I want to install 2020 matlab win32

The last release of MATLAB that was supported on a 32-bit Windows OS was release R2015b. You will need to be running a 64-bit ve...

15 dagar ago | 0

Answered

Access automatically substructures from loop

Rather than depending on the order in which the fields of the struct array are displayed (which can change -- in the following e...

Access automatically substructures from loop

Rather than depending on the order in which the fields of the struct array are displayed (which can change -- in the following e...

15 dagar ago | 0

| accepted

Answered

toolbox installastion for matlab

Use the Add-Ons functionality to add this File Exchange submission to your MATLAB installation.

toolbox installastion for matlab

Use the Add-Ons functionality to add this File Exchange submission to your MATLAB installation.

15 dagar ago | 0

Answered

What is z1 appearing when solving this nonlinear system for x y and z?

Theoretically you could write out the roots of a quartic equation. There's a picture on the Wikipedia page for quartic function ...

What is z1 appearing when solving this nonlinear system for x y and z?

Theoretically you could write out the roots of a quartic equation. There's a picture on the Wikipedia page for quartic function ...

15 dagar ago | 1

| accepted

Answered

Integrating: I keep getting 'Array indices must be positive integers or logical values.'

You have y(1+x.^2) inside the second term of Fun. That is an attempt to index into y, but you probably intended it to be y times...

Integrating: I keep getting 'Array indices must be positive integers or logical values.'

You have y(1+x.^2) inside the second term of Fun. That is an attempt to index into y, but you probably intended it to be y times...

16 dagar ago | 0