photo

Jonathan


Last seen: oltre un anno fa Attivo dal 2011

Followers: 0   Following: 0

Messaggio

Statistica

All
MATLAB Answers

1 Domanda
8 Risposte

Cody

0 Problemi
4 Soluzioni

RANK
2.361
of 300.753

REPUTAZIONE
27

CONTRIBUTI
1 Domanda
8 Risposte

ACCETTAZIONE DELLE RISPOSTE
0.0%

VOTI RICEVUTI
13

RANK
 of 21.075

REPUTAZIONE
N/A

VALUTAZIONE MEDIA
0.00

CONTRIBUTI
0 File

DOWNLOAD
0

ALL TIME DOWNLOAD
0

RANK
63.855
of 170.858

CONTRIBUTI
0 Problemi
4 Soluzioni

PUNTEGGIO
50

NUMERO DI BADGE
1

CONTRIBUTI
0 Post

CONTRIBUTI
0 Pubblico Canali

VALUTAZIONE MEDIA

CONTRIBUTI
0 Punti principali

NUMERO MEDIO DI LIKE

  • Solver
  • Knowledgeable Level 1
  • First Answer

Visualizza badge

Feeds

Visto da

Domanda


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...

circa 2 anni fa | 2 risposte | 3

2

risposte

Risolto


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...

oltre 8 anni fa

Risolto


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...

oltre 8 anni fa

Risolto


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...

oltre 8 anni fa

Risolto


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,...

oltre 8 anni fa

Risposto
pcolor
hand = pcolor(hadamard(20)) set(hand, 'linestyle', 'none')

circa 14 anni fa | 2

Risposto
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...

circa 14 anni fa | 0

Risposto
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...

circa 14 anni fa | 0

Risposto
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...

circa 14 anni fa | 8

| accettato

Risposto
Matlab hermite interpolation
Try 'edit pchip'.

circa 14 anni fa | 0

Risposto
Sphere into equal parts
If there are no restrictions on how to divide the sphere, then you can slice it like an orange.

circa 14 anni fa | 0

Risposto
Plot axis limits
You can set the axis limits using ylim([290 420]) or xlim([290 420]).

circa 14 anni fa | 0

Risposto
all possible permutations
You can use this method. It does not use cell arrays, which are conceptually convenient but rather inefficient. A = nchoosek...

circa 14 anni fa | 0