Réponse apportée
How can I make one vector out of two vectors with different lengths?
A = [1 1 1 1] B = [0 0 1 0 1 0] C = [B, A];

environ 5 ans il y a | 1

Réponse apportée
text file above 43 mb
MATLAB offers lots of ways to read text files, including textscan, readtable, fileread or low-level I/O (fread). However, when y...

environ 5 ans il y a | 0

Réponse apportée
How to make the marker width more thicker
Set LineWidth when calling plot function. plot(rand(10, 1), rand(10, 1), 'bo','LineWidth', 2)

environ 5 ans il y a | 2

| A accepté

Réponse apportée
Compare 2 regression models
One way is to use likelihood ratio test (similar to R anova function). For more information see here. y = randn(200, 1); % te...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to determine repeated value in row of an array
Your arrays is N*4 and not N*5, so you may want to modify your example. Also add/modify conditions if necessary. A = [1 1 2 2 ...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to specify beta distributed response variable in fitglme?
I'm not sure why you want to use fitglme while you mentioned GLM (and not mixed-effects model). fitglm does not accept beta dist...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
mutiple reshaping files and the output have similar name of the input files
I'm not aware of you file contents (or even whehter you can use load to read them). Regardless, you may need something like: fi...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Matlab unrecognized function or variable
Correct these two lines Re=p*V*D/mu;%reynolds number equation f=@(x)(1/sqrt(x)+2*log(e/(3.7*D)+2.51/(Re*sqrt(x))));

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Iterating through a structure
Try this: mask = arrayfun(@(x)inpolygon(X, Y, x.X, x.Y), no_afr_stru, 'UniformOutput', false);

environ 5 ans il y a | 0

Réponse apportée
how can i plot this equation?
Please first try to search in answers or simply Google it. % doc plot x = 1:10; y = x.^3; plot(x, y)

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Code taking too long to execute
Replace this line z = double(G(xx, yy)); with these G = matlabFunction(G); % generate a function handle from your symbolic G ...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
compute the p-value of Kaplan Meier curve
See here: https://www.mathworks.com/matlabcentral/fileexchange/22317-logrank Btw, at some point you probably wanna consider mo...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Import data as struct with fields instead of struct array (Var1, Var2...)?
Method 1: input = readcell('input.txt').'; % read as cell, NaN won't be an issue here inputStruct = cell2struct(input(2:...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Cell array as input function
You can use cellfun to apply your function to each cell. [t3_1_HR, q3_1_HR, qd3_1_HR, Tact3_1_HR, TSRS3_1_HR] = ... cellf...

environ 5 ans il y a | 0

Réponse apportée
Plot Measuring Results with ERRORBAR
You should calculate meaningful error estimates yourself (SD, SEM, etc), and plot it with errorbar. doc errorbar

environ 5 ans il y a | 0

Réponse apportée
webread with json parameters
elems itself should be added as a nested struct to the input data, try this headers = {'Content-Type' 'application/json'; 'Acce...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
random distribution row number
[idxB, idxA] = ismember(B, A); idxA is index of A members in B.

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Loop through a cell array to use plot3
Try for i=1:20 plot3(jN{1,i}, jC{1,i}, jP{1,i}) hold on end grid on hold off You could also concatenate your vect...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
how do i find the minimum of multiple curves that start from different X and the draw it
Here and here.

environ 5 ans il y a | 0

Réponse apportée
Applying a function across all columns of a table
Working with strings/cell is easier. T = readtable('agree'); header = T.Properties.VariableNames; % keep table variable names ...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
I am reading the data from csv files but getting error
csvread is not recommended anymore, use readmatrix instead. Array = readmatrix('AverageVelocities.csv');

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Import a CSV file with no header separating numbers from symbols in a table
Readtable ReadVariableNames allows you this: tab = readtable('tmp.csv', 'ReadVariableNames', false); % don't read variable name...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Why do the lines not plot to completion
Increase integration interval in ode45: solution2=ode45(vector2, [0 25], [.39 0]); solution5=ode45(vector5, [0 25], [.39 0]);...

environ 5 ans il y a | 0

| A accepté

Question


What's the magic behind detectImportOptions?
Hi, I have a huge delimited text file (of string and double) in different columns (~ 150 GB), and I'm interested in getting spe...

plus de 5 ans il y a | 1 réponse | 0

0

réponse

Question


Is it efficient to read large imputation (compressed binary) files into MATLAB?
Hi, I am trying to read genotyped/imputation files in BGEN format into MATLAB. To explain the bgen format in the simplest way, ...

plus de 6 ans il y a | 1 réponse | 0

0

réponse

Question


How to optimize my code and system configs?
Hi I am working with big datasets (> 3 GB each), and use mostly Statistics and Machine Learning ToolboxStatistics built-in func...

plus de 6 ans il y a | 1 réponse | 0

1

réponse

Question


Connection problem with MATLAB Mobile
Hi I use MATLAB R2017b (academic license), and I try to connect to my desktop MATLAB (runs on a university computer under unive...

plus de 6 ans il y a | 1 réponse | 0

0

réponse

Question


How to detect noisy data / outliers?
Hi I have a problem to distinguish between a complete noisy data or data containing some outliers. In fact, I am trying to do...

plus de 8 ans il y a | 2 réponses | 0

2

réponses

Question


How to convert unicode into a string?
Hi, I have the following string, I want to know how can I convert it into a regular string (it is originally contains arabic ...

plus de 9 ans il y a | 1 réponse | 0

1

réponse

Question


How to define an ODE when there are some parameters are function of dependent variable?
Hi, I have this ODE, but I cannot figure out how to define it in MuPad or even in other symbolic ways: d/dx[D(y)*dy/dx...

plus de 9 ans il y a | 1 réponse | 0

1

réponse

Charger plus