Answered

Is Matlab 2020a cover all previous updates 2019b update 5,6?

Unless your user using release R2019b Update 5 is using functionality that changed or was removed in release R2020a (see the Rel...

Is Matlab 2020a cover all previous updates 2019b update 5,6?

Unless your user using release R2019b Update 5 is using functionality that changed or was removed in release R2020a (see the Rel...

7 Tage ago | 0

Answered

How to load multiple *.mat files in a directory into individual 271x1 vectors. Not structures. Need them named dynamically. Don't crucify me.

How do you distinguish the X and Y data stored in each MAT-file? Or do you have a 271-by-N variable stored in each MAT-file, wit...

How to load multiple *.mat files in a directory into individual 271x1 vectors. Not structures. Need them named dynamically. Don't crucify me.

How do you distinguish the X and Y data stored in each MAT-file? Or do you have a 271-by-N variable stored in each MAT-file, wit...

7 Tage ago | 1

Answered

Datatip color and styling [Request]

In order to file an enhancement request officially, please contact Technical Support using the Contact Support link on the Suppo...

Datatip color and styling [Request]

In order to file an enhancement request officially, please contact Technical Support using the Contact Support link on the Suppo...

7 Tage ago | 0

Answered

How to create (x,y) matrix in complete graph in matlab

If this is not a homework assignment where you're expected to write the code to plot a graph yourself, just use the graph functi...

How to create (x,y) matrix in complete graph in matlab

If this is not a homework assignment where you're expected to write the code to plot a graph yourself, just use the graph functi...

7 Tage ago | 0

Answered

Are datasets available for previous studies conducted in MATLAB?

You should contact the authors of the paper and ask them for their data. Just because MATLAB was used in analyzing the data does...

Are datasets available for previous studies conducted in MATLAB?

You should contact the authors of the paper and ask them for their data. Just because MATLAB was used in analyzing the data does...

7 Tage ago | 0

Answered

Graph/centrality- Is there a way to avoid "Expected Cost to be positive" error?

Are any of your weights non-positive? Specifically check if any are equal to 0.

Graph/centrality- Is there a way to avoid "Expected Cost to be positive" error?

Are any of your weights non-positive? Specifically check if any are equal to 0.

7 Tage ago | 0

Answered

Evaluate a function of symbolic variables

Use subs to substitute values for the symbolic variables in your expression. When you go to use your symbolic expression in fmi...

Evaluate a function of symbolic variables

Use subs to substitute values for the symbolic variables in your expression. When you go to use your symbolic expression in fmi...

7 Tage ago | 0

| accepted

Answered

OOP Dynamic Properties ordering is very strange...

I would be very wary of overloading properties or methods for your object. There may be an easier way to do it, but you can que...

OOP Dynamic Properties ordering is very strange...

I would be very wary of overloading properties or methods for your object. There may be an easier way to do it, but you can que...

8 Tage ago | 0

Answered

How to visualize graph nodes on top of image with segmented cells they correspond to

The example in this post from Loren's blog superimposes a graph of state centroids onto a map of the states represented as a col...

How to visualize graph nodes on top of image with segmented cells they correspond to

The example in this post from Loren's blog superimposes a graph of state centroids onto a map of the states represented as a col...

8 Tage ago | 0

Answered

Plot multiple histogram within 1 function

The "Plot Multiple Histograms" example on the documentation page shows how to superimpose two histogram plots using hold on.

Plot multiple histogram within 1 function

The "Plot Multiple Histograms" example on the documentation page shows how to superimpose two histogram plots using hold on.

8 Tage ago | 1

Answered

one script two anonymous functions

Based on the problem description I'm guessing C is an angle in degrees, not radians. If that's the case take a look at the sind ...

one script two anonymous functions

Based on the problem description I'm guessing C is an angle in degrees, not radians. If that's the case take a look at the sind ...

8 Tage ago | 1

Answered

What did I do wrong in my 'for' loop function?

In this line of your code: nb(B) = (nb(B-1)+1) + ((nb(B-1)+1) * mir) + mc; What's the old balance? Are you certain that yo...

What did I do wrong in my 'for' loop function?

In this line of your code: nb(B) = (nb(B-1)+1) + ((nb(B-1)+1) * mir) + mc; What's the old balance? Are you certain that yo...

8 Tage ago | 0

Answered

Creating an array of dependent symbolic variable

syms A [1 2] eq1 = A(1)+2*A(2) == 42 eq2 = 3*A(1)-4*A(2) == 99 S = solve(eq1, eq2) A1 = S.A1 A2 = S.A2 subs(eq1)

Creating an array of dependent symbolic variable

syms A [1 2] eq1 = A(1)+2*A(2) == 42 eq2 = 3*A(1)-4*A(2) == 99 S = solve(eq1, eq2) A1 = S.A1 A2 = S.A2 subs(eq1)

8 Tage ago | 0

Answered

How to solve 'Unrecognized Function or Variable' Error Code

Are you trying to run the script from inside the ZIP-file, without extracting it? That won't work. Extract the files to a direct...

How to solve 'Unrecognized Function or Variable' Error Code

Are you trying to run the script from inside the ZIP-file, without extracting it? That won't work. Extract the files to a direct...

9 Tage ago | 0

Answered

Can someone please tell me about AcNup package?

Searching the MathWorks website for AcNup found four hits, three of which don't appear to be relevant and the fourth of which is...

Can someone please tell me about AcNup package?

Searching the MathWorks website for AcNup found four hits, three of which don't appear to be relevant and the fourth of which is...

9 Tage ago | 0

Answered

Cannot figure out what I am doing wrong here.

That plots one point but by default the line created by plot includes no Marker. axis([0 1 0 1]) hold on h = plot(0.25, 0.25)...

Cannot figure out what I am doing wrong here.

That plots one point but by default the line created by plot includes no Marker. axis([0 1 0 1]) hold on h = plot(0.25, 0.25)...

9 Tage ago | 0

Answered

How to replace -999 values with NaN in a Matlab table?

Use standardizeMissing. t = array2table(magic(4)); t{2, 'Var3'} = -999 t2 = standardizeMissing(t, -999)

How to replace -999 values with NaN in a Matlab table?

Use standardizeMissing. t = array2table(magic(4)); t{2, 'Var3'} = -999 t2 = standardizeMissing(t, -999)

9 Tage ago | 1

| accepted

Answered

Error: Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

Smart indent your code in the MATLAB Editor. When I did that for your code sample, there were two end statements after the one t...

Error: Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

Smart indent your code in the MATLAB Editor. When I did that for your code sample, there were two end statements after the one t...

9 Tage ago | 0

| accepted

Answered

Struct contents reference from a non-struct array object

function [ CRRA ] = CRRA(x) tur = load('tur.mat'); wei = load('wei.mat'); The preceding two lines load the MAT-file each an...

Struct contents reference from a non-struct array object

function [ CRRA ] = CRRA(x) tur = load('tur.mat'); wei = load('wei.mat'); The preceding two lines load the MAT-file each an...

10 Tage ago | 0

| accepted

Answered

finding a phrase in a modularized code with over 1000 functions

You can use the Find Files tool in the File section of the Home tab of the toolstrip.

finding a phrase in a modularized code with over 1000 functions

You can use the Find Files tool in the File section of the Home tab of the toolstrip.

10 Tage ago | 0

Answered

Maximum number of clients reached

How many figures are you trying to have open simultaneously? If that number is large, do you need to have them all open at the s...

Maximum number of clients reached

How many figures are you trying to have open simultaneously? If that number is large, do you need to have them all open at the s...

10 Tage ago | 0

Answered

how do I recover lost parts of MATLAB

That indicates the MATLAB path has not been set correctly this session. Have you tried what the message told you to try? Warnin...

how do I recover lost parts of MATLAB

That indicates the MATLAB path has not been set correctly this session. Have you tried what the message told you to try? Warnin...

10 Tage ago | 0

| accepted

Answered

3 on top, 2 on bottom subplot

Those are two rows of subplots. The first has three subplots: subplot(2, 3, 1, 'Color', 'r') subplot(2, 3, 2, 'Color', 'g') s...

3 on top, 2 on bottom subplot

Those are two rows of subplots. The first has three subplots: subplot(2, 3, 1, 'Color', 'r') subplot(2, 3, 2, 'Color', 'g') s...

10 Tage ago | 1

Answered

How to define a struct array with length more than one and assign values to one of the strucy array?

A.1 is not a valid struct field name. With something this simple, I probably wouldn't use a struct array. A = [1 0.2 3 0.4 5 6...

How to define a struct array with length more than one and assign values to one of the strucy array?

A.1 is not a valid struct field name. With something this simple, I probably wouldn't use a struct array. A = [1 0.2 3 0.4 5 6...

10 Tage ago | 0

Answered

Bisection method code matlab

Rather than hard-coding the function you want to solve, you might want to create a function handle to the function and use that ...

Bisection method code matlab

Rather than hard-coding the function you want to solve, you might want to create a function handle to the function and use that ...

10 Tage ago | 0

Answered

Give Output of one ODE to the another ODE simultaneously

Use the "Nonstiff Euler Equations" example on this documentation page as a model for your ODE function.

Give Output of one ODE to the another ODE simultaneously

Use the "Nonstiff Euler Equations" example on this documentation page as a model for your ODE function.

10 Tage ago | 0

Answered

I want to make a recursive formula and execute two statements with the same variables at the same time

Use a cell array (or two cell arrays, though b is a copy of most of a.) a = {1}; b = {0}; cellToFill = 2; while cellToFill <...

I want to make a recursive formula and execute two statements with the same variables at the same time

Use a cell array (or two cell arrays, though b is a copy of most of a.) a = {1}; b = {0}; cellToFill = 2; while cellToFill <...

10 Tage ago | 0

Answered

Create an array of structures

If the field values you pass into the struct function are a cell array, MATLAB will make a struct array the same size as the cel...

Create an array of structures

If the field values you pass into the struct function are a cell array, MATLAB will make a struct array the same size as the cel...

10 Tage ago | 0

| accepted

Answered

how can i get a .iso disk of r2020b

Ask your license administrator to follow the steps in this Answers post.

how can i get a .iso disk of r2020b

Ask your license administrator to follow the steps in this Answers post.

11 Tage ago | 0

Answered

substitute of persistent command

What is the mathematical form of the differential equations you're trying to solve? I suspect (since you're updating the persist...

substitute of persistent command

What is the mathematical form of the differential equations you're trying to solve? I suspect (since you're updating the persist...

11 Tage ago | 3