photo

Scott MacKenzie


York University

Last seen: 6日 前 2020 年からアクティブ

Followers: 0   Following: 0

統計

  • Thankful Level 2
  • 6 Month Streak
  • Revival Level 3
  • Knowledgeable Level 5
  • Pro
  • First Answer
  • Thankful Level 1

バッジを表示

Feeds

表示方法

回答済み
Compare vectors of different lengths using end of shorter one when it ends
Someting like this perhaps: A = 1:10; B = 1:5; C = 1:15; nA = length(A); nB = length(B); nC = length(C); % A + B if ...

1年以上 前 | 0

| 採用済み

回答済み
Plotting a scatter graph with a categorical X axis
Just follow your chart function with code to add tick labels at 5, 15, 25, etc. Something like this should work: xticks(5:10:5...

1年以上 前 | 1

回答済み
Create a new vector to set identity of each cell in Voronoi Diagram
If I understand correctly, C -- the type of each cell -- identifies the corresponding quadrant for each point. You also want to...

1年以上 前 | 0

回答済み
How to do ANOVA repeated measures?
Here's a script for the ANOVA that includes both the within-subjects IV (sucrose concentration and the between-subjects IV (gend...

1年以上 前 | 0

| 採用済み

回答済み
how to calculate three way repeated anova?
It seems you have a design with three independent variables. Two are between-subjects and one is within-subjects: Stress (betw...

1年以上 前 | 0

回答済み
how to perform a wilcoxon test on 10 groups ?
The Wilcoxon test is used to compare two sets of within-subjects data (aka data from correlated samples). The equivalent test w...

約2年 前 | 0

回答済み
How to prepare my data for ANOVA?
@Steve Schulz, thanks for posting the data. You have organized the data in a slighly peculiar way. You've got session 1 in row...

2年以上 前 | 0

| 採用済み

回答済み
Set up Repeated Measures Anova function MATLAB
@Jacob Jacobo, your setup for fitrm is slightly wrong, since you only have a single within-subjects factor. Below is what I put...

2年以上 前 | 0

| 採用済み

回答済み
Struggles with Two way Anova
OK, thanks for the clarification. It seems you have a 2 x 2 mixed design with 10 subjects. The factors are Test Sequence with ...

2年以上 前 | 1

| 採用済み

回答済み
bars are stacked instead of grouped while 'grouped'
To group the bars, use something like this: qual = rand(57); qual_jong = rand(29); qual_oud = rand(29); d = [qual(57,3:14); ...

2年以上 前 | 0

| 採用済み

回答済み
x-axis of multcompare() does not plot group means
You didn't do anything wrong. The Kruskal Wallis procedure, being non-parametric, works with the rank-transformed data, not the...

2年以上 前 | 0

| 採用済み

回答済み
Calculating and add the std error bar from the mean values
You can't calculate the standard error from the means. You need the raw data. If the raw data (used to calculate the means) ar...

2年以上 前 | 0

| 採用済み

回答済み
Separating table data by year
Here's what I put together using random temperatures between 30 and 100 over the period of interest. Since the temperatures are...

2年以上 前 | 0

質問


R2022a problem: Line number missing in error message sent to Command Window.
With R2022a, line numbers are sometimes omitted in error messages. Here's an example using a trivial script: If I run the sa...

2年以上 前 | 1 件の回答 | 6

1

回答

回答済み
I have 2 columns in a matrix. 1st column has the dates. 2nd column has the values. How do I grab all values from 2nd column associated with its date from the 1st column??
Something like this will work: % test data d = { '4/1/18', 6; '4/2/18', 22; '4/2/18', 4; '4/3/18', 2; '4/3...

2年以上 前 | 1

回答済み
Set to zero values in matrix in between two lines
You can vectorize the inner loop: % values of the matrix = 0 in between the two lines for ii=1:width A(floor(s1*ii+b1):fl...

2年以上 前 | 0

回答済み
What is the code to count the number of word in the text file?
There are a few ways to set this up. Here's one using line-by-line processing and a loose definition of a word as a space-delim...

2年以上 前 | 0

回答済み
how to plot surface graph in matlab?
The surf function is probably what you want: (Note that csvread is "not recommended".) x = 350:390; y = linspace(0.001, 0.03...

2年以上 前 | 1

| 採用済み

回答済み
Repeated measures ANOVA with 2 variables with different levels
Change rm = fitrm(dv, 'uniR - texB ~ 1 ', 'WithinDesign', withinDesign); to rm = fitrm(dv, 'uniR-texB ~ 1 ', 'WithinDesign', ...

2年以上 前 | 0

| 採用済み

回答済み
Dot indexing is not supported for variables of this type
Change xApp = av_train; data=xApp (: , 1); type = 1; feature=featureExtraction(data,'mean',type); to xApp = av_train; dat...

2年以上 前 | 0

| 採用済み

回答済み
Histogram function plots different colours from those requested
The histogram function uses a face alpha of 0.6 by default. That's why the colors appear a bit lighter than the values from your...

2年以上 前 | 1

回答済み
How to label each line in the plot
The main problem in the image is that the values are superimposed. This can be fixed by using an index into the Values array fo...

2年以上 前 | 0

| 採用済み

回答済み
Finding minimum output value for same inputs in a table
Is your table consistently organized as in the image; i.e., 36 rows repeating with the same values execpt for the last column (f...

2年以上 前 | 0

| 採用済み

回答済み
draw oriented rectangle around a blob
Something like this seems to work: img = imread('testimage.jpg'); bw = imbinarize(im2gray(img),'adaptive','Sensitivity',0.45);...

2年以上 前 | 0

| 採用済み

回答済み
How do I filter a signal, using FIR filters.
You could perhaps use a butterworth bandpass filter: (Note: Requires Signal Processing Toolbox) t = 0:1/8000:1023/8000; w = 0...

2年以上 前 | 1

| 採用済み

回答済み
Duration of generated sound not correct
Change sound(y); to sound(y,Fsam); The sound function assumes a sampling rate of 8192 Hz. If a different sampling rate is u...

2年以上 前 | 0

| 採用済み

回答済み
How do i plot an audio file with an interval in ms?
Using the sample frequency of the audio data (Fs), this code will extract and plot the first 20 ms: [x, Fs] = audioread('AudioS...

2年以上 前 | 0

| 採用済み

回答済み
Designing a Butterworth Filter
Here's a solution, but it requires MATLAB's Signal Processing Toolbox. Given, sRate, the sample rate of your data, fc, the de...

2年以上 前 | 1

回答済み
Find files of a certain extension and populate a structure field with those file names.
Your second command is wrong. The dir command returns a structure. You don't need to append ".file_names". The filenames are ...

2年以上 前 | 0

| 採用済み

回答済み
How to estimate the Statistical Significance of a Correlation When the Data Are Serially Correlated in matlab?
MATLAB's corrcoef function provides the correlation (r) as well as the significance (p) of the correlation. For your data set, ...

2年以上 前 | 0

さらに読み込む