Community Profile

photo

Thiago Henrique Gomes Lobato


45 total contributions since 2019

Thiago Henrique Gomes Lobato's Badges

  • Knowledgeable Level 3
  • 3 Month Streak
  • First Answer

View details...

Contributions in
View by

Answered
Graphing Confidence Intervals with upper and lower bounds
You were creating a picture for every loop iteration, and the plot function can't interpolate between points if you give them on...

1 jour ago | 0

Answered
Neural Network - MLP
I'm not sure why you want to shorten the code, it is already vectorize and I don't believe it can go so much less than this. Jus...

1 jour ago | 0

Answered
How to repeat monthly data over several years?
Matlab has a function for concatenating values in different dimensions, you could solve your problem like this: A = randn(144,1...

1 jour ago | 0

| accepted

Answered
Generate normally distributed sample from data
I need to be careful to not start any discussion about how one actually define a normal distribution, but starting from the poin...

1 jour ago | 0

| accepted

Answered
Where are the bugs for this ODE finite difference problem that solve using Newton Raphson method?
I didn't check exactly your FEM implementations but one thing that I quickly noticed is that the Newton-Rapson is an iteractive ...

9 jours ago | 0

Answered
How do I create a loop for this expression?
Those modifications fix your code. Your fogot the actually equation in the iteration and had some variables misplaced. a=input...

9 jours ago | 0

Answered
I'm trying to make a game and need some help
I would maybe advise you to use somehting like Unity to create your game since Matlab is more to perform numerical computations....

9 jours ago | 0

Answered
how to combine two image to get one image
This should do what you want: I = imread('cameraman.tif'); I2 = imresize(rgb2gray(imread('onion.png')),[size(I,1),size(I,2)])...

9 jours ago | 0

Answered
fill a boundary region with white colour
You can transform the contourns in a binary image, fill it and than translate it back to your original image. Here is an example...

16 jours ago | 1

| accepted

Answered
how to join highlighted points by curve in 3D
For you to join those points with a radius that will gradually increase you first need to define what exactly is "gradually incr...

16 jours ago | 1

| accepted

Answered
How to create a sliding window function over column vector M
You can easily implement a loop for this A = [1,2,3,4,5,6]'; % Easy vector to verify output fun = @(x)mean(x); % Your function...

16 jours ago | 0

Answered
Chaotic number, Chaotic sequence.
What do you mean by chaotic number, random? If so have a look at the functions randn for normal distributed numbers and rand for...

23 jours ago | 0

| accepted

Answered
any trick to stop fminsearch early?
Yes, there is, you can pass an output function and change the optimization state as soon as your error gets the threshold that y...

23 jours ago | 1

| accepted

Answered
How to erode parts of an image
If you just have one image, doing a matlab code to find the borders would be an overkill, so it would be better to just check th...

30 jours ago | 0

Answered
Repeat specific elements in vector with keeping the basic vector
repelem indeed solves your problem, you just have to give the repetition indexes as a element-wise argument and pass the whole v...

30 jours ago | 0

Answered
Shortest path through node group sets
If you have negative weightings an Algorithm that would work to find the shortest path is the Bellman-Ford. You can find some in...

30 jours ago | 0

Answered
Another "unable to perform assignment because the indices on the left side are not compatible with the size of the right side" thread.
The problem is only about the indexing. When you do something like sV(k, c), you're actually getting a matrix with all possible ...

30 jours ago | 1

| accepted

Answered
Audio Recording on Matlab Issue
Your code is fine, those square signals are just because the low amount of bits in the default audiorecorder which is very low (...

30 jours ago | 0

Answered
Create a matrix that stores rows that are not from a random sample
The function ismember may be what you need to efficiently solve your problem: OriginalMatrix = randn(1020,9); RandomMatrixInde...

30 jours ago | 0

Answered
List of paths between two points
It is not so clear by your list what underlying process you have, but I may assume you have a map (graph) where each point is a ...

30 jours ago | 0

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
You don't need to declare numerical values with syms your variable sum is the same as the function sum for matlab, this can cau...

30 jours ago | 0

| accepted

Answered
Selecting specific region around the known indices of a matrix.
You can dilate the image with a disk kernel and then take the difference to get the indexes: A = load('matlab.mat'); h = fsp...

environ un mois ago | 0

| accepted

Answered
Can i find 'mean' of on column , based on second column ?
You can first find the index where columm 6 is one, save it in a vector and then use it as a mask for your first columm, in this...

environ un mois ago | 0

Answered
Error. I want to plot this ode45 pressure versus time
There were some errors in your code: For ode45 you give numerical functions, not symbolic ones There were some variables that ...

environ un mois ago | 0

| accepted

Answered
How to find the maximum value for each 2 rows in an array?
If I understood right you want the maximum element-wise matrix entry between the two matrices that appear in your 3rd dimension ...

environ un mois ago | 0

| accepted

Answered
How to plot boundary of an image from any given distance
Your input is just the image, so I can't check the solution in your exact data, but this should either way solve your problem or...

environ un mois ago | 0

Answered
How to calculate correlation coefficients for each corresponding pixel of two images(of same dimensions)? I need the output also to be of same dimension.
I believe they used a slided window cross correlation, which is basically the same as if you use corr2 (which will give you just...

environ un mois ago | 0

| accepted

Answered
Adding a piecewise time dependent term in system of differential equation
The conditional statement idea is right, the problem was that you considered that the ode45 would evaluate your function only at...

environ un mois ago | 2

| accepted

Answered
Using a For Loop to calculate the pi for a taylor series
You can do it in a way to test multiple n's at giving input, as for example "[10,100,1000]" as input: clear;clc; format Long ...

environ un mois ago | 1

Answered
Use reshape to image with 3 dims
A = randn(6000,28,28); newA = reshape(A,[28 28 6000]); size(newA) imshow(newA(:,:,1)) size(newA) ans = 28 ...

environ un mois ago | 0

Load more