Answered
Cell to mat conversion (read only values before semicolon)
cell2mat(cellfun(@(x) x(1, :), cell_array, 'un', 0))

5 years ago | 0

| accepted

Answered
writetable write data column wise
label={pred_labels(:), validation_lbl(:)}; % shot in the dark

5 years ago | 0

Answered
Field of a structure
D = structfun(@mean, T); writetable(table(D), 'Sample.xlsx') % or writematrix() as Stephen suggested

5 years ago | 0

Answered
alternative to groupcounts function
doc groupsummary doc splitapply

5 years ago | 0

Answered
Is it wrong to use eval() to read input function?
eqn = str2sym(str)

5 years ago | 1

| accepted

Answered
How to generate a list of combinations of a fragment in a string?
c(perms(1:numel(c))) % c your data

5 years ago | 0

Question


Gathering data from Mi Fit app
Is there a way to import data from Mi Fit app to MATLAB?

5 years ago | 0 answers | 1

0

answers

Answered
Get a Student Licence
You may have to contact your university’s IT department or MathWorks Sales Team to purchase one.

5 years ago | 0

Answered
Extracting numeric values from symbolic variables
== forms an equation , it DOESN’T assign any values.

5 years ago | 1

Answered
customizing the index of reshape A 2X2 matrix
Transpose Test before reshaping.

5 years ago | 0

| accepted

Answered
Write a matrix to txt file
writematrix(Gamma, 'activity_coefficients.txt') %or dlmwrite('activity_coefficients.txt', Gamma)

5 years ago | 0

Answered
Making a table for degrees and radians
TABLE = array2table([Degrees(:), deg2rad(Degrees(:))], 'VariableNames', {'DEGREES', 'RADIANS'})

5 years ago | 0

| accepted

Answered
How to stop for loop from overwriting
Sx = cell(numel(P), 1); % before loop Sx{ii} = ... inside loop

5 years ago | 0

| accepted

Answered
How can I merge multiple columns between two matrices?
In one line: d = (~c .* a) + (c .* b)

5 years ago | 0

| accepted

Answered
neat stacking of array and cell array
C = reshape(cell_array.', [], 1); C(cellfun('isempty', C)) = []

5 years ago | 1

Answered
How to change the length and the values of a vector?
n = numel(vector); V = reshape([vector, nan(1, 1e2 - mod(n, 1e2))], [], 1e2); Wanted = nanmean(V) %or Wanted = mean(V, 'o...

5 years ago | 1

| accepted

Answered
Shifting a value in a variable into a new row, under existing variable (Table)
T = array2table(reshape(TabLe{:,:}, 3, []), 'VariableNames', {'M1', 'M2', 'M3', 'M4'})

5 years ago | 0

| accepted

Answered
How can I create a vector of fractions?
doc colon doc for Start with MATLAB Onramp course.

5 years ago | 0

Answered
How can I add zeros between elements of a matrix?
reshape([vector; zeros(size(vector))], 1, [])

5 years ago | 0

Answered
Chain rule with partial derivative
df_t1 = subs(df_t,{x,y,z},{x1,y1,z1})

5 years ago | 1

Answered
displaying/returning two columns in matlab
T = array2table([output_number(:), (1:numel(output_number)).'], 'VariableNames', {'Output Number', 'Sequence Number'})

5 years ago | 0

Answered
How to replace the elements of a matrix with other matrix
b = reshape(sort(a(:)), size(a, 2), []).'

5 years ago | 0

Answered
Output of Two Column
Out = [A(:), B(:)] I suggest you to do the MATLAB On-ramp course.

5 years ago | 0

| accepted

Answered
Random picking of adjacent data points
datasets = num2cell(reshape(data(randperm(48e3)), [], 1e3), 1); %celldisp(datasets)

5 years ago | 0

Answered
Plotting selected data possibly with indexing
y = cumprod(y > 0) .* y; y(y == 0) = nan plot(x, y)

5 years ago | 0

| accepted

Answered
Comparing 2 arrays and selecting some out of them
r1 = p(p<q);

5 years ago | 0

| accepted

Answered
creating a matrix from vector
<https://www.mathworks.com/help/matlab/matlab_prog/array-vs-matrix-operations.html> You already almost gave the answer to your ...

5 years ago | 0

| accepted

Answered
How to remove duplicate elements from array based on another array ?
[~, ii]= unique(a, 'stable'); b = b(ii)

5 years ago | 1

| accepted

Answered
add count in a for loop
[row, column] = deal(1:10); Counts = nnz(((row .* column(:)) > 70) & ((row .* column(:)) < 20))

5 years ago | 0

Load more