Question

Filtering values from a curve

I have a curve x vs. y and I'm reading into Matlab through excel (xlsread). I want to filer some values off. I want to filter...

meer dan 6 jaar ago | 1 answer | 0

Question

Reading few lines from a text file

I have a text file and I want to read first 10 lines from that file.I tried scantext but not successful. Can anyone suggest? ...

bijna 7 jaar ago | 1 answer | 0

Question

lsqnonlin- how to get adjusted R square?

Whilst calling lsqnonlin as below; x=lsqnonlin(@(X0)fit_simp(X0,X,Y),StartAt,lb,ub,options); how can i obtain adjusted...

meer dan 7 jaar ago | 0 answers | 0

Answered

lsqnonlin question

Why you think so? My fit_simp function (see properly above) is as below function diff = fit_simp(x,X,Y) % This fu...

lsqnonlin question

Why you think so? My fit_simp function (see properly above) is as below function diff = fit_simp(x,X,Y) % This fu...

meer dan 7 jaar ago | 0

Question

lsqnonlin question

Consider the following code: X(1:10304)=xlsread('qs_comp_2.xls',2,'G3822:G14125'); Y(1:10304)=xlsread('qs_comp_2.xls',...

meer dan 7 jaar ago | 2 answers | 0

Question

Using cftool- moving avearage for smoothing

Hi, I'm trying to use cftool and smoothing my data set using moving average method. I do not have much of a theoretical ba...

meer dan 7 jaar ago | 0 answers | 0

Question

Function sort and smooth in matlab

1) Consider the function sort: You can call it with as below; B = sort(A) B = sort(A,dim) If A is a vector, do I n...

meer dan 7 jaar ago | 1 answer | 0

Question

Curve smoothing using smooth

I have been reading doc smooth and have the following to code to carry out smoothing.However, when I run it, its just the head...

meer dan 7 jaar ago | 1 answer | 0

Question

Curve smoothing using Matlab

I have got an experimental curve which is a bit wavy (curve has a lot of noise and hence is wavy). I want to smoothn the curv...

meer dan 7 jaar ago | 3 answers | 0

Answered

lsqnonlin question

Thanks..Done the follwoing the commands functiona nd then it worked; options = optimset('MaxFunEvals',10000); x=lsqnonlin(@(...

lsqnonlin question

Thanks..Done the follwoing the commands functiona nd then it worked; options = optimset('MaxFunEvals',10000); x=lsqnonlin(@(...

meer dan 7 jaar ago | 0

Question

lsqnonlin question

I have a function file called commands.m which gives the necessary inputs to another function file called fit_simp. lsqnonlin is...

meer dan 7 jaar ago | 2 answers | 0

Question

Optimisation toolbox error

I have the following function which I wan to use in optimisation toolbox: function diff = fit_simp_optim() % This fu...

meer dan 7 jaar ago | 1 answer | 0

Answered

Problem in running lsqnonlin

Actually lasqnonlin gives me an answer. But I want to put some constraints on A,B,n above- I mean upper and lower bounds. Can...

Problem in running lsqnonlin

Actually lasqnonlin gives me an answer. But I want to put some constraints on A,B,n above- I mean upper and lower bounds. Can...

meer dan 7 jaar ago | 0

Question

Problem in running lsqnonlin

I'm new to matlab and I understand that lsqnonlin requires a function for its call. Actually, I have run the cftool through G...

meer dan 7 jaar ago | 1 answer | 0

Question

Function Error not understood

I wrote the following function: function diff = fit_simp(x,X,Y) % This function is called by lsqnonlin. % x is a ...

meer dan 7 jaar ago | 1 answer | 0

Question

Exporting data sets to excel

I'm doing curve fitting.Firstly I read some data-sets from excel into matlab using xlsread.Then in the curve fitting toolbox I c...

meer dan 7 jaar ago | 2 answers | 0

Question

Matlab function

I'm relatively new to Matlab I need to carry out the following task and I'm just partially done.I'd be happy if someone can h...

meer dan 7 jaar ago | 1 answer | 0

Question

Error- simple matlab function

I have the following function; function [epsilon,sigma] = concatenatingAllDataSets(total_sets,X,Y) epsilon = reshape(X,t...

meer dan 7 jaar ago | 1 answer | 0

Question

Writing a Matlab function for the first time

This is th first time I'm writing a Matlab function.I have written several FORTRAN programs earlier but not Matlab. Now, my p...

meer dan 7 jaar ago | 1 answer | 0

Question

Matlab curve fitting toolbox

I'm to do some curve fitting using non linear least squares using Matlab. In my equation that I am to fit/model using my data...

meer dan 7 jaar ago | 3 answers | 0

Answered

Number of functions in a function-M file

I have a function 'A' Inside the function A, there is a variable computed 'z' 'z' should be returned from another function...

Number of functions in a function-M file

I have a function 'A' Inside the function A, there is a variable computed 'z' 'z' should be returned from another function...

meer dan 7 jaar ago | 0

Answered

Variable declaration in matlab

Can you give an example of declaration (integer/real) in a simple code?

Variable declaration in matlab

Can you give an example of declaration (integer/real) in a simple code?

meer dan 7 jaar ago | 0

Question

Number of functions in a function-M file

Is it that there should be only one function in a function M file or there can be any number of functions in a function M file? ...

meer dan 7 jaar ago | 3 answers | 0

Question

Syntax for loop

What is the syntax for 'for loop' in matlab?

meer dan 7 jaar ago | 1 answer | 0

Question

Variable declaration in matlab

Is it necessary to declare a variable in matlab?

meer dan 7 jaar ago | 5 answers | 0

Answered

Writing a matlab function- get number of rows

Thanks a lot..Is it necessary to declare variable mrows in Matlab?

Writing a matlab function- get number of rows

Thanks a lot..Is it necessary to declare variable mrows in Matlab?

meer dan 7 jaar ago | 0

Question

Writing a matlab function- get number of rows

I'm new to Matlab. I'm writing a matlab function to which I have given the arguments: Params, X,Y All 3 are vectors. I ...

meer dan 7 jaar ago | 3 answers | 0