Réponse apportée
third index in three dimention array
Imagine that 2 X 3 matrix is copied 4 times.

environ 6 ans il y a | 0

Réponse apportée
Find the first incidence of 1 in a logical vector and replace all other 1s by zero
Wanted = (cumsum(matrix, 2) == 1) .* matrix

environ 6 ans il y a | 3

| A accepté

Réponse apportée
How to sort (ascending or descending) a list of ID numbers based on the value in a corresponding vector
Index second output of sort() to ID.

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How do I find the max value of rows in a table?
MAX_rows = max(TabLe{:, :}, [], 2)

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Inputting a Value from a Matrix into a command for automation using looping statements .
for k = 1:numel(Time) command(Time(k)) % who knows what this function does, perhaps it can be easily vectorised end...

environ 6 ans il y a | 0

Réponse apportée
delete zeros from matrix
p4(:, all(p4 == 0)) = []

environ 6 ans il y a | 1

Réponse apportée
Problem with using 'DisplayName' property in fplot()
F = fplot(f); set(F, 'DisplayName', 'Test')

environ 6 ans il y a | 0

Réponse apportée
Index not working - very simple problem!
idx = abs(INSW - 3) < 1e-2; set tolerance

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Ignore NaN values when sorting
[~, where] = sort(A); Wanted = where .* ~isnan(A)

environ 6 ans il y a | 2

Réponse apportée
Problem with latex interpreter
str='$\frac{\tilde{y}(t)}{\sigma_{\eta(t)}}$'; ylabel(str,'Interpreter','latex')

environ 6 ans il y a | 0

Réponse apportée
How to display a particular row of a matrix using loop
AR = num2cell(AR, 2); celldisp(AR)

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Matrix multiplication with constant
k = RR * RS

environ 6 ans il y a | 1

Réponse apportée
Matrix must be square
p.^-1

environ 6 ans il y a | 0

| A accepté

Réponse apportée
三次元行列の作成
I = num2cell(Images); W = cat(3, I{:});

environ 6 ans il y a | 0

Réponse apportée
adding element to the beginning of an array
b(1:numel(a)) = a

environ 6 ans il y a | 2

| A accepté

Réponse apportée
For elements in two arrays/columns of numbers, how can I find the average only if both elements are non-zero?
matrix(matrix == 0) = nan nanmean(matrix, 2)

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Different Colors On Single Line With LaTeX Interpreter
text(.1,.1,'^{{\color{red}Red}}/_{{\color{blue}Blue}}{\color{green}Green}')

environ 6 ans il y a | 1

| A accepté

Réponse apportée
readtable of csv with empty cells gives NaN and ' '
c = TablE{:, :}; c(cellfun('isempty',c)) = {nan}

environ 6 ans il y a | 0

Réponse apportée
Extract values from vector with cell indices
cellfun(@sum,c)

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Vector substitution into symbolic function
d2n_dl2 = matlabFunction(d2n); d2n_dl2subs = d2n_dl2(L)

environ 6 ans il y a | 0

Réponse apportée
View (Extract?) data (from table) of struct array.
Session.wf

environ 6 ans il y a | 0

Réponse apportée
Removing multiple substrings in a string
regexprep(String, '[a-z]*', '')

environ 6 ans il y a | 0

Réponse apportée
Line 34 * unknown operator
After the second loop use {} instead of () by the way those two loops can be reduced to one single loop.

environ 6 ans il y a | 1

| A accepté

Réponse apportée
Index in position 2 exceeds array bounds (must not exceed 2).
Never name a variable *fill* ! ix = FiLL(2, :) == 0; FiLL(:, ix) = []

environ 6 ans il y a | 0

| A accepté

Réponse apportée
how do I download documentation to use when I'm developing offline
doc doc

environ 6 ans il y a | 0

Réponse apportée
how to pick max value in different matrix
ABC = cat(3,A,B,C); D = max(ABC)

environ 6 ans il y a | 0

Réponse apportée
how to pick max value in different matrix
max([A, B, C])

environ 6 ans il y a | 0

Réponse apportée
Find indices of elements for given difference
Nearest element after or equal to the boundary: Dt = t - (10:10:max(t)).'; Dt(Dt<0) = inf; [~, Indices] = min(Dt,[],...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Eig(A) returns long fractional answer instead of a single number
sympref('FloatingPointOutput',1) % run this once and you don’t have to call vpa() or double() every single time doc sympref

environ 6 ans il y a | 0

Réponse apportée
Creating a matrix using the colon function
ix = max(diff([A;B])); c = cumsum([A;ones(ix, numel(A))]).'; % if the difference between each A and B elements are the same ,...

environ 6 ans il y a | 1

Charger plus