Answered
Using gausswin function and iFT'ing data
@Cheggers, you are correct, you can use the same variable name for an input to the function and for an output from the function....

1 month ago | 0

Answered
Intersection between two functions
@Behbod Izadi, syms x S=solve(2.2/sqrt(2*9.81*x) == tanh((3.5/(2*4.5))*sqrt(2*9.81*x)),x) gives an answer. Is it reasonable? ...

1 month ago | 0

Answered
Filter recurring oscillation in 2D Data
@DGM, @Konvictus177, I cannot see diagonal banding. The arrows added to th image point to a vertical line, not a diagnonal feat...

1 month ago | 0

Answered
Using gausswin function and iFT'ing data
@Cheggers OK, I am glad if my earlier comment served as an answer to your probelem. I still think function windowFID() has a p...

1 month ago | 0

| accepted

Answered
How to fill a matrix with formulas
@aziz monavar, I see from your comment that you want the transpose. Therefore do this: y=zeros(1,20); y(1)=0.4; for i=2:20, ...

1 month ago | 1

Answered
Z-angle of a fit-plane having 4 points
@Gaetano Pavone, Is each data point a set of 3 coordinates? If the answer is yes, then do you know the x and y values exactly?...

1 month ago | 0

Answered
How to fill a matrix with formulas
@aziz monavar, You have a matrix y(i,j) but your formula is only for y(i). That is the problem @John D'Errico identifies. If y...

1 month ago | 0

Answered
Spline interpolation for angular data
@mukesh bisht, I suspect my earlier proposal won't work as I suggested, because the x-values passed to spline() must be unique....

2 months ago | 0

Answered
Spline interpolation for angular data
@mukesh bisht, The shape of the fitted spline at each point depends on points before and after that point. The curves do mot m...

2 months ago | 0

Answered
Relationship between 2 poly curve/ 2 data sets , how can I correlate it ?
@Eric Aw, Here is an implentation of my previous suggesitons. The attached code produces the console output and the plot below....

2 months ago | 0

| accepted

Answered
Relationship between 2 poly curve/ 2 data sets , how can I correlate it ?
@Eric Aw, See my quesitons in the ealrier comments. I moved your data into a text file (attached) and made a few tweaks to you...

2 months ago | 0

Answered
How can i do frequency weighted to acceleration time domain data to assessment the whole body vibration as (ISO 2631-1) recommended?
@Yahia Gaddal, Thank you to @Simon Chan for reading your quesiotn carefully and for noticing that you had posted a data file an...

2 months ago | 1

| accepted

Answered
How can i do frequency weighted to acceleration time domain data to assessment the whole body vibration as (ISO 2631-1) recommended?
I tried using the file generated by the code above in'vibriton data'. After clicking sevral buttons I reached a screen that say...

2 months ago | 0

Answered
How can i do frequency weighted to acceleration time domain data to assessment the whole body vibration as (ISO 2631-1) recommended?
@Yahia Gaddal, I decided to test the vibrationdata package of Mr. Tom Irvine by creating some simulated acceleration data. My ...

2 months ago | 0

Answered
How to solve a mass-spring-damper system with external time-dependent forces.
@Muhammad Ali, I am not familiar with the method you used in your code to derive the matrices A and B that describe the system....

2 months ago | 0

| accepted

Answered
How to solve a mass-spring-damper system with external time-dependent forces.
@Muhammad Ali, You do not need to use interpolation to add external forcing. I think a better approach is to compute the force...

2 months ago | 0

Answered
How to solve a mass-spring-damper system with external time-dependent forces.
@Muhammad Ali, I downloaded your code and saved it as coupledMasses1DextForce0.m. When I ran it, I got an error message about ...

2 months ago | 0

Answered
How can I plot a relative frequency histogram in Matlab?
@Eric Bernard Dilger, The overlapping bars in the plot abve are potentially confusing to the viewer. Therefore I added some co...

4 months ago | 1

Answered
How can I plot a relative frequency histogram in Matlab?
@Eric Bernard Dilger, Matlab's histogram() command is nice. Attached script shows how you could use it. It produces the plot be...

4 months ago | 1

| accepted

Answered
What are the option for probabilistic forecast in Matlab for energy forecasting?
@israt fatema, Matlab has many excellent tools for prbabilistic forecasting. A baseline of knowledge is needed...

4 months ago | 0

| accepted

Answered
Finding multiple x-intercepts for a dataset
@Jacob Hohsfield, You said you have a 2D dataset. If you mean the spectrogram, the time dependent Fourier transform, then find...

4 months ago | 1

Answered
Finding multiple x-intercepts for a dataset
@Jacob Hohsfield, Matlab has a very nice peak finding function, findpeaks(), help here: It has nice options, including thresho...

4 months ago | 1

| accepted

Answered
Maximize objective function using fmincon with a limit
@Angel Ani Create the following function and save it as file parameterfun.m: function y=parameterfun(x,U,V,y1,y2) y=-((U*y1 -...

4 months ago | 0

| accepted

Answered
data fitting with custom equation
@Somnath Kale Here is code that fits w and t1 as you requested. For a starting guess [w,t1]=[1,1], the console output and plot ...

4 months ago | 0

| accepted

Question


why does this integral fail?
I created an anonymous function. fun=@(x,t,A,w,t1) (A*w/pi)*(1-exp(-(t/exp(x))^2))/((x-log(t1))^2+w^2) It gives reasonable r...

4 months ago | 1 answer | 0

1

answer

Answered
data fitting with custom equation
@Somnath Kale What is the value of A? Am I correct to understand that the variable of integration is log t0, and it varies fr...

4 months ago | 0

Answered
How to code an instantaneous reaction in Matlab
@Robert Demyanovich, Here is a simulation. Figure 1 shows the concentration profiles at specific time points. The simulation s...

5 months ago | 0

| accepted

Answered
Unknown angles as functions of time
@Dario Saracchi, You can do some algebra before you do some code. Define some constants: d=AB*cos(alfa)-AC*cos(delta) e=AB*si...

5 months ago | 0

| accepted

Answered
How to code an instantaneous reaction in Matlab
@Robert Demyanovich, Do you expect to end up with a partial differential equation, as expected for diffusion? Of course the 1...

5 months ago | 2

Answered
Problem/question with regression
You need at least one more data point to do a standard regression, so that you have more equations than unknowns. Even with mor...

5 months ago | 1

| accepted

Load more