A répondu

For loop extracting variable

Not quite sure your data type. So below just a structure that you can potentially use. within the for loop for iF = 1:yourFile...

For loop extracting variable

Not quite sure your data type. So below just a structure that you can potentially use. within the for loop for iF = 1:yourFile...

plus de 2 ans il y a | 0

A répondu

quickest way to scan excel column for keyword

Could try this: suppose that you don't have a column name tbl = readtable('yourExcelFile', 'ReadVariableNames', 0); % N = t...

quickest way to scan excel column for keyword

Could try this: suppose that you don't have a column name tbl = readtable('yourExcelFile', 'ReadVariableNames', 0); % N = t...

plus de 2 ans il y a | 0

| A accepté

A répondu

Help with mann whitney U test and p-value.

Use ranksum [p, h, stats] = ranksum(x, y);

Help with mann whitney U test and p-value.

Use ranksum [p, h, stats] = ranksum(x, y);

plus de 2 ans il y a | 1

| A accepté

A répondu

Creating a mtarix from results of a for loop that creates vectors

Not really understand what you intended to do. But based on your code, you could get an array by accumulating the vector you get...

Creating a mtarix from results of a for loop that creates vectors

Not really understand what you intended to do. But based on your code, you could get an array by accumulating the vector you get...

plus de 2 ans il y a | 0

| A accepté

A répondu

Original Signal from fft - without using ifft

Matlab fft results are without the 1/N term. If you plot the amplitude spectrum you will find out that the peak amplitude is cle...

Original Signal from fft - without using ifft

Matlab fft results are without the 1/N term. If you plot the amplitude spectrum you will find out that the peak amplitude is cle...

plus de 2 ans il y a | 0

| A accepté

A répondu

Logistic Regression S-Curve Fit

Do you want to plot logit(y) against your predictor or you want to plot y against x? You could fit your y by x using fitglm with...

Logistic Regression S-Curve Fit

Do you want to plot logit(y) against your predictor or you want to plot y against x? You could fit your y by x using fitglm with...

plus de 2 ans il y a | 0

A répondu

(Again) plots do not appear on the graph

Without data it’s difficult to tell. You tried set a break point and see if it ever appears any points? Based on your descrip...

(Again) plots do not appear on the graph

Without data it’s difficult to tell. You tried set a break point and see if it ever appears any points? Based on your descrip...

plus de 2 ans il y a | 0

| A accepté

A répondu

FFT - wrong frequency

Well, you need to understand what you are doing with each of these variables. Your code is kind of weird as all things you need ...

FFT - wrong frequency

Well, you need to understand what you are doing with each of these variables. Your code is kind of weird as all things you need ...

plus de 2 ans il y a | 0

A répondu

Add n+1 element to a vector

If your X is a row vector, using newX = [X, aNewElement]; If your X is a column vector, using newX = [X; aNewElement];

Add n+1 element to a vector

If your X is a row vector, using newX = [X, aNewElement]; If your X is a column vector, using newX = [X; aNewElement];

plus de 2 ans il y a | 0

| A accepté

A répondu

matlab loops break and continue commands

You are almost there. Just need a seperate counter that force the loop to break if it accumulates to 3. n = input('Enter a nu...

matlab loops break and continue commands

You are almost there. Just need a seperate counter that force the loop to break if it accumulates to 3. n = input('Enter a nu...

plus de 2 ans il y a | 0

A répondu

Help in shuffle test data ?

"he first line become the third line and the third line becoms the forth line" your example doesn't meet what you described. I...

Help in shuffle test data ?

"he first line become the third line and the third line becoms the forth line" your example doesn't meet what you described. I...

plus de 2 ans il y a | 1

| A accepté

A répondu

how to write a detection algorithm for the peaks of a signal

That depends on what exactly you meant by peaks of a signal. If you want to have all local maximums, the easiest way I think is ...

how to write a detection algorithm for the peaks of a signal

That depends on what exactly you meant by peaks of a signal. If you want to have all local maximums, the easiest way I think is ...

plus de 2 ans il y a | 0

A répondu

i want code for the below given task

close all; clear; %% this is an examplary ECG recording with sampling frequency 200 hz y = load('2GCCY.txt'); fs = 200; N...

i want code for the below given task

close all; clear; %% this is an examplary ECG recording with sampling frequency 200 hz y = load('2GCCY.txt'); fs = 200; N...

plus de 2 ans il y a | 1

| A accepté

A répondu

plot label with latex symbol

You need to have the leading and ending symbol $. e.g., ylabel('$J_{1}(\rho)$','interpreter','latex')

plot label with latex symbol

You need to have the leading and ending symbol $. e.g., ylabel('$J_{1}(\rho)$','interpreter','latex')

plus de 2 ans il y a | 1

| A accepté

A répondu

Plot with varying legend in for loop

An easier work around i think is that you store txt during each loop in a string array, or a cell array, and plot legend afterwa...

Plot with varying legend in for loop

An easier work around i think is that you store txt during each loop in a string array, or a cell array, and plot legend afterwa...

plus de 2 ans il y a | 1

| A accepté

A répondu

Extract rows from table fullfilling the condition of interval

You may want to convert that specific column to double format, and the conditional operation would become easier. % a test tbl...

Extract rows from table fullfilling the condition of interval

You may want to convert that specific column to double format, and the conditional operation would become easier. % a test tbl...

plus de 2 ans il y a | 0

A répondu

Need Help Indexing. I have a 1x12 cell array with each cell containing a 120x2 double. I need to use a for loop to index all the values in every of row in the second column of the 120x2 double and store them in their own 1x12 matrix.

Do you necessarily do with a for loop? If not, you don't need one. % an example tst = cell([1, 12]); tst(:) = {randn(120, 2)}...

Need Help Indexing. I have a 1x12 cell array with each cell containing a 120x2 double. I need to use a for loop to index all the values in every of row in the second column of the 120x2 double and store them in their own 1x12 matrix.

Do you necessarily do with a for loop? If not, you don't need one. % an example tst = cell([1, 12]); tst(:) = {randn(120, 2)}...

plus de 2 ans il y a | 0

A répondu

Add row name from uitable to excel

Better using writetable in this case I think. You can specify WriteRowNames as true. writetable(yourTable, filename, “WriteRo...

Add row name from uitable to excel

Better using writetable in this case I think. You can specify WriteRowNames as true. writetable(yourTable, filename, “WriteRo...

plus de 2 ans il y a | 1

A répondu

The title of a plot containing the data's file name.

You have filename already when you load the data. Just need to combine this with the char array you have. Try title(['UTM Pos...

The title of a plot containing the data's file name.

You have filename already when you load the data. Just need to combine this with the char array you have. Try title(['UTM Pos...

plus de 2 ans il y a | 0

| A accepté

A répondu

Changing the colour of the lines in a legend.

You have 250 lines and with the legend function you are actually only showing the legend for the first 5 lines, which are red ba...

Changing the colour of the lines in a legend.

You have 250 lines and with the legend function you are actually only showing the legend for the first 5 lines, which are red ba...

plus de 2 ans il y a | 0

A répondu

Which graph function to use?

You can use errorbar function to make this.

Which graph function to use?

You can use errorbar function to make this.

plus de 2 ans il y a | 0

| A accepté

A répondu

Hot plot this type of figure

you can use plot3 to get these lines and markers done. you can use fill3 to make the patches. set alpha value to a number so th...

Hot plot this type of figure

you can use plot3 to get these lines and markers done. you can use fill3 to make the patches. set alpha value to a number so th...

plus de 2 ans il y a | 0

| A accepté

A répondu

Protein sequence manipulation for adding elements before or after the sequence.

The easiest way to add N zeros before it can be done by: [repmat('0', 1, N) yourProSeq];

Protein sequence manipulation for adding elements before or after the sequence.

The easiest way to add N zeros before it can be done by: [repmat('0', 1, N) yourProSeq];

plus de 2 ans il y a | 0

| A accepté

A répondu

Calculating with Methods from Classes

You have too many class methods that are not really methods specific for the class, as they never accept your object handle as a...

Calculating with Methods from Classes

You have too many class methods that are not really methods specific for the class, as they never accept your object handle as a...

plus de 2 ans il y a | 0

A répondu

How can I make plot3 show on the top of the images?

Below example works fine C = [0 2 4 6; 8 10 12 14; 16 18 20 22]; clims = [4 18]; imagesc(C,clims) hold on; plot3([1 4], [1 ...

How can I make plot3 show on the top of the images?

Below example works fine C = [0 2 4 6; 8 10 12 14; 16 18 20 22]; clims = [4 18]; imagesc(C,clims) hold on; plot3([1 4], [1 ...

plus de 2 ans il y a | 0

A répondu

Array indices must be positive integers or logical values.

What are you trying to do? In inner loop, b is your loop index. It is seen as a scalar. There aren't any b(sounds6_) if sounds6_...

Array indices must be positive integers or logical values.

What are you trying to do? In inner loop, b is your loop index. It is seen as a scalar. There aren't any b(sounds6_) if sounds6_...

plus de 2 ans il y a | 0

A répondu

How can I set class properties with a vector from another script?

In your class construct you could let it accept input parameters. e.g., methods function this = Holtrop(varargin) ...

How can I set class properties with a vector from another script?

In your class construct you could let it accept input parameters. e.g., methods function this = Holtrop(varargin) ...

plus de 2 ans il y a | 0

| A accepté

A répondu

Is it possible to have a table with a numerical index instead of strings?

Why do you want to make the time as row names? I think it's better to keep it as one of the variable in the table. It is not nec...

Is it possible to have a table with a numerical index instead of strings?

Why do you want to make the time as row names? I think it's better to keep it as one of the variable in the table. It is not nec...

plus de 2 ans il y a | 1

| A accepté

A répondu

I want annual data from monthly data (sum of every 12 months)

Hi, you again lol and me again I thought it would be easier for you to solve this with my previous answer regarding the season ...

I want annual data from monthly data (sum of every 12 months)

Hi, you again lol and me again I thought it would be easier for you to solve this with my previous answer regarding the season ...

plus de 2 ans il y a | 1

| A accepté

A répondu

How to disable Subplot XtickLabel designed with App Designer

have you tried update ax1 XTickLabel after the plot? add ax1.XTickLabel = ''; after your plot line and see.

How to disable Subplot XtickLabel designed with App Designer

have you tried update ax1 XTickLabel after the plot? add ax1.XTickLabel = ''; after your plot line and see.

plus de 2 ans il y a | 0

| A accepté