Community Profile

photo

Ive J


Last seen: Today 2013 以来アクティブ

Computational biologist.

Statistics

All
  • Knowledgeable Level 5
  • Pro
  • 6 Month Streak
  • First Submission
  • GitHub Submissions Level 1
  • First Answer
  • Thankful Level 3

バッジを表示

Content Feed

表示方法

回答済み
Right measure for logistic regression of imbalance data and dealing with Complete Separation
It's probably a bit late for your original problem, but since it's an important question and MATLAB still lacks such important f...

2ヶ月 前 | 0

送信済み


bfilereader
bfilereader: Efficient processing of big delimited files in MATLAB

4ヶ月 前 | ダウンロード 1 件 |

Thumbnail

回答済み
How to get the sum of squares in GLM model summary ?
You can get SST, SSE and SSR: mdl = fitglm(rand(100, 2), randi([0 1], 100, 1), 'dist', 'binomial', 'link', 'logit'); mdl.SSE...

4ヶ月 前 | 0

| 採用済み

質問


tall array within a parfor?
Consider the following scenario: ds = datastore(...); dst = tall(ds); parfor ... % warning here: dst is a broadca...

4ヶ月 前 | 1 件の回答 | 0

1

回答

回答済み
Sort cell numbers ?
If by sort, you mean sort within each element of cell array: G = {[-83;-84] [-65] [-50;-47] [-33;-30] [-26;-22] [-16;-15] [-6; ...

5ヶ月 前 | 0

回答済み
Using movmean to calculate mean of first and last element in array
What about this? a = [1 5 8 10]; ma = movmean([a, a(1)], [0 1], 'Endpoints', 'discard')

5ヶ月 前 | 0

| 採用済み

回答済み
exportgraphics dynamic file name
% A = {'name1', ...} for k = 1:16 %rest of the code c = colorbar; c.Label.String = A{k}; ...

5ヶ月 前 | 1

| 採用済み

回答済み
stepwiseglm model seems to be missing parameters?
It does include both. You should mind the model formula in MATLAB (AKA Wilkinson Notation): x1*x2 is x1 + x2 + x1:x2. See also...

5ヶ月 前 | 0

| 採用済み

回答済み
Create a double identity matrix matlab
Maybe not the best way, but works: % taken from doc kron n = 12; I = speye(n, n); E = sparse(2:n, 1:n-1, 1, n, n); K = fu...

5ヶ月 前 | 0

回答済み
Vector dimesions are different before encoding json and after decoding json
How about this? mystr.f1 = 1:4; mystr.f2 = (1:4).'; js = jsonencode(mystr); newstr = jsondecode(js) fnames = fieldnames...

5ヶ月 前 | 0

| 採用済み

回答済み
How do I match an annotations.json file with their respective images from an image folder?
Try this js = jsondecode(fileread("annotations.json.txt")) % file extension was changed only for upload % get info of first ...

5ヶ月 前 | 0

回答済み
How to add to Matlab a path with a @Folder
See here www.mathworks.com/matlabcentral/answers/1659190-why-addpath-is-not-working?

6ヶ月 前 | 2

| 採用済み

回答済み
Can MATLAB save the Profiler results table (Function Name, Calls, etc.) to a text file or a spreadsheet?
info = load("info.mat").info; infotab = struct2table(info.FunctionTable); infotabMain = infotab(:, ["FunctionName", "NumCalls"...

6ヶ月 前 | 0

| 採用済み

回答済み
Estimate p-values of fitted parameters using armax from sysid toolbox
armax returns parameters and their uncertainties; then you can calculate the p-values. load iddata9 z9 na = 4; nc = 1; sys ...

6ヶ月 前 | 0

| 採用済み

回答済み
Optimization of manipulating an array
a = [1, 0, 5, 0, 6, 0, 12, 0]; b = a; a_adj_mean = movmean(a(1:2:end), 2); zero_idx = a == 0; b(zero_idx(1:end - 1)) = a_a...

6ヶ月 前 | 0

| 採用済み

回答済み
calculate the number of times each codon appears in a .mat file
Maybe this example would help: % create a random DNA seq dna_codes = ['A', 'T', 'G', 'C']; dna_str = string(dna_codes(randi(n...

6ヶ月 前 | 0

回答済み
jsonecode doesn't support complex doubles
Here says: "JSON has no standard way to represent complex numbers, so there is no way to test for them in JSON Schema." Here a...

6ヶ月 前 | 0

| 採用済み

回答済み
Increase width of x axis
You need to set gca and not gcf: set(gca, 'Position', ...)

6ヶ月 前 | 0

回答済み
Combine hundred of mat files into one mat file (same quantity of row and column)
You can load all together: files = ["bearing1_1_1.mat", "bearing1_1_2.mat"]; % add all files here, use dir or ls ds = fileData...

6ヶ月 前 | 0

回答済み
retrieve data from a website with multiple pages
My answer doesn't totally solve your problem, but addresses your main questions (hopefully!). Before parsing the HTML itself, w...

6ヶ月 前 | 0

| 採用済み

回答済み
Find the position of elements of an array in another array and measure the euclidean distance between two array elements.
X = [11 12 13 21 22 23]; A = [11 22 21 13 12 23]; B = [11 13 21 23 22 12]; [~, Q] = ismember(X, B) [~, P] = ismember(X, A)...

6ヶ月 前 | 0

| 採用済み

回答済み
Create timeseries of a 3d scattered plot
If you want to create an animation (GIF for instance) or a movie (e.g. AVI), you can: % see: https://mathworks.com/matlabcentra...

6ヶ月 前 | 0

| 採用済み

回答済み
How to execute for-loop iterations in parallel
You don't need even a loop (parfor aside) for this (and I guess you don't even need ind2sub depending on your true purpose here)...

6ヶ月 前 | 0

回答済み
Fixed Effects Design Matrix Must be of full column rank with multiple categorical predictors
The error is self-explanatory, and the reason is full dummy variable scheme you're using (why?). See here https://mathworks.com/...

7ヶ月 前 | 0

回答済み
Why does my graph get sent to the end of the html when I publish it?
I cannot reproduce this behavior.

7ヶ月 前 | 0

回答済み
Why do I receive Vectors must be the same length error in this code?
Error is very obvious: y and t1 don't have the same length. Try this t1 = linspace(1, max(y), length(y)); plot(t1, y)

7ヶ月 前 | 0

回答済み
Can I use my CPU and GPU simultaneously for Numerical Simulation?
Technically, yes you can (given that you've installed CUDA) combine both. However, whether or not you get anything useful out of...

7ヶ月 前 | 0

回答済み
Make a 2D plot with one arbitrary axis
You can start with something like this bpoints = [6.88, 7.84]; color = summer(numel(bpoints) + 1); % or whatever colors you li...

7ヶ月 前 | 0

| 採用済み

回答済み
How to compare two different excel sheets specific columns for like values
xlsread is deprecated, avoid it. fullTab = readtable('File1.xlsx'); denseTab = readtable('File2.xlsx'); [idxFull, idxDens...

7ヶ月 前 | 0

回答済み
How to extract a subset of a field from a structure while keeping respective information from the other fields?
field components doesn't have the same size as others. Maybe it's better if you provide part of your struct at least. Anyways, y...

7ヶ月 前 | 2

| 採用済み

もっと読み込む