photo

Thiago Henrique Gomes Lobato


Last seen: plus d'un an il y a Actif depuis 2019

Followers: 0   Following: 0

Statistiques

  • Revival Level 1
  • 12 Month Streak
  • Pro
  • Knowledgeable Level 5
  • First Answer

Afficher les badges

Feeds

Afficher par

Réponse apportée
Graph works fine for 1 value, I am trying to graph 3 values on the same plot
Each N changes the data of the plot, so you need to make it in an outer loop w = .5; %% 2w=1 x = -.5:0.1:.5; %...

environ 3 ans il y a | 0

Réponse apportée
find array dispersed within another array
You could trace the first array on the second backwards: A = [ 1 2 3 4 5 1]; B = [ 1 0 2 0 2 3 4 0 5 1]; positions = zeros(...

environ 3 ans il y a | 0

Réponse apportée
How to fit data with custom function with two variables?
You can minimize the error of your model to the data you want by optimizing the parameters. One alternative for it is, for examp...

environ 3 ans il y a | 0

Réponse apportée
Help determining velocity of Bubbles
The main workflow that you gave is right and one of the names this process is known is optical flow. Matlab has some functions t...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Plotting points of intersection using Newton Raphson
Your last line use fixed values, so it will only work for one case. Additionally there was an error in the order of the variable...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to take average of lines in Plot & Plot it as one graph?
Do you have access to the data of all those graphs as a matrix? If so you can do it in a very straight forward way: data = rand...

plus de 3 ans il y a | 0

Réponse apportée
How to convert from plot3 to surf?
You have scattered 3d points, surf is made for rectangular grid data. An alternative is to use a function specifically for scatt...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How to get range of values from a plot?
The difference between gradient and diff is that the first calculates central differences and the second forward differences, bo...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
I can't find the mistake in the code
You can't use "abs" since the coefficients/x values can be negative.

presque 4 ans il y a | 0

Réponse apportée
Average of 2 sets of random numbers
Take a look at the binomial generator, it does what you want to.

presque 4 ans il y a | 1

Réponse apportée
Add each row of a matrix consecutively to all the rows of other matrix where both have equal number of columns
You can avoid the loop by using repeated indexing: IndexesA = 1:size(A,1); IndexesA = sort( [IndexesA,IndexesA] ); % IndexesA=...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Finding 5th to 15th central moment
The std function has a bias correction which the kurtosis doesn't, if you remove it you get the same result: rng(31415) A = ...

presque 4 ans il y a | 2

| A accepté

Réponse apportée
Extracting numeric values from symbolic variables
x==c The "==" operator is normally used as a logic comparison operation, not an assignment. In the case of using symbolic varia...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How to extract detail data from matlab Plot?
If you plot only 118 points you can't get more from the plot. The results are interpolated and probably what you want is a conti...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
False Output from find-function?
max(A) is a vector, not a number: max(A) ans = Columns 1 through 15 1.0000 1.0000 1.0000 1.0000 1.0000...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How can I write a Matlab code on Digital Signals Processing ?
This should work for you, the code is almost self explanatory: L = 1024; Periods = 4; M = 128; A = 1; figure,plot( squareWa...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Curve to fit a loglog graph and its equation
There are some issues with your fit. First, log(0) is not defined, so what you expect to become from a fit that uses log(0)? If ...

presque 4 ans il y a | 0

Réponse apportée
How wide range do optimalisation algorithms cover?
All of them except fmincon are unconstrained optimization algorithms, which means they can have any possible value in the group ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
In intlinprog how can I put condition for x = 1 or 0
You use a lower and upper bound of 0 and 1, respectively. Then if your number is an integer and should be between 0 and 1, the o...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to display matlab plots in a GUI in python using api engine?
I don't think any python GUI has a canvas which can handle matlab plots directly. What you can do is to save your matlab plot as...

presque 4 ans il y a | 0

Réponse apportée
Matlab App designer 20190a
A push button cannot "stay pushed", as soon as you click it the callback is called and then the state is reset. If what you mean...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to give conditions on transformations of variables in cvx?
As far as I know the Cvx library doesn't accepts fft/ifft. What you can do is to calculate the ifft by "brute force" in a way th...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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)...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 1

Réponse apportée
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...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 4 ans il y a | 1

| A accepté

Charger plus