Answered

How can I extract fields from a structure and create variables in the MATLAB workspace for example i need to extract every row in the field of position as shown below

You can try to understand a structure from the following code, in which several types of data are defined within a structure cal...

How can I extract fields from a structure and create variables in the MATLAB workspace for example i need to extract every row in the field of position as shown below

You can try to understand a structure from the following code, in which several types of data are defined within a structure cal...

1 year ago | 0

Answered

Convert a numerical variable in a table to string

Starting from the fact that you have the variable 'pic = [70, 40, 60, 70, 50, 65 ...]' defined you could convert that row vector...

Convert a numerical variable in a table to string

Starting from the fact that you have the variable 'pic = [70, 40, 60, 70, 50, 65 ...]' defined you could convert that row vector...

2 years ago | 0

Answered

Solving nonlinear 2nd order differential equation with signum using ODE solvers?

Hello friend, in what I could see was from your work I realized two things that can help you. The first is that you can model as...

Solving nonlinear 2nd order differential equation with signum using ODE solvers?

Hello friend, in what I could see was from your work I realized two things that can help you. The first is that you can model as...

2 years ago | 0

| accepted

Answered

Is there any way to use multiple tolerances in ODE solvers?

Hello friend, you could try, generate for example two systems of equations one with slow dynamics and another with fast dynamics...

Is there any way to use multiple tolerances in ODE solvers?

Hello friend, you could try, generate for example two systems of equations one with slow dynamics and another with fast dynamics...

2 years ago | 0

Answered

How can I found the value of 'x' such that I should get the known value 'y' in below equation ?

I recommend you look at this: https://es.mathworks.com/help/symbolic/solve.html. teaches you how you can with symbolic mathemati...

How can I found the value of 'x' such that I should get the known value 'y' in below equation ?

I recommend you look at this: https://es.mathworks.com/help/symbolic/solve.html. teaches you how you can with symbolic mathemati...

2 years ago | 1

Answered

Help with writing a code for computing the area under a curve.

Hello brother, I hope that my code can help you, it is the trapezoidal method defined in the attached image. <<http://test....

Help with writing a code for computing the area under a curve.

Hello brother, I hope that my code can help you, it is the trapezoidal method defined in the attached image. <<http://test....

2 years ago | 0

Answered

How can I create this function?

This code should return in the variables: B_mtrx_a, C_mtrx_a, a_; a "history" of calculations of matrix B, C and vector a. Obser...

How can I create this function?

This code should return in the variables: B_mtrx_a, C_mtrx_a, a_; a "history" of calculations of matrix B, C and vector a. Obser...

2 years ago | 1

Answered

How can I correctly use consecutive numbers in a iteration?

Hello friend, I did this for you, I hope it helps you. Note: Change the values of the variables mk and e to the values th...

How can I correctly use consecutive numbers in a iteration?

Hello friend, I did this for you, I hope it helps you. Note: Change the values of the variables mk and e to the values th...

2 years ago | 0

| accepted

Answered

ode45 Not enough input arguments

try this: function dvdt = gprime(t,v) global R global C V = 5*sin(30*2*pi*t) + 0.1*sin(5400*2*pi*t); ...

ode45 Not enough input arguments

try this: function dvdt = gprime(t,v) global R global C V = 5*sin(30*2*pi*t) + 0.1*sin(5400*2*pi*t); ...

2 years ago | 0

| accepted

Answered

How to create a program that compares outputs in dictionary lexicographic

Hi, try this function, it worked for me !, look how I use it in the image: function tlex = compare(int1,int2) ...

How to create a program that compares outputs in dictionary lexicographic

Hi, try this function, it worked for me !, look how I use it in the image: function tlex = compare(int1,int2) ...

2 years ago | 0

Answered

How can I create this function?

I did this for you, I hope it serves you. % Definition of constants: k=2; Bj=[1 2; 3 4]; %In this case Bj is...

How can I create this function?

I did this for you, I hope it serves you. % Definition of constants: k=2; Bj=[1 2; 3 4]; %In this case Bj is...

2 years ago | 1

| accepted

Answered

How do I compute a line integral of a function over a helix?

Hello brother, here is a code I did with symbolic mathematics using the mathematical definition of line integral with a vecto...

How do I compute a line integral of a function over a helix?

Hello brother, here is a code I did with symbolic mathematics using the mathematical definition of line integral with a vecto...

2 years ago | 0

Answered

How to save a figure as a PDF with given aspect ration, resolution (and size)

Hello friend, maybe the following code will serve you. Basically what it does is to change the characteristics of the plot, p...

How to save a figure as a PDF with given aspect ration, resolution (and size)

Hello friend, maybe the following code will serve you. Basically what it does is to change the characteristics of the plot, p...

3 years ago | 0