Community Profile

photo

Thiago Henrique Gomes Lobato


Last seen: Today
159 total contributions since 2019

Thiago Henrique Gomes Lobato's Badges

  • 6 Month Streak
  • Knowledgeable Level 3
  • First Answer

View details...

Contributions in
View by

Answered
Finding the point before landing
You used the function, not the calculated variables to find the index. Your point definiton was also a bit off. This version of ...

4 jours ago | 0

Answered
How to produce a scatter plot with smooth line for this plot?
Those smooth lines are interpolations between the given points. For you to have a similar result, what you need to do is find an...

4 jours ago | 0

| accepted

Answered
Not enough input arguments.
Your Model_Inc function is not correct written, since it always return zero for a dummy variable you created in the beggining. I...

4 jours ago | 0

Answered
keep element greater than immediate previous element
This loops does what you want: x = [1 2 3 4 3 2 3 4 6 8 5 5 6 8.5 9 11 12 ]; m = length(x); keep = [x(1)]; discard =[];...

4 jours ago | 0

| accepted

Answered
fmin additional variables ( are vector)
Your first attempt was right [X fval exitflag output lambda grad hessian] = fmincon(@(x) fun(x,g_14,k_4) , x0, A, b, Aeq, beq,l...

11 jours ago | 1

| accepted

Answered
Store user input data into matrix
Your loop position was wrong and you should save values as strings, not cells. This version of your code works: n=2; filename=...

11 jours ago | 0

| accepted

Answered
How to solve a system of equations when multiple parameters changes
A for loop work, maybe you had some trouble with the indexes w_1=[1,2]; w_2=[2,3]; w_3=[3,3]; w_4=[4,5]; w_5=[5,6]; w_6=...

11 jours ago | 0

| accepted

Answered
Grouping sequence within interval
Something like this should do the trick for you V1 = [0.73 0.74 0.77 0.78 0.79 11.17 11.18 11.19 11.20 11.22 11.23];...

11 jours ago | 0

Answered
How do I round off the answer for the depth to within 2mm?
If you want to round to a specific unit (m, mm, etc), you can do this by just adding an extra parameter to the round function wi...

11 jours ago | 0

| accepted

Answered
How do I make a scatter 3D plot move towards a line
It mostly depends of what points should move (only neighbours or all of them), but after you decide it you can calculate the clo...

18 jours ago | 0

Answered
Particle size calculation from given image
The size for each particle is a task which is extremely hard to automatize, you will always get some error due to different ligh...

18 jours ago | 0

Answered
Mean absolute value for ecg signal
Your code is okay with exception of the length. If you have a sampling rate of 250 Hz (or, in another way of expression, values ...

18 jours ago | 0

Answered
How to work with Matrices that have a great difference in element size (e.g. 1 to 10e+15)?
I don't believe you're facing problems due to the difference of magnitudes, but rather because your problem may be very ill-cond...

25 jours ago | 0

| accepted

Answered
Nonlinear multiobjective optimization - Gamultiobj - Options
If you write your optimization problem like this: x = gamultiobj(fun,nvars) You're basically telling the optimizer that you ha...

25 jours ago | 0

Answered
How to generate lines between a fixed point and evenly spaced points on a line
If I understood your question right you mean something like this? clc; xlim([0, 100]); ylim([0, 100]); hold on Ax=0; Ay...

25 jours ago | 1

| accepted

Answered
PLOTTING A SINE WAVE USING TRIGNOMETRIC FOURIER SERIES
You have an analytical waveform, so you can generate it for 4 cycles without using any fourier function. Then, if you use the ff...

25 jours ago | 0

Answered
how to imput a matrix end outpur four arguments
The main function creation in matlab has the following form: function output = FuncName(input) output = f(input) end Input...

25 jours ago | 0

Answered
Optimization of 4 variables by minimizing RMSE error as an objective function using fminsearch
Some points: Your rmse function is not returning any value You need to pass a function to the optimization function that takes...

environ un mois ago | 0

| accepted

Answered
I'm getting an error in obtaining the optimal solution for a nonlinear equation
You have an error in your wolf loop. It should be like this: while ( ( ( fh > f + c*alpha0*gradx'*p ) || ( abs(gradk)'*p > cu*a...

environ un mois ago | 0

| accepted

Answered
odeEueler Explicit Eurlers method
You had many syntax errors on your code. Here is a version with them fixed and it should work. Although a negative weighting is ...

environ un mois ago | 0

| accepted

Answered
Filter time-variant data and reduce its length
Take a look at medfilt1 and/or movmean. They sould help you reduce the fluctuations. To reduce the data length you just index th...

environ un mois ago | 0

Answered
How to use function like `min` in symfun?(I got an error)
You can't use min or max in symbolic variables in matlab. A work around can be this one: syms x1 x2 real; xlt = symfun(1/2*(x1...

environ un mois ago | 1

| accepted

Answered
Minimum of a function
You had some typos in your constrain function and also you don't need to create a function file for your function since you alre...

environ un mois ago | 1

| accepted

Answered
How do I fix the array error?
Look this part as example: for t = ProjectedTime HatchVec = Hatchling - (Hatchling .* 0.675) - (Hatchling .* 0.325) + (Bre...

environ un mois ago | 0

| accepted

Answered
how to fit a Nonlinear model with multiple input and single output by using dataset in matlab
Without your data nor any code is difficult to specifically help you. Still, a general thing you may do, if you already have the...

environ un mois ago | 0

Answered
Is there any method to plot two dimensional view of a function which depends on multi variables?
What exactly you expect to get with this? Your function dependes on three variables, so if you vary only x, the result will depe...

environ un mois ago | 1

Answered
Retrive variable out of a parfor loop
You have an error in your mont_carlo inputs, it should be [x,neigh,E,M]= monte_carlo ( N, T, iter,init ) or you should delete ...

environ un mois ago | 0

| accepted

Answered
Predict function in KNN
Your KNN is not a single model to make predictions but rather a RegressionPartitionedModel. Which means it has all the statistic...

environ un mois ago | 0

| accepted

Answered
Find params that minimize function
You can define it as an annonymous function and then call fminsearch to solve it: e = 5; xi = [1,2,3,4]; yi = [3,4,5,6]; si...

environ 2 mois ago | 0

| accepted

Answered
How to implement mathematical functions
Considering that nu is a function of x,y,z and you described it as a 3-dimensional matrix in your code you could implement then ...

environ 2 mois ago | 1

Load more