Risposto
Create a loop which rolls the dice 100 times, stores the sum of all rolls in a variable and then plots a histogram of the sums.
@Baila, Unlike many post-ers, you have made an attempt, which is laudable. S = 6; R = 1; N = 2; T = 100; %out = randi([1 S...

quasi 4 anni fa | 0

Risposto
Work calculation from applied pressure
@Miraboreasu, You ask "How can I calculate the work has been done by pressure p". Do you mean the work done from time t=0 to t...

quasi 4 anni fa | 1

| accettato

Risposto
fit custom equation to dataset
@Julie Christoffersen, Different methods for fitting a nonlinear function (such as your nonlinear function) are at risk of find...

quasi 4 anni fa | 0

| accettato

Risposto
How can I calculate euclidian distance in RGB spaces for a skin lesion ?
@Ioanna St, Since there is a file missing which I need to run your code, I will just give a few suggesitons. Post the simplest...

quasi 4 anni fa | 0

Risposto
Curve Fitting Toolbox for Surface Extrapolation
@Tamas, I think interp2() is good. Vq = interp2(X,Y,V,Xq,Yq) Try it.

quasi 4 anni fa | 0

Risposto
Matlab Script that I can add a Gaussian Noise to a Discrete Wavelet Transform processed fault signal
@John Amoo-Otoo, If you have a fault signal x(t), processed by a DWT (or not), add Gaussian noise as shown. s=1; ...

quasi 4 anni fa | 0

| accettato

Risposto
I have two matrices the same size 'F1result' and 'F2result'. I need to compare them element by element and create a new matrices 'F' with whichever value is greater.
@Sean Flanagan, F1res=rand(3,3), F2res=rand(3,3) Fmaxres=max(F1res,F2res) It works.

quasi 4 anni fa | 1

Risposto
I'm trying to sum every two row and store the answer in new matrix, but the code keep giving me the wrong sum and copy the wrong answer in all the row of the new matrix.
@ibrahim nathem, Agg_load_1=10*rand(8,1); N=length(Agg_load_1); s=Agg_load_1(1:2:end-1)+Agg_load_1(2:2:end); disp(Agg_load_1...

quasi 4 anni fa | 0

Risposto
I'm trying to sum every two row and store the answer in new matrix, but the code keep giving me the wrong sum and copy the wrong answer in all the row of the new matrix.
@ibrahim nathem, Agg_load_1=10*rand(8,1); N=length(Agg_load_1); s=zeros(floor(N/2),1); %allocate array for the sums of 2 elem...

quasi 4 anni fa | 0

Risposto
how to calculate the capacity loss of a battery?
@sandeep, [edit: correct speklling mistake] Your model formulation looks good. You write Qloss(%)=(nominal capacity-discharge ...

quasi 4 anni fa | 0

| accettato

Risposto
How to make a global matrix
@Robert Fields, %global system e=cat(3,a,b,c,d); disp(size(e)) Try that.

quasi 4 anni fa | 0

Risposto
How simulate the different body posture related to WBAN?and want to find the distance between 15 sensors deployed on body
@Ansar Shah, It can get very complicated! As @Walter Roberson pointed out, the mode of signal propagation (through body or on ...

quasi 4 anni fa | 1

Risposto
how to save coordinates in a text file?
@youssef hany, I do not see the matrix of selected points which you want to save. Maybe that is the problem. Here is an exampl...

quasi 4 anni fa | 0

| accettato

Risposto
what is my problem using split operator methods on gaussian wave packet time evolution in free space
@Daniel Niu, Plot abs(u), instead of u, and you will see that the transformed signal is still Gaussian, as expected. .

quasi 4 anni fa | 0

Risposto
Why do I received Error using Plot?
@Sofea Irene, I have moved my comment to be an answer, as I originally intended, and I have added to it. [edit: correct spellin...

quasi 4 anni fa | 1

| accettato

Risposto
How do I plot an image in Log-Log axis?
@Tomas Carvalho, I canot run your code since I do not have findcategory(). I made usg and usl slightly different lengths to be...

quasi 4 anni fa | 0

Risposto
I want to draw a scatterplot but there's a problem about range of color
@SungJin Jang, I am not sure what color scheme you are trying to accomplish. Your present code assigns color to each point wit...

quasi 4 anni fa | 0

Risposto
Looking for a existing or any sensor fusion algorithm that gives quaternions(orientation) as output using Accelerometer and Gyroscope readings as inputs?
@Revanth Kumar Adireddy, I was asked to help determine head angular and linear acceleration during soccer heading. The data ca...

quasi 4 anni fa | 0

Risposto
Fitting a hyperbola through a set of points
@Ravi Mudragada, The columns in the workbook are 12 long for P1, I1. The columns are 11 long for P2,I2. When readtable() reads...

quasi 4 anni fa | 0

Risposto
Corrupt the signal with zero-mean white noise with a variance of 4.
@KYRIAKOS PIPIGKAS, I am sorry to hear in your comment that you have been struggling with this prblem for a long time. You said ...

quasi 4 anni fa | 0

Risposto
How can I add air-ater interface in the acoustic source localization examples?
@Upinder Kaur, Apply Snell's law for refraction. and Set index of refraction=1 in the faster medium: and Then For...

quasi 4 anni fa | 0

Risposto
How to calculate sway area rate for center of pressure
@chris pamp, You are welcome. Best wishes for your research.

quasi 4 anni fa | 0

Risposto
Corrupt the signal with zero-mean white noise with a variance of 4.
@KYRIAKOS PIPIGKAS, As @dpb said, it would help to know the context of the statement. Adding random noise to a signal can be u...

quasi 4 anni fa | 1

Risposto
Don't get what is happening in matlab sin() function. need to know difference between sin(2*50*pi*t) and sin(2*1*pi*t)
@AK Nahin, In your original code, you were evaluating sin(t) at integer multiples of pi, and therefore sin(t)=0 at each point. ...

quasi 4 anni fa | 1

Risposto
Rain attenuation model based on ITU-R P.838-3 Recommendation
@SAM, freq=[1:1000]*1e9; Rr=[0.25, 1.25, 5, 25, 50, 100, 150]; for i=1:7 L=rainpl(10000,freq,Rr(i)); loglog(freq/1...

quasi 4 anni fa | 1

Risposto
How to save all the simulated iterations (output of loop) togather?
@Nisar Ahmed, Make a 3D array. vp0all=zeros(115,50,5); for i=1:5 vp0=rand(115,50); %compute vp0 vp0all(:,:,i)=vp0;...

quasi 4 anni fa | 0

| accettato

Risposto
How estimate function derives initial estimates using standard time series techniques? what are these standard time series techniques?
@mhd z, It's complicated. The methods usd to generate initial estimates are described here: https://www.mathworks.com/help/eco...

quasi 4 anni fa | 0

| accettato

Risposto
How to calculate sway area rate for center of pressure
@chris pamp, Since you already have the data in Excel. there is no need for Matlab. Do the calculation in Excel, using equatio...

quasi 4 anni fa | 2

| accettato

Risposto
Convert Equation to matlab
This is motion capture or force plate data. AP, anterior-posterior. ML, medial-lateral. The jerk is numerically integrated over ...

quasi 4 anni fa | 1

Risposto
How to detect heel strike and toe off from left/right vertical force data?
@Mario, yuou might want to check out this article on this topic. (I am one of the authors.) https://pubmed.ncbi.nlm.nih.gov/204...

quasi 4 anni fa | 1

| accettato

Carica altro