Community Profile

photo

Mos_bad


Last seen: 2 years ago Active since 2017

Statistics

  • Thankful Level 3

View badges

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

3 years ago | 0 answers | 0

0

answers

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

3 years ago | 2 answers | 0

2

answers

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

4 years ago | 0 answers | 0

0

answers

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

4 years ago | 1 answer | 0

1

answer

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

4 years ago | 2 answers | 0

2

answers

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

4 years ago | 1 answer | 0

1

answer

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.

4 years ago | 1 answer | 0

1

answer

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

4 years ago | 0 answers | 0

0

answers

Question


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

4 years ago | 1 answer | 0

1

answer

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

4 years ago | 2 answers | 0

2

answers

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

4 years ago | 1 answer | 0

1

answer

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

4 years ago | 0 answers | 0

0

answers

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

4 years ago | 1 answer | 0

1

answer

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

4 years ago | 1 answer | 0

1

answer

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

4 years ago | 1 answer | 0

1

answer

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.

4 years ago | 1 answer | 0

1

answer

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

4 years ago | 0 answers | 0

0

answers

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

5 years ago | 0 answers | 0

0

answers

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

5 years ago | 2 answers | 0

2

answers

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

5 years ago | 2 answers | 0

2

answers

Question


how to fit a curve with the given trend to the limited data points
Please find the attached. <<https://www.mathworks.com/matlabcentral/answers/uploaded_files/131594/untitled.jpg>> I have pl...

5 years ago | 0 answers | 0

0

answers

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 1 answer | 0

1

answer

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

6 years ago | 0 answers | 0

0

answers

Question


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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 2 answers | 0

2

answers

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

6 years ago | 0 answers | 0

0

answers

Load more