Community Profile

39 total contributions since 2016

View details...

Contributions in
View by

Question

How to formulate and use non linier curve-fitting
I have a dependent variabke Xd and three independent variabel X1, X2 and depth. I want to formulate new equation using exponent...

2 months ago | 1 answer | 0

1

Question

How to use looping
I have a coding like this: for k=1:length(Depth) if Depth(k)>0 & Depth(k)<=6 RdFk(k)...

2 months ago | 1 answer | 0

1

Question

I have a coding like this: % Specify the folder where the files live. myFolder = 'D:\Home\MultiLinierRegression\OutputCalc'; ...

2 months ago | 0 answers | 0

0

Question

How to concatenate several matrix into one
I have 18 matrix with each size is 11 x 175. I want concanntenate into one matrix. So my next matrix become 198 * 175. What sh...

2 months ago | 1 answer | 0

1

Question

How to solve Reference to non-existent field 'folder'.
I have a coding like this folder='D:\\MultiLinierRegression\OutputRd' fils=dir([folder '\*.txt']); % lists all the files with ...

3 months ago | 1 answer | 0

1

Question

How to combine multiple .txt and calculate Mean, Std, Min, Max
I have several .txt files like this A .txt= 10 1 4 20 2 5 30 3 6 B.txt 10 ...

3 months ago | 1 answer | 0

1

Question

combine text and number in a matrixs
I have data a='clear' and b=6 and c=7. I want develop a matrik contain of a and b. It should be = [clear, 6, 7] I would be app...

3 months ago | 1 answer | 0

1

Array indices must be positive integers or logical values
Here my complete coding S = 10; %S=Slip; A = 2000; %A=Area; SM = 30; %SM=Shear_Modulus; bv = 0.8; %bv=b...

4 months ago | 0

Question

Array indices must be positive integers or logical values
I have a problem to develop my coding. Here is my coding: Mag=(6.5:0.1:9.5); beta = bvalue * log(10); MomentRate = (SM * 1e9...

4 months ago | 3 answers | 0

3

Question

how to solve a problem about marginal
I have a coding : h_data = [0; 0.1568; 0.2112; 0.264; 0.3403; 0.469; 0.58; 0.7]; % deltaPGA = h_data(2:8) - h_data(1:...

4 months ago | 0 answers | 0

0

Question

Call function with other function
I have function with the name file with the name SS14_EQS.m and I will call for computing using RunSS14_EQS.m. But the comment ...

5 months ago | 0 answers | 0

0

Question

Problem with Power Regression
I have a coding to develop a formula using power regreesion Here my coding: plot(Xbin,Ybin,'+r'), hold on p = polyfit(log(Xbi...

6 months ago | 1 answer | 0

1

Delete data with some requirements
Dear Star Rider and Joel Handy. I tried to combine your suggestion and the coding is like this: D = load('Xsample_data.txt')...

6 months ago | 0

Question

Delete data with some requirements
I have a coding like this: Zx= zeros(size(X)); Zy=zeros(size(Y)); for i=1:length(X); if Zx(i)<2.5 && Zx(i)>-2.5 ...

6 months ago | 2 answers | 0

2

Question

How to remove the outliers
I have a sequence data and I assumed there are some outliers which us plott in my excel in the red colour of shading. I attach t...

6 months ago | 2 answers | 0

2

Question

Error in appliying split apply
I have a problem using splitapply for function mean. Error using splitapply (line 111) For N groups, every integer between 1...

7 months ago | 1 answer | 0

1

Question

Plotting figure with intp2
I have a coding to plot a figure and this is my coding: [Xq_cond,Yq_cond] = meshgrid(linspace(min(Mwgrid),max(Mwgrid),length(am...

7 months ago | 0 answers | 0

0

Question

Replication factors must be a row vector of integers or integer scalars.
My coding is depth = [0.01 1.5:1.5:30]'; w = 10 - 0.5 .* depth; w(w<0) = 0; a=829862; b=21 c=a/b W = repmat(w,c,1); ...

7 months ago | 2 answers | 0

2

Question

Operands to the || and && operators must be convertible to logical scalar values.
I have a problem with my coding about Operands to the || and && operators must be convertible to logical scalar values.. Here in...

8 months ago | 1 answer | 0

1

Question

How to create Multi Linier regression with matrix
I have a coding to cevelop a newe formulation for Xp. The main task is to calculate Xp, where in general Xp = Xb/Xc. I want to ...

8 months ago | 0 answers | 0

0

Question

Develop interval class with 3 binn
I have a qustion about how to develop interval class. I have a matrik 2 x 165. I want to develop a binning system into 3 bin wi...

9 months ago | 0 answers | 0

0

Question

Removing selected data using unique
Halo every one, I have a question baout how to remov selected data base on such parameter. I want to remove the parameter of...

9 months ago | 1 answer | 0

1

Question

error in using fscanf
I have a script like this: %Inputing POE file_01='POE_0.01.txt'; fid=fopen(file_01, 'r'); FileName_01=fscanf(fid...

9 months ago | 0 answers | 0

0

Question

How to reshape coordinate geography
I want to know on how to reshape geographyc data from 100 x2 mtrix size into 4X25. Is there any one can help me to reshape my da...

10 months ago | 2 answers | 0

2

Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN.
Yes it works now, thank you David Goodmanson

11 months ago | 0

| accepted

Question

Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN.
I have coding such as this: En = length(n); % n = number of data tottaly Ex1= sum(x1); % Ex1= number of Depth ...

11 months ago | 1 answer | 0

1

Question

make a loop for plotting diagrams
I have 40 data and each of them consist of two colom (period and amplitude). I want to know how to plot those data by using loop...

1 year ago | 1 answer | 0

1

Question

Plot part of data
I have data like this: t Amp 0.00000 0.14216 0.02000 0.14648 0.04000 0.15523 0.06000 0.16035 0.08000 ...

1 year ago | 1 answer | 0

1

Question

error in fopen when use dlmread
file1 = dlmread('Matched_TNG20100518CISI_N.txt','', 5, 0) fid = fopen(file1, 'r') Axcel1=fscanf(file1,'%g %g %g %g %g\n',[4,In...

1 year ago | 1 answer | 0

1

Question

I have problem with my coding. Attempted to access LPi(4); index out of bounds because numel(LPi)=3. Error in PDF_Repi_Mw_amax_PGA (line 286) if LPi(i)<5.0;
for i=1:length(rd) for j=1:length(amaxnew) %for k=1:length(Ksigm) CSR(i,j)= 0.65*(amaxnew(j))/g*(dt(6)/Di...

1 year ago | 0 answers | 0