Answered

How do i transform this equation system in to three dimensions?

Since this looks like the equations of motion for a solid body falling in a constant gravitational field with some velocity-depe...

How do i transform this equation system in to three dimensions?

Since this looks like the equations of motion for a solid body falling in a constant gravitational field with some velocity-depe...

ungefär 2 månader ago | 0

Answered

Change the markers color in the figure after plotting

You should be able to change the color of the points by using the hp output: set(hp(1),'color',[0.95,.3,0.1]) set(hp(2),'color...

Change the markers color in the figure after plotting

You should be able to change the color of the points by using the hp output: set(hp(1),'color',[0.95,.3,0.1]) set(hp(2),'color...

ungefär 2 månader ago | 1

Answered

learning to create functions in matlab(R2019a) but every time i try to do so , The value assigned might be un used (used a)create the file in code file, Am a beginner

Ok, here's what you're missing in this example: function a = myRand a=1+rand(3,4)*9; end Now your function has an output-va...

learning to create functions in matlab(R2019a) but every time i try to do so , The value assigned might be un used (used a)create the file in code file, Am a beginner

Ok, here's what you're missing in this example: function a = myRand a=1+rand(3,4)*9; end Now your function has an output-va...

ungefär 2 månader ago | 0

Answered

Convex Hull without the in-built function.

Take it step by step. 1, put points on paper. 2, work out how to step from the point with the smallest y-value to the next poi...

Convex Hull without the in-built function.

Take it step by step. 1, put points on paper. 2, work out how to step from the point with the smallest y-value to the next poi...

ungefär 2 månader ago | 1

Answered

Newton Iteration using symbolic function

Since you use symbolic variables and do the calculations symbolically you will get a symbolic answer. Here you should convert y...

Newton Iteration using symbolic function

Since you use symbolic variables and do the calculations symbolically you will get a symbolic answer. Here you should convert y...

ungefär 2 månader ago | 0

Answered

If I want to plot arrow in patch, what codes do I have to use? And is there any method by using quiver and patch together?

Can't you simply use either of these two file exchange contributions: arrow, arrow3. These are typically the functions I use whe...

If I want to plot arrow in patch, what codes do I have to use? And is there any method by using quiver and patch together?

Can't you simply use either of these two file exchange contributions: arrow, arrow3. These are typically the functions I use whe...

ungefär 2 månader ago | 0

| accepted

Answered

Find Centroid of area with 4 pouints

You could make good use of this little piece of information: Centroid of a finite set of points HTH

Find Centroid of area with 4 pouints

You could make good use of this little piece of information: Centroid of a finite set of points HTH

ungefär 2 månader ago | 0

Answered

Problem taking curl of a vector field.

If your sampling-points fall on a nice plaid regular grid then just use reshape to convert X, Y, U and V into 2-D matrices and e...

Problem taking curl of a vector field.

If your sampling-points fall on a nice plaid regular grid then just use reshape to convert X, Y, U and V into 2-D matrices and e...

ungefär 2 månader ago | 0

Answered

Using symbolic math to retain accuracy. Arrays

Factor out the average of each row of C. That should give you one term of the row-averages of C and then the sum of the logs of ...

Using symbolic math to retain accuracy. Arrays

Factor out the average of each row of C. That should give you one term of the row-averages of C and then the sum of the logs of ...

ungefär 2 månader ago | 0

Answered

How to find index in multi-dimension matrix

You can do this in 2 simple steps: [xMax,idx1D] = max(X(:)); [i1,i2,i3,i4] = ind2sub(size(X),idx1D); HTH

How to find index in multi-dimension matrix

You can do this in 2 simple steps: [xMax,idx1D] = max(X(:)); [i1,i2,i3,i4] = ind2sub(size(X),idx1D); HTH

2 månader ago | 0

| accepted

Answered

Make an double integral function

By putting the product inside the first pair of square brackets you've made the formula look a little bit confusing - since the ...

Make an double integral function

By putting the product inside the first pair of square brackets you've made the formula look a little bit confusing - since the ...

2 månader ago | 0

| accepted

Answered

adding random noise to an image for N times

The question is a bit too vague to be precisely answered. Image noise typically have some specific probability-distribution, pos...

adding random noise to an image for N times

The question is a bit too vague to be precisely answered. Image noise typically have some specific probability-distribution, pos...

2 månader ago | 0

Answered

Picking data from graph?

If you have the signal S, the corresponding sample-times t and the start and stop-times t1 and t2 you can select the signal in t...

Picking data from graph?

If you have the signal S, the corresponding sample-times t and the start and stop-times t1 and t2 you can select the signal in t...

2 månader ago | 0

| accepted

Answered

find onest and end of wave ?

You cannot in a strict sense. You will have to settle for the first and last wave-crest, or set some arbitrary threshold for the...

find onest and end of wave ?

You cannot in a strict sense. You will have to settle for the first and last wave-crest, or set some arbitrary threshold for the...

2 månader ago | 0

Answered

How to segment image without losing information at the edges for finding centroid?

The only way I can imagine the meaning of centroid in a grayscale image like the one above is with the same definition as "centr...

How to segment image without losing information at the edges for finding centroid?

The only way I can imagine the meaning of centroid in a grayscale image like the one above is with the same definition as "centr...

2 månader ago | 2

| accepted

Answered

How can I know more details about the function spap2?

Why don't you just try: edit spap2 From there you should be able to read for yourself. As far as I can see most functions are ...

How can I know more details about the function spap2?

Why don't you just try: edit spap2 From there you should be able to read for yourself. As far as I can see most functions are ...

2 månader ago | 0

Answered

how to solve ODE that contains integration over time?

For this type of integro-differential equations the standard "first-stab" trick is to differentiate it one step, which should gi...

how to solve ODE that contains integration over time?

For this type of integro-differential equations the standard "first-stab" trick is to differentiate it one step, which should gi...

3 månader ago | 0

Answered

Matlab mathematival modeling problem chemical eng

You have at least a couple of syntax errors in your code, namely the lines: 4*((dacetdt)^2)+10*dacetdt = racet; 4*((dAceticdt)...

Matlab mathematival modeling problem chemical eng

You have at least a couple of syntax errors in your code, namely the lines: 4*((dacetdt)^2)+10*dacetdt = racet; 4*((dAceticdt)...

3 månader ago | 0

Answered

why there are two different comands for calculating convolution of two vectors?

The answer to: why returned: "To please all." That might be more of a matlab in-joke, but a true answer can only (possibly) b...

why there are two different comands for calculating convolution of two vectors?

The answer to: why returned: "To please all." That might be more of a matlab in-joke, but a true answer can only (possibly) b...

3 månader ago | 0

| accepted

Answered

How to save/store/recuparate data from inside a nested loop.

This should be simple enough if you do something like this: Y_best = zeros(n_something,N_aoa); % Not clear to me what your Y co...

How to save/store/recuparate data from inside a nested loop.

This should be simple enough if you do something like this: Y_best = zeros(n_something,N_aoa); % Not clear to me what your Y co...

3 månader ago | 0

Answered

Adding a legend to a Graph in Matlab

Would something like: legend([h(idx1(1)),h(idx1(2)),h(idx3(1))],... 'label1','label2','label3') work for this case. Here ...

Adding a legend to a Graph in Matlab

Would something like: legend([h(idx1(1)),h(idx1(2)),h(idx3(1))],... 'label1','label2','label3') work for this case. Here ...

3 månader ago | 0

Answered

Does detrend function remove the mean of the signal?

If you read the help of detrend you will find: DETREND Remove a linear trend from a vector, usually for FFT processing. [...

Does detrend function remove the mean of the signal?

If you read the help of detrend you will find: DETREND Remove a linear trend from a vector, usually for FFT processing. [...

3 månader ago | 0

Answered

How to correct resonance phase plot

You could quick-fix this by plotting the phase-angle phi like: plot(unwrap(2*phi)/2) But you might have to check that you calc...

How to correct resonance phase plot

You could quick-fix this by plotting the phase-angle phi like: plot(unwrap(2*phi)/2) But you might have to check that you calc...

3 månader ago | 0

| accepted

Answered

Tri-diagonal Matrix with varying diagonals

You have to set the elements of z to the values you want. In your version you set z to a new scalar (first time around the loop ...

Tri-diagonal Matrix with varying diagonals

You have to set the elements of z to the values you want. In your version you set z to a new scalar (first time around the loop ...

3 månader ago | 0

| accepted

Answered

Colormap on values related to bins

Perhaps you could use scatter to plot this. According to your description itseems as if you have a 2-D histogram type of data, b...

Colormap on values related to bins

Perhaps you could use scatter to plot this. According to your description itseems as if you have a 2-D histogram type of data, b...

3 månader ago | 0

Answered

How to include variable offsets in polynomial equations

Have a look at the help and documentation of taylor. That should help you a good part of the way - especially if you use the 'ex...

How to include variable offsets in polynomial equations

Have a look at the help and documentation of taylor. That should help you a good part of the way - especially if you use the 'ex...

3 månader ago | 0

| accepted

Answered

3 loops using sprintf to change directories doesn't quite work

Have a good look at the help and documentation of fullfile. That function is made to help you generate full filenames with absol...

3 loops using sprintf to change directories doesn't quite work

Have a good look at the help and documentation of fullfile. That function is made to help you generate full filenames with absol...

3 månader ago | 0

| accepted

Answered

I am not able to solve value of 3 constants with three equations

For given values of b, d, and L you have a standard system of linear equation. An obvious solution to these equations are all ci...

I am not able to solve value of 3 constants with three equations

For given values of b, d, and L you have a standard system of linear equation. An obvious solution to these equations are all ci...

3 månader ago | 0

Answered

How to use ode45 to solve coupled second order differential equations

It might be that your expectations on the modification of the beat in y, it might be something else. (When I converted the dsolv...

How to use ode45 to solve coupled second order differential equations

It might be that your expectations on the modification of the beat in y, it might be something else. (When I converted the dsolv...

3 månader ago | 0

| accepted

Answered

How to interpolate harmonic data series (without sin / cos equation defined)?

You should not "inpaint" data this way and then use that to extract SQ-curves or any such averaged quantities. You have the data...

How to interpolate harmonic data series (without sin / cos equation defined)?

You should not "inpaint" data this way and then use that to extract SQ-curves or any such averaged quantities. You have the data...

3 månader ago | 0