Community Profile Last seen: 2 months ago Active since 2017

#### Statistics

• #### Content Feed

View by

Question

Table Variable Name-dot indexing
I need to creat a table with the following variable names : A1 B1 C1 A2 B2 C2 A3 B3 C3 , ... An Bn Cn X Y Z A1 B1 C1 are Ta...

8 months ago | 0 answers | 0

### 0

Question

exponential fitting to limited data
Here is my data : y=[2.5648 1.2495 1.1663 1.0652 2.1537 1.3080 1.2624 1.2949] I want to fit an exponenti...

1 year ago | 2 answers | 0

### 2

Question

Plotting trigonometric, negative exponential functions
My question could be more related to math than Matlab, but since I want to plot them in matlab, I am asking it here. I attache...

1 year ago | 0 answers | 0

### 0

Question

Compare empirical CDF and lognormal CDF
I have a set of data that follows lognormal distribution. I'm trying to compare lognormal and empirical complementary CDF. How...

1 year ago | 1 answer | 0

### 1

Question

repeat the iteration with an error using try/catch
I wrote a nested for loop to exexcute a huge number of iterations. However, sometimes an error stops the program. I want to rep...

1 year ago | 2 answers | 0

### 2

Question

summation of two curves with different data points
I am having a hard time to plot the summation of the following curves as the numbers and values of data points of each curve (in...

1 year ago | 1 answer | 0

### 1

Question

shift horizontal histogram to right
I am trying to shift the entire histogram to right, i.e. at 0.04 instead of 0, without changing the xticks.

1 year ago | 1 answer | 0

### 1

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...

1 year 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 year 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 year 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...

2 years 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 ...

2 years 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...

2 years 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...

2 years 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...

2 years 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.

2 years 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...

2 years 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...

2 years 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,...

2 years 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 ...

3 years ago | 2 answers | 0

### 2

Question

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

3 years 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 ...

3 years 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...

3 years 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...

3 years 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 ...

3 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...

3 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...

3 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...

3 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...

3 years ago | 2 answers | 0