Community Profile ##### Last seen: Today
27 total contributions since 2017

• View details...

Contributions in
View by

Question

how to fit exceeding probability curve? (Hazard curve)
I want to fit a hazard curve (or exceedance= 1-CDF) to a set of raw data. Here is the code that I wrote. As you may see in the...

18 days ago | 0 answers | 0

### 0

Question

exponentially distributed random number
I want to generate exponentially distributed randm numbers (with mean=lambda) untill the summation of generated numbers is less ...

1 month ago | 1 answer | 0

### 1

Question

how to fit exponential distribution function on data?
The vector m follows the truncated exponential equation (F_M) and it is shown by solid black line in figure. I intend to fit an ...

1 month ago | 2 answers | 0

### 2

Question

Brace indexing is not supported for variables of this type
Mu_s and Mu_d are cell. This if statement is part of a function which is called inside of a main for loop. I got the following...

3 months ago | 1 answer | 0

### 1

Question

storing data from nested for loop
I'm having hard time to save RndmVarInput including IM, z50Final, Mat, and tYear, and scenario iteration number from the nested ...

6 months ago | 0 answers | 0

### 0

Question

storing function outputs from a nested for loop
I want to store function output through nested for loop. Here is the code: maxDisp_x=cell(Nrt,lhsN,Nsnro); for scenario=1:Nsnr...

6 months ago | 1 answer | 0

### 1

Question

x-axes are not coincident using multiple axes
I am using multipe axes using the code below. The top x-axis is not coincident as shown in attached file. ax2=axes('xaxislocat...

7 months ago | 1 answer | 0

### 1

Question

multiple logarithmic x-axes
I need to draw two plots with multiple logarithmic axes in the same figure. For clarification, I want two log-axes (one on top o...

8 months ago | 1 answer | 0

### 1

Question

split legend columns using Matlab 2017a
The plot includes four legends, I intend to use 2by2 legends due to space limitation. I am using Matlab 2017a version.

8 months ago | 1 answer | 0

### 1

Question

two different plot in the same 3D figure
x is normal random vector ranges from 0.05 to 1.2 and y varies from 0 to 22. I want to plot 2D PDF of x and y in the same figu...

8 months ago | 0 answers | 0

### 0

Question

numeric integration of datapoints
I have time (dt) acceleration (Acc) data points. I need to plot velocity (vel) and displacement (disp) vs time and also calculat...

9 months ago | 0 answers | 0

### 0

Question

generate n random number between two numbers follow exponential distribution
I need to generate n random number between a and b which follow the exponential distribution (In this perticular case a=0, b=75,...

1 year ago | 2 answers | 0

### 2

Question

How to fit a surface to 3D dta points
Please find the attached. I want to fit a surface to show the trends of the 3d data points but I got an error that 'Z must be a ...

1 year ago | 2 answers | 0

### 2

Question

how to fit a curve with the given trend to the limited data points

1 year ago | 0 answers | 0

### 0

Question

Greek letter and subscript at the same time in axis label
I want to write x-axis label as (\Delta / H_B) but I could not. Delta is a greek letter and B is a subscription. please help me ...

1 year ago | 1 answer | 0

### 1

Question

issue with copying the figure to MS Word
I am using copy figure under edit button to copy figures from Matlab to MS Word. However, The legend and axis label font and ord...

1 year ago | 1 answer | 0

### 1

Question

HOW TO PLOT SMOOTH OR THEORETICAL CDF?
Attached is the plot of CDF based on the actual data. Also, I want to plot smooth(or theoretical) CDF in the same figure. To thi...

1 year ago | 0 answers | 0

### 0

Question

Subscripted assignment dimension mismatch
I got error 'Subscripted assignment dimension mismatch' for the following code: for i = 1 : 2 for k = 1: 4 ...

2 years ago | 1 answer | 0

### 1

Question

how to save dynamic file name
I want to save Force_y data as Force.mat in the directory of |./Output/THOutput/LHS(i)/GMID(k)| where |i| and |k| are dynamic in...

2 years ago | 1 answer | 0

### 1

Question

Using dir command but the files can not be returned
After running the code, fileNames1 has not been showing in Workspace (neither name nor value) and there is no error in the first...

2 years ago | 1 answer | 0

### 1

Question

How to save workspace variables and values a s binary file
I wrote a code and want to save all workspace's variables and their values as a .txt file or other formats as a binary file just...

2 years ago | 1 answer | 0

### 1

Question

cross product of two points
I am trying to do the cross product of the following two points but I got this error 'Subscript indices must either be real posi...

2 years ago | 2 answers | 0

### 2

Question

how to import text files in different subfolders with the same names?
There are main folder A First subfolders A1 to An Second subfolders A11 to A1m; A21 to A2m; .... ; An1 to Anm Third subf...

2 years ago | 0 answers | 0

### 0

Question

Distribution Fitter App results, CDF, PDF, goodness of curve fitness
I am Using the Distribution Fitter App, there are some parameters in the result window including std. err. and estimated covaria...

2 years ago | 0 answers | 0

### 0

absolute value of negative real numbers
it worked. thanks.

2 years ago | 0

Question

absolute value of negative real numbers
why negative real numbers are not allowed for "abs"? for example abs(-1) gives me 'Subscript indices must either be real positiv...

2 years ago | 2 answers | 0