Respondida
Rankine Leading Edge Graph
@Roxanne Willisamson, What is the question? This line is missing something: Cp = 1 - (u.^2+v.^2)V^2; We must add * or / or...

alrededor de 4 años hace | 0

| aceptada

Respondida
how to implement sound of something collapsing in matlab?
@Muazma Ali, This site has a collection of sound clips of things collapsing. The site says the clips are royalty-free. You mu...

alrededor de 4 años hace | 1

Respondida
How can I map a specific location in MATLAB using the drone images with corresponding gps data latitude and longitude?
@Cristel Esmerna, My interpretation of your question is that you would like to show shapes on a basemap that will indicate the ...

alrededor de 4 años hace | 0

Respondida
How to maximise the objective function with constraints and plot the solution
@Ancy S G, Since this is a simple function of one adjustable variable, use calculus: differentiate and solve for where the deriv...

alrededor de 4 años hace | 1

| aceptada

Respondida
How to maximise the objective function with constraints and plot the solution
@Ancy S G, The routine fmincon() is good for this. The name is short for function minimization with constraints. Minimize the ...

alrededor de 4 años hace | 0

Respondida
Different Fourier transform (fft) of the same signal with different sampling frequency
@Martina Kocan, The normalization, or vertical scale, of the FFT is affected if you sample the same physical signal at differen...

alrededor de 4 años hace | 1

| aceptada

Respondida
plot multiple lines with same sample size and apply colour string
@Yuktha Andie Ravinthiran, Yes it is possible. Use the "hold on" command and write a for loop. Inside the ploop, plot successi...

alrededor de 4 años hace | 0

| aceptada

Respondida
Spectrogram and Spectrum of an audio file
@Juan Carlos Pérez Novoa, [Edited because I submitted the answer before I was finished answering.] It would help if you would ...

alrededor de 4 años hace | 0

| aceptada

Respondida
recreation of flight profile through recorded data.
@Muzammil Arshad, [edited: Fixed typographical errors: changed "what" to "that", changed "ow" to "now", changed "readdata" to "...

alrededor de 4 años hace | 0

Respondida
recreation of flight profile through recorded data.
@Muzammil Arshad, I downloaded your data file. It looks like it needs to be cleaned up, because the time and date stamps chan...

alrededor de 4 años hace | 0

Respondida
Trying to plot viscosity and kinematic viscosity vs altitude
@Roxanne Williamson, When I run your code I get the plot below. What do you not like about it? Th only revommendation I have i...

alrededor de 4 años hace | 0

| aceptada

Respondida
algorithm for minimisation of time given profit is maximised
@Malloju Dinesh, YOu asked "how can the profit be maximised and time be minimised at the same time.. " Good question. The pr...

alrededor de 4 años hace | 0

| aceptada

Respondida
Calculate min/max/mean value every 100 points
@Liliya Vasilevich, N=17999; M=1000; P=floor(N/M); x=rand(1,N); xavg=zeros(1,P); %allocate array for average values for i=...

alrededor de 4 años hace | 0

Respondida
Create a permutation of elements in the same position
@Salwa Mostafa, I see that you have already done it for 2 pairs of coordinates. Here is a way to do it for N coordinates. N=3...

alrededor de 4 años hace | 0

| aceptada

Respondida
Optimise a reference that cuts my curve into 2 equal sections
@fadi awar, If you mean that the area between the red line and the blue curve abve the line equals the area between the red lin...

alrededor de 4 años hace | 1

Respondida
Plot data vs time color coded by ID
@Jen B, I have copied your data into a text file and have attached it. I notice there are two planes and a distance to each on...

alrededor de 4 años hace | 0

| aceptada

Respondida
how to do scatter plot and color code the values?
@Anu, Please do not use l (lower case L) or I (upper case i) as a variable name, because they appear identical in some fonts. ...

alrededor de 4 años hace | 1

Respondida
solve a system of nonlinear differential equations
@ZL Yang, [I edited my answer to correct a few spelling errors.) That was excellent analysis from @James Tursa. It follows ...

alrededor de 4 años hace | 1

| aceptada

Respondida
How can I overlay vector arrows to an image of a 2D matrix?
@Yves, [editing my answer: I used image() before, but you wanted imagesc(), so now my code uses imagesc()] I agree with @Jan....

alrededor de 4 años hace | 0

Respondida
How to create a series of dimples over a plane
@Johnny Dessoulavy, Here's a script that makes a surface with up and down dimples. I plot the surface twice - zoomed in in the...

alrededor de 4 años hace | 0

| aceptada

Respondida
How can I insert modified time variables into an existing equation without completely rewriting the equation for the new time variable?
@Ryan Hampson, clear; %Part 2.a t=-11:.01:10; %start at -11 so we can access x(t-1) when t=-10 x=zeros(size(t)); %ini...

alrededor de 4 años hace | 0

| aceptada

Respondida
Angle between two vectors in a for loop
@Mateusz Soczalski, (I deleted my comment because I posted it before it was complete, and because I intended to post an answer ...

alrededor de 4 años hace | 0

Respondida
Frequency spectral analysis, how do I calculate it?
@Yong Kim, This code computes "harmonic ratio, the sum of even harmonics are divided by sum of odd harmonics". I define even h...

alrededor de 4 años hace | 0

Respondida
Frequency spectral analysis, how do I calculate it?
@Yong Kim, The signal in the file you uploaded seems to be truncated. See the plot below. The idea of harmonics only makes sen...

alrededor de 4 años hace | 0

Respondida
How to interpolate with different voxel sizes?
@Lieke Pullen, I would use interp3(). First you must create the grids X,Y,Z (the old coordinates of the voxels) and Xq,Yq,Zq ...

alrededor de 4 años hace | 0

| aceptada

Respondida
Issue with Matrix Dimensions
@Nilesh Naik, The error occurs at lines for ite=(1:500) for i=(2:M-1) om(i,1)=-u(i:2)/h; %error here o...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to reduce the line of the codes in the code given!
@muhammad choudhry, You read each of the three files four separate times. Read them in once at the beginning, to tables a1, a2...

alrededor de 4 años hace | 1

Respondida
Filter measured position data with Kalman Filter
@Kevin Cheng, If you do not have some model of how your position is changing over time, a model that you would update based on ...

alrededor de 4 años hace | 1

Respondida
Solve a system of fourth order coupled differential equations with bvp4c
@mariam ahmad, If you format your code as code when you post an answer or a comment, then you can run it and we can see the res...

alrededor de 4 años hace | 0

Respondida
I tried to solve projectile motion problem (velocity about physic) with matlab . I have some troubles ... Please help me immediately
@Sevval Zengin, I agree with the comment of @David Hill. I inteneded to make an answer not a comment. y=Vy-g*t; %should work ...

alrededor de 4 años hace | 1

Cargar más