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

1 month ago | 1 answer | 0

Answered

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

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

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

1 month ago | 2 answers | 0

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

1 month ago | 2 answers | 0

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

2 months ago | 0 answers | 0

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

2 months ago | 0 answers | 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); ...

2 months ago | 2 answers | 0

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

3 months ago | 1 answer | 0

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

3 months ago | 0 answers | 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...

4 months ago | 0 answers | 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...

4 months ago | 1 answer | 0

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

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

4 months ago | 0 answers | 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...

5 months ago | 2 answers | 0

Answered

Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN.

Yes it works now, thank you David Goodmanson

Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN.

Yes it works now, thank you David Goodmanson

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

6 months ago | 1 answer | 0

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

10 months ago | 1 answer | 0

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

10 months ago | 1 answer | 0

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

11 months ago | 1 answer | 0

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

Question

Implementation if statement with two different conditions

I have a code using if and else with two different condition 1. if FS1 <= 1 else FS1>1 2. if depth < 20 else depth>20 This ...

1 year ago | 0 answers | 0

Question

Nonlinier Regression withExponential Approach.

I want to develop an equation from Nonlinier Regression withExponential Approach. My code like this: b1=2; b2=3; b3=0.01; b4...

1 year ago | 0 answers | 0

Question

about non linier regression

I have a formula to get Nonlinear regression. But I have a problem to define tbl and b. May be is there anybody can help me to ...

1 year ago | 0 answers | 0

Question

About regression with bootstrap

I have a function to calculate regression with bootstrap approach This is my function: function r=reboots(rd,Mw amax depth Vs ...

1 year ago | 0 answers | 0

Question

Add a legend in plotting

I want to add a legend in my plotting, in the explanation I want to add some kind of text 500 years, 1000 years, 2500 years and ...

1 year ago | 2 answers | 0

Question

Add a legend in plotting

I want to add a legend in my plotting, in the explanation I want to add some kind of text 500 years, 1000 years, 2500 years and ...

1 year ago | 0 answers | 0

Question

an assignment A(I) = B, the number of elements in B and I must be the same?

clc clear all close %B =(kg/cm2) % totally vertical over pressure %Input File Input Regression(depth,rd,Vs).t...

1 year ago | 1 answer | 0

Question

Convolution Program Program for Signal Processing

I want to know about how to develop convolution code for signal processing? How to convolve two signal? How to define phase of t...

3 years ago | 0 answers | 0