Answered

Two x-axis for the same y-axis

You're on the right track with some of the stuff you have tabbed out. All you need is to set the x and y limits for your ax2 axe...

Two x-axis for the same y-axis

You're on the right track with some of the stuff you have tabbed out. All you need is to set the x and y limits for your ax2 axe...

1 year ago | 0

| accepted

Answered

Help in Developing Graph.

This is case specific, but what you want to do is define the 8 interesting points, and then simply plot them. The text is less s...

Help in Developing Graph.

This is case specific, but what you want to do is define the 8 interesting points, and then simply plot them. The text is less s...

1 year ago | 0

Answered

Finding corresponding term from a uitable

If I recall, strcmpi needs string arrays, character vectors or cell arrays of character vectors as inputs, whereas you give it a...

Finding corresponding term from a uitable

If I recall, strcmpi needs string arrays, character vectors or cell arrays of character vectors as inputs, whereas you give it a...

1 year ago | 0

Answered

Write table with UIPUT file

Try typing this bit in the command window: >> '(pname,fname)' ans = '(pname,fname)' So your path is a string named (pna...

Write table with UIPUT file

Try typing this bit in the command window: >> '(pname,fname)' ans = '(pname,fname)' So your path is a string named (pna...

1 year ago | 0

Answered

How can I splitt up a big matrix into smaller matrises, splitting it up by values on the x-axis

Logical indexing will help you here - a for loop is also possible but would be much more complicated. Lets call your initial m...

How can I splitt up a big matrix into smaller matrises, splitting it up by values on the x-axis

Logical indexing will help you here - a for loop is also possible but would be much more complicated. Lets call your initial m...

1 year ago | 0

Answered

How can I create a random walk for a given function?

You can use a for loop, and then add your randomness in whatever way you like. Example: for i=1:100 %anything that follows will...

How can I create a random walk for a given function?

You can use a for loop, and then add your randomness in whatever way you like. Example: for i=1:100 %anything that follows will...

1 year ago | 0

Answered

Any idea how to do and represent ttest results on box plot?

Yes - the way forward is to compare 1 and 2, 1 and 3 and so on. You could look into some of the built-in tools in matlab, for ex...

Any idea how to do and represent ttest results on box plot?

Yes - the way forward is to compare 1 and 2, 1 and 3 and so on. You could look into some of the built-in tools in matlab, for ex...

1 year ago | 0

Answered

How can i add new value into next row in excel?

A simple solution: define a counter file that pertains to your GUI - lets call it rownumber. Save it manually the first time, to...

How can i add new value into next row in excel?

A simple solution: define a counter file that pertains to your GUI - lets call it rownumber. Save it manually the first time, to...

1 year ago | 1

Answered

while doing curve-fitting for custom equation, error is occuring??

If your input data contains or spans x=0, your first logaritm will not be defined. In addition, if your x exceeds 1, your second...

while doing curve-fitting for custom equation, error is occuring??

If your input data contains or spans x=0, your first logaritm will not be defined. In addition, if your x exceeds 1, your second...

1 year ago | 0

Answered

Delete 335 values every 335th time.

It is entirely possible that there is a much easier way to go about this - but here is nevertheless a way. I've made a for loop ...

Delete 335 values every 335th time.

It is entirely possible that there is a much easier way to go about this - but here is nevertheless a way. I've made a for loop ...

1 year ago | 0

| accepted

Answered

How can I check if the next generated row has no repetitions in the same columns in the previous row using a while loop

Your problem is that the check you add in the end, (s (:, j)) ~ = 1, examines if the sum in column j is more than 1 - but the in...

How can I check if the next generated row has no repetitions in the same columns in the previous row using a while loop

Your problem is that the check you add in the end, (s (:, j)) ~ = 1, examines if the sum in column j is more than 1 - but the in...

1 year ago | 1

| accepted

Answered

Calculating grades in a while loop

You don't need a while loop for that - it is easy with logic indexing, like so: score=[82 75 78 82 90 87]; A=score(score>=90)...

Calculating grades in a while loop

You don't need a while loop for that - it is easy with logic indexing, like so: score=[82 75 78 82 90 87]; A=score(score>=90)...

1 year ago | 0

Answered

How to plot an ultrashort light pulse

A true monochromatic laser beam can never achieve ultrashort pulse lenghts. Ultrashort pulses make use of interference of light ...

How to plot an ultrashort light pulse

A true monochromatic laser beam can never achieve ultrashort pulse lenghts. Ultrashort pulses make use of interference of light ...

1 year ago | 0

Answered

How to plot only positive values?

You can use logical indexing. posY=Y(Y>0); posX=X(Y>0); %the X values for which it is true that the value of Y in the corres...

How to plot only positive values?

You can use logical indexing. posY=Y(Y>0); posX=X(Y>0); %the X values for which it is true that the value of Y in the corres...

1 year ago | 0

Answered

How to create a matrix for plotting surf(x,y,z) from multiple .dat files?

I hope your data files are in order! :) First, get arrays of your filenames, and then create a loop withinwhich you use the fu...

How to create a matrix for plotting surf(x,y,z) from multiple .dat files?

I hope your data files are in order! :) First, get arrays of your filenames, and then create a loop withinwhich you use the fu...

1 year ago | 0

Answered

Change for loop stepsize

I think, when you create the for phaseerror = 0:stepsize:limit loop, you have already determined your increment - you cannot cha...

Change for loop stepsize

I think, when you create the for phaseerror = 0:stepsize:limit loop, you have already determined your increment - you cannot cha...

1 year ago | 0

Answered

How to plot multiple plot in the same figure inside for-loop

If hold on is used, matlab will add plot commands to the active axes (or active figure, if you will), unless you specify otherwi...

How to plot multiple plot in the same figure inside for-loop

If hold on is used, matlab will add plot commands to the active axes (or active figure, if you will), unless you specify otherwi...

1 year ago | 0

| accepted

Answered

Make gui for function CROSSIT

Try to read your error. "There is no 'srting' property of the 'uicontrol' class." Does that look right to you? Its a simple ty...

Make gui for function CROSSIT

Try to read your error. "There is no 'srting' property of the 'uicontrol' class." Does that look right to you? Its a simple ty...

1 year ago | 0

Answered

i want to find the values in the x axis for the respective y axis

You seem to do your autocorrelation in steps of 1. What is the precision you are after? Is it simply "the first time SWH drops b...

i want to find the values in the x axis for the respective y axis

You seem to do your autocorrelation in steps of 1. What is the precision you are after? Is it simply "the first time SWH drops b...

1 year ago | 1

Answered

How to calculate some statistical moments for every cell of a cell array?

A good way to troubleshoot is to insert a keyboard line - it pauses the code, and allows you to see "what matlab sees" mid-execu...

How to calculate some statistical moments for every cell of a cell array?

A good way to troubleshoot is to insert a keyboard line - it pauses the code, and allows you to see "what matlab sees" mid-execu...

1 year ago | 0

Answered

How to take an integer input from matalab file and put it in app designer as an enter box number ?

Lets call your app GUI. First define a text box on the GUI; TextEdit=uicontrol('Style','Edit','Units', 'normalized','string'...

How to take an integer input from matalab file and put it in app designer as an enter box number ?

Lets call your app GUI. First define a text box on the GUI; TextEdit=uicontrol('Style','Edit','Units', 'normalized','string'...

1 year ago | 0

Answered

Import data TXT File to Matlab

You will want to clean up your files a little before importing them; Matlab can understand ; , : tabs and spaces as delimiters, ...

Import data TXT File to Matlab

You will want to clean up your files a little before importing them; Matlab can understand ; , : tabs and spaces as delimiters, ...

1 year ago | 0

Answered

Creation of a loop code

This partition function might help. Call plist=partitions(100,1:100,[],3); and you will get a 833x100 matrix where the sum of th...

Creation of a loop code

This partition function might help. Call plist=partitions(100,1:100,[],3); and you will get a 833x100 matrix where the sum of th...

1 year ago | 0

Answered

How to write function with multiple input and output (Function for Optimization based on Experimental data)

a(i) wants to assign a single value into a vector, a, on the ith index. But alpha(:,1) refers to every value iin the first colum...

How to write function with multiple input and output (Function for Optimization based on Experimental data)

a(i) wants to assign a single value into a vector, a, on the ith index. But alpha(:,1) refers to every value iin the first colum...

1 year ago | 0

Answered

Confidence intervals for fitlme

If you look at the linear mixed model documentation you should be able to extract the confidence interval values from lme.Coeffi...

Confidence intervals for fitlme

If you look at the linear mixed model documentation you should be able to extract the confidence interval values from lme.Coeffi...

1 year ago | 0

Answered

Plots at cut off frequency

You could look at a function to find the frequency value of your peak, and then set your x limit to exclude that region. For exa...

Plots at cut off frequency

You could look at a function to find the frequency value of your peak, and then set your x limit to exclude that region. For exa...

1 year ago | 0

| accepted

Answered

3D matrix (I guess is an indexing question?)

matr(ct1,ct2,:)=[1:(k-1) (k+1):9 0]; Is this what you want?

3D matrix (I guess is an indexing question?)

matr(ct1,ct2,:)=[1:(k-1) (k+1):9 0]; Is this what you want?

1 year ago | 0

| accepted

Answered

Creating a Loop for my work

There is indeed! A basic loop runs through integer numbers that you specify. You can then convert these numbers to strings - whi...

Creating a Loop for my work

There is indeed! A basic loop runs through integer numbers that you specify. You can then convert these numbers to strings - whi...

1 year ago | 0

| accepted

Answered

Setting up and plotting functions

It does, indeed, need to be given some inputs. Matlab has no way of knowing what a, b, c and x are. function F(x,a,b,c); y = ...

Setting up and plotting functions

It does, indeed, need to be given some inputs. Matlab has no way of knowing what a, b, c and x are. function F(x,a,b,c); y = ...

1 year ago | 0

Answered

How do you pass MATLAB date (or user input) to SQL query for execution

I remember struggling alot with this when I first started out grabbing data from SQL servers. I found that an approach where I c...

How do you pass MATLAB date (or user input) to SQL query for execution

I remember struggling alot with this when I first started out grabbing data from SQL servers. I found that an approach where I c...

1 year ago | 1