Réponse apportée
Calculation of Maximum Fractal Length for a time series vector
It looks like the equation you have implemented will do the calculation you show as Equation 6. It would be good if you had a si...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
DTFT possible on Matlab?
Yes - you can use the MATLAB FFT (fast fourier transform) function to compute DFT's. Please see the MATLAB documentation for det...

presque 7 ans il y a | 0

Réponse apportée
Two variable Cumulative Sum calculation
If I understand your description corrrectly, I think this does what you want, no loops needed. B = cumsum(cumsum(A,1),2)

presque 7 ans il y a | 1

| A accepté

Réponse apportée
Reformat a matrix based on common column
Hi Devansh, You can use basic MATLAB indexing to solve your problem, say your original matrix is given by A, then use % genera...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
How to determine whether point lies within pyramid volume
Hi Musa, You can first define your pyramid as an alphaShape, for example: P = alphaShape([0 1 -1 1]',[0 1 -1 -1]',[1 0 0 0]')...

presque 7 ans il y a | 3

Réponse apportée
Fourier Transform by using MATLAB
Hi, I either can't reproduce your problem or am not understanding it. Below I have inserted some sample code (which I think es...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How Can I Solve this error in Matlab?
Now you are encountering the problem that I listed as "Second Error:" in my original reply. Your program includes a function, t...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How Can I Solve this error in Matlab?
Hi Syed, MATLAB is telling you that you don't have a directory called: C:\Users\4szrn\Dropbox\Brain_Tumor_Thesis\MRI-scan-segme...

presque 7 ans il y a | 1

Réponse apportée
How Can I Solve this error in Matlab?
Hi Syed, You actually have two errors. First Error: You get an error from the command, addpath( '../dataset' ) . This command ...

presque 7 ans il y a | 1

Réponse apportée
How can I do matrix multiplication on sets of data in an array without looping?
I don't know if it would be any more efficient than your loop (you could check with some timing tests) but here is an alternativ...

presque 7 ans il y a | 0

Réponse apportée
plotting fitted curve to a set of data
Here is some example code that shows two typical ways of plotting a data set a long with a fitted curve. % example plotting x,...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
I want to solve the equation within the loop and plot it, but it seems not work
Maybe you can explain further what you mean by it doesn't seem to work. What is it doing that you don't want it to do or what i...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Issue with "Matrix Dimensions Must Agree"
With the dimensions you indicate, it seems that the denominator will have 12 elements (you say r is 1 x 12) and the denominator ...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Find index of a matrix of values into another matrix
This should work assuming you have exactly one match in each row. If some rows have no matches or more than one match you will h...

presque 7 ans il y a | 0

Réponse apportée
Determining maximum and minimum Daily temperatures
If you have exactly 24 data points for each day (one for every hour) then you could use this approach, assume you have your data...

presque 7 ans il y a | 0

Réponse apportée
How to resolve an error for undefined function or variable 'x' within a function?
Without having the actual datafile that the program operates it is difficult to fully debug your code. A cursory inspection indi...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How to make some optimization variables equal to each other?
I assume you are using one of the MATLAB optimization functions such as fmincon or linprog. These functions include arguments Ae...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
Repeat the concatenation of every n rows
I think this should do what you want: s = reshape(data',178*23,500)' Note the use of the transpose (accent symbol) first to tr...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
Sum Numbers Excluding Zeros
The following code should do what you want. There may be some way to do this more elegantly, but I think this works and should b...

presque 7 ans il y a | 2

| A accepté

Réponse apportée
how can I generate a random angle?
Use randn or rand depending upon whether you want the angles to be normally distributed or uniformly distributed. Since randn ...

presque 7 ans il y a | 0

Réponse apportée
Matrix addition from multiple files
You haven't provided enough detail to answer your question too specifically but in general the steps would be to read the indivi...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How to optimize a vector, where only two values are allowed?
If your objective function is linear (I can't tell from what you have included) e.g. minimize over x, f'x where f is row vecto...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
MATLAB plot not showing.
The problem is that the second plot is replacing (overwriting) the first one in the figure window. If you open up a new figure, ...

presque 7 ans il y a | 0

Réponse apportée
How to find the location of the first string matching my searching criteria?
Assuming you can get a cell array B of character vectors containing the headers, and the strings you want to match assigned to s...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Multiply each column of a matrix by another matrix
If I understand your question correctly then the result of the "operation for each column of E" will be on the main diagonal of ...

presque 7 ans il y a | 1

Réponse apportée
Plotting Root Locus with Pole/Zero Locations
Think about what a root locus plot actually is. It plots the locations of the roots (pole locations) in the complex plane as a f...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Dear Sirs, would you please help me and tell me how can I plot the average value of the previous y, while we have thousands (x, y) versus the current X?
If you do not want to keep all of the y's in memory and are only interested in the average of all of the y's up to the current s...

presque 8 ans il y a | 0

Réponse apportée
How to solve the error?
Look closely at your your assignment statement, Block(l,k)=L0(i:i+b-1,j:j+b-1). The left hand side, Block(l,k) is a scalar value...

presque 8 ans il y a | 0

Réponse apportée
Delete rows of table through search
I'm not sure from your description exactly what you are trying to do, but I assume it is one of the following two use cases. Use...

presque 8 ans il y a | 0

Réponse apportée
Matrix manupulation to get specific index
You can use the MATLAB find function for this. For example: % Define your matrix A = [1 1 1;1 9 1;0 1 0]; % use f...

presque 8 ans il y a | 0

Charger plus