Community Profile

# Thiago Henrique Gomes Lobato

##### Last seen: Today
190 2019 年以降の合計貢献数

#### Thiago Henrique Gomes Lobato's バッジ

retrieve phase information using 'pspectrum'
Why you need the phase? The pspectrum function calculates the power spectrum, which depends on the absolute square of the fft, s...

6日 前 | 0

Finding the probability of a given x-value on a histogram
If your dataset has discrete values, you don't need to get the histogram, rather just count how many times the median appear and...

6日 前 | 0

| 採用済み

Make a standalone app
It can be both. With appdesigner you can either create an matlab app (that will run in any other matlab), a web application or a...

6日 前 | 1

| 採用済み

regression analysis of lagged days
Your first argument should be a matrix with all the variables you need for prediction. So, in your case, you need to form a matr...

13日 前 | 0

| 採用済み

implementation of a matrix
This should do: rng(42) n = 3; x = rand(n,1); A = ones(n,n+1); Differences = x-x'; for idx=2:n+1 A(:,idx) = A(:,idx-1)...

20日 前 | 0

| 採用済み

How to calculate steady state with fsolve with white noise in equations ?
That depends on how you define Steady state. If your derivatives are never actually zero, you will never have a fully perfect st...

20日 前 | 1

Support Vector Machine: Linear or Non-linear
SVM is always linear in the parameters, but using non-linear kernels allows it to consider non-linear relations between the data...

27日 前 | 0

| 採用済み

Plot the STFT spectrogram
The function tutorials of matlab normally give code examples and results. For you to reproduce the result you just need to run t...

27日 前 | 1

| 採用済み

Map triplets to a matrix
You can try the ismembertol function: [XX,YY] = meshgrid(0:0.1:1,0:0.1:1); Points = [XX(:),YY(:)]; PointsToMatch = [0,0; ...

27日 前 | 0

Finding the mean of a histogram
What do you mean by mean? The mean number of bins or the mean of the variables that the histogram represents? For the second you...

27日 前 | 0

How to compute the density of a 3D point cloud?
You can just directly apply the definition you gave considering that the density is N/Volume. The easiest is the second one, whi...

27日 前 | 1

| 採用済み

Group array in a cell according to their size
A direct implementation could be done like this: A={[1 2 3 4] [4 5 6 9] [1 2 3] [7 8 9] [1 2] [3 4]}; sizes= []; for idx=1:...

| 採用済み

How to fit one variable data into multiple ode equations
What you mean by y(1)? That you have data only for the first variable y1? Your equations seem to be coupled, so if you optimize ...

| 採用済み

How write these equation in Matlab for optimization
First you don't need the variable w, your problem is to maximize corr(Q,S), which is a unconstrained problem in x. Second, by yo...

| 採用済み

Evaluate Function at different data points from vectors
Use meshgrid to generate all combinations and make your function accept vector entries. Ex: f = @(x,y,z)x.*y+z; % Insert your ...

| 採用済み

Fit two peak model
You can estimate a continious function from your data using ksdensity and then fit two gaussians on it. My answer for the follow...

| 採用済み

Work with signals, frequency spectrum and frequency domain
This version of your code should do what you expect. After the loop I wrote an example of how to go to the frequency domain %% ...

How can I stop fminsearch in one iteration after a specific time?
If when you say stop you mean it simply freezes and you don't get an error nor the iteration goes on than you probably have some...

i wan to generate the random number between two number with condition
If your second column has values equal to 40% of the first, then they are not random. You can vectorize this in the following fo...

| 採用済み

How to determine the value of a matrix?
What you have is an integer matrix factorization problem, which is a rather complex topic. Main points that you have to take in ...

| 採用済み

matlab code for musical note recognition based on frequency
To really undestand the method, first try to define how exactly you gonna get the frequencies. Your main steps are : Define you...

| 採用済み

Converting Cartesian Coordinates to Binary image
This is an general example you could use: Cartesian = [ 10,1; 15,10]; imSize=20; binaryImage= false(imSize)...

chirp plot(i dont know what`s wrong plz help me)
Your code had some errors in respect to element-wise operator (^ instead of .^). Also you use the old time variable for the seco...

How to Adjust x axis plot values in Matlab?
Use the xticks and xlim functions: M= [0.47 0.49 0.50 0.50 0.51 0.51 0.51 0.51 0.51 0.52 ]; Range= 5:2:23; plot(Ran...

2ヶ月 前 | 0

| 採用済み

Smoothed daily count of each column by applying a moving average filter of length 7
If your table has numeric values, then: c=T{:,6}; yy=smooth(c,7) If your table has string values that should represent numeri...

2ヶ月 前 | 0

7x7 arithmetic mean filter
You can colvolve the image with a filter that will perform the average. In your case it will be something like this: I = randn(...

2ヶ月 前 | 1

Finding values corresponding to row and column index of a matrix
Have a look at the sub2ind function: A = [1 12 23 19 1 13; 2 3 13 34 5 75; 5 22 45 5 1 94; 4 5 68 2 5 17; 2 4 34 1...

2ヶ月 前 | 0

| 採用済み

Signal audio - effect downsampling ?
What exactly do you want to achieve? You see, downsampling the signal alone doesn't increases the frequency of it. This effects ...

2ヶ月 前 | 1

how to extract variables from cell (dot operators)
You don't need to pre allocate since the best models are already in your cell array. I believe what you want may be something li...

2ヶ月 前 | 1

| 採用済み

I want to know how to overcome executable standalone app - image write path error?
The problem is the userpath function. As stated in the error, you can't modify a matlab path in your deployed application, regar...

2ヶ月 前 | 0

| 採用済み