Community Profile

# Ana Carolina da Silva Pacheco

Last seen: 13 days ago Active since 2021

#### Content Feed

View by

Question

How can I combine plots in same axes?
I want to combine all plots in same axes, I tried to use hold on and hold off but it didn't work. Can anybody help me? Here's a ...

23 days ago | 0 answers | 0

### 0

Question

Problems using function fsolve
I'm trying to execute a fsolve function. First, I tried without using optimset and it went wrong because of maximum function eva...

1 year ago | 1 answer | 0

### 1

Question

Using fzero with two conditions
I have a fzero function in which I'm setting an equilibrium equation in terms of a position x, so I can find the value of x. The...

1 year ago | 1 answer | 0

### 1

Question

Plotting a limited number of elements
I have the code below: it=10; n=3; jvals=zeros(it,n); vetor_momentoj=zeros(it,n); aux=1; for i=1:it jvals(i,:)=linspa...

1 year ago | 1 answer | 0

### 1

Question

Plot multiple curves on a graph (involving a for loop within another)
I have the code below: I want to plot a jvals x vetor_momentoj curve. In this example, I would have 4 curves (it=4), each one...

1 year ago | 1 answer | 0

### 1

Question

Doubt involving a for loop within another
I have the code below that is returning the results shown: My problem is that I want the variable "jvals" to be a matrix just...

1 year ago | 1 answer | 0

### 1

Question

Storing variables in a for loop within another
I have the code below, and I want to store the variable "vetor_momentoj" returned from the for loop in terms of the indexes i an...

1 year ago | 1 answer | 0

### 1

Question

How do I declare a for loop with a given number of elements?
I have a for loop: for j=0:0.03 .. end I want j to run through 100 elements, in ascending order, between 0 and 0.03 (the...

1 year ago | 2 answers | 0

### 2

Question

How do I declare correlation between a random variable with beta distribution and a random variable with normal distribution?
I have a random variable with beta distribution declared: aux_alpha = 3; aux_beta = 813.21; LB = 41.368542; ...

1 year ago | 1 answer | 0

### 1

Question

How do I generate a random number with beta distribution?
I have a variable with the PDF: PDF = C . ((f - LB)/D)^alpha . ((UB - f)/D)^beta Where: C = 37337 alpha = 3 beta = 813,21 ...

1 year ago | 1 answer | 0