Statistiques
RANG
2 313
of 297 016
RÉPUTATION
27
CONTRIBUTIONS
1 Question
8 Réponses
ACCEPTATION DE VOS RÉPONSES
0.0%
VOTES REÇUS
13
RANG
of 20 419
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
Question
Unwanted editor behavior: whitespace only lines trimmed
I'm using MATLAB 2023a. Sometimes, when I have a line in an m-file with only whitespace then whitespace characters are removed f...
plus d'un an il y a | 2 réponses | 3
2
réponsesA résolu
Replicate elements in vectors
Replicate each element of a row vector (with NaN) a constant number of times. Examples : n=2, A=[1 2 3] -> [1 1 2 2 3 3] n=0...
plus de 7 ans il y a
A résolu
Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...
plus de 7 ans il y a
A résolu
Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...
plus de 7 ans il y a
A résolu
Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...
plus de 7 ans il y a
pcolor
hand = pcolor(hadamard(20)) set(hand, 'linestyle', 'none')
plus de 13 ans il y a | 2
Functions with multiple variables
Ben, Here is a neat way of solving your problem. There are certainly more efficient methods. This was the least amount of c...
plus de 13 ans il y a | 0
Keep a variable in workspace when calling a function
The code below uses a persistent variable. The first time the function is run, the variable is given the value [] (the empty ma...
plus de 13 ans il y a | 0
How to use colormap for different bars.
See if this helps. y = [4.2; 4.6; 5]; %The data. s = [.3; .2; .6]; %The standard devi...
plus de 13 ans il y a | 8
| A accepté
Sphere into equal parts
If there are no restrictions on how to divide the sphere, then you can slice it like an orange.
plus de 13 ans il y a | 0
Plot axis limits
You can set the axis limits using ylim([290 420]) or xlim([290 420]).
plus de 13 ans il y a | 0
all possible permutations
You can use this method. It does not use cell arrays, which are conceptually convenient but rather inefficient. A = nchoosek...
plus de 13 ans il y a | 0