Answered
Create variable from string
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 2

Answered
Is it possible to set a variable by its name?
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 1

Answered
Create && Fill array variables resulting from the concatenation of string characters and numbers
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

Answered
Iterate through head structures using their names
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

| accepted

Answered
How to get value from string II = strcat('A', num2str(la));
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 1

Answered
Multiple Files into Multiple Variables
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

Answered
I have 21*1 Matrix. i have store it into z. then i have to slice these value as 1*1 Matrix and allocate (z1, z2, z3, z4.......z21) for 21 matrix. how can i allocate. please tell me command or allocation.
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

| accepted

Answered
HOW TO NAME VARIABLES CONTINUOUSLY ?
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

Answered
Combining Matrices from a loop into a single large Matrix
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

| accepted

Answered
MATLAB loop matrix transpose
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

Answered
How to create 3D with (x,y,A) where A is an array of 1:n?
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 1

Answered
Referring to variables with concatenated strings
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 1

Answered
Saving the output of a loop into a matrix or a vector
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 1

| accepted

Answered
modify all vectors in workspace
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 1

Answered
How to generate variable names from a cell array
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

| accepted

Answered
How to copy every 500 rows to a new variable?
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 2

| accepted

Answered
How to create new variables in batches with strcat
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 9

| accepted

Answered
How to prevent a figure window to automatically take focus
The solution requires a few trivial changes to your code: Create any figures before the loop, adding any placeholder axes/lines...

7 years ago | 1

Answered
Find all combinaisons of sum of two vector that corresponds to the value of a third vector
Simpler to use ndgrid: >> A = [1561.28, 1561.64, 1562.00, 1562.36, 1562.72]; % signal >> B = [1064.00, 1064.36, 1064.72, 1065....

7 years ago | 0

Answered
Replacing commas with whitespaces using regexprep
>> str = '(asdf,(50,51,52),jkl)'; >> regexprep(str,'(\d+),(\d+),(\d+)','$1 $2 $3') ans = (asdf,(50 51 52),jkl) If you are alr...

7 years ago | 0

| accepted

Answered
Documentation of differences between Matlab versions
https://www.mathworks.com/help/matlab/release-notes.html

7 years ago | 1

| accepted

Answered
could anyone help me to solve the issue with respect to the code
"What i actually need is idx should be different for each run" The easiest way is to define them before the loop, e.g.: A = 1:...

7 years ago | 0

Answered
Extracting specific rows from multiple data files to store as variables
"....and store in such a way that allows me to keep track of which stems from which file." That is easy using the structure ret...

7 years ago | 1

| accepted

Answered
Unable to perform assignment because dot indexing is not supported for variables of this type.
You re-defined the variable name for the loop iterator variable: dots.nDots = 100; %^^^ variable name. for dots = 1:dots.nDot...

7 years ago | 0

| accepted

Answered
how to extract data from the fixed-width-field format using fscanf or textscan
A simple solution based on regeprep and sscanf. Before the file-reading loop: vec = [8,16,16,16,8,8]; rgx = sprintf('(.{%d})',...

7 years ago | 2

Answered
Generating vectors of length N with only -1s and 1s.
>> M = 5; >> N = 19; >> randi(0:1,M,N)*2-1 ans = -1 1 -1 1 -1 -1 1 -1 1 -1 -1 1 -1 1 1 -1 -1 1 ...

7 years ago | 0

| accepted

Answered
Given a matrix A, create the matrix B whose elements are the neighbor sumr for A
Much simpler to just use conv2: >> A = [1 2 3 4; 5 6 7 8; 9 10 11 12; 13 14 15 16] A = 1 2 3 4 5 6 7 ...

7 years ago | 1

Answered
finding number sequences in a vector and set them to the adjacent values
>> V = [ 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0] V = 0 0 0 0 0 0 0 0...

7 years ago | 1

| accepted

Answered
getting Complex double in matlab while excel solves it
(1-exp(-(WL-0.26053)./0.15994)).^2.28411 % % ^^^^ ^ positive values (around 5) %^^^ ...

7 years ago | 0

| accepted

Load more