Answered
Error question :The expression to the left of the equals sign is not a valid target for an assignment
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 1

| accepted

Answered
how to use while loop to access workspace values?
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

Answered
Create an array with a for loop that refers to n user defined itterations
Just put the values into vectors, like this: N = str2double(input('Enter number of nodes: ','s')); X = NaN(1,N); Y = NaN(1,N)...

7 years ago | 0

| accepted

Answered
Can you explain this behaviour?
"Is this a MATLAB bug?" Sadly no, it is a documented "feature". The reason is because for does not actually iterate over the e...

7 years ago | 2

| accepted

Answered
How to check for particular entries in cell arrays
Use ismember within cellfun: https://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html >> Chn = {[4,4,3];[2,2...

7 years ago | 0

| accepted

Answered
Summation of a character
Take a look at the character codes, e.g.: >> double('13') ans = 49 51 The function sum simply sums up the character c...

7 years ago | 0

| accepted

Answered
Combinations of different rows of a matrix
Simpler using basic MATLAB indexing: >> M = [1,5;6,2;5,6;7,5;9,0] M = 1 5 6 2 5 6 7 5 9 0 >> X ...

7 years ago | 0

| accepted

Answered
Edit box string to column value plotting
You invented a str2num syntax that does not exist: str2num(handles.YCInput, 'string') % ^^^^^^^^^^ is thi...

7 years ago | 0

| accepted

Answered
Check if a value from a dropdown menu is in a struct
Most likely those values are not exactly the same because you are trying to compare floating-point numbers, which is never a goo...

7 years ago | 0

| accepted

Answered
Renaming an array in a script
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 give different inputs for a loop in each and every iteration
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

| accepted

Answered
Alternative for eval, for my case?
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 2

Answered
Extracting data from a text file into an array
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

Answered
Loading many .txt files by title in matlab
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 assign A or B or C to a Variable?
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

Answered
From variable name to data
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 2

Answered
For loop with dynamic variable name condition
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 read and loop through multiple files in a folder and assign them to unique variables.
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

Answered
Loops and subscripts. Is it possible to build a loop on, say "j" and refer to variables as "variable_1", "variable_2", "variable_last value of j"
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 1

Answered
having trouble with changing Matrix name
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 2

Answered
How to Rename all variables
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 1

Answered
How can I create a variable name from parts of another variable name
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

| accepted

Answered
about dynamic variable name for output
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 2

Answered
How to use a char variable name as a numeric variable
Use a simple cell array loop instead: C = cell(size(mymatrix)); n = size(mymatrix,1)/size(mymatrix,2); for k = 1:n-1 C{k...

7 years ago | 0

Answered
Convert cells from cell array to matrices
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 save an unknowm amount of matrixes? How to make boxplots of an unknown amount of matrixes?
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 0

Answered
Looping on one line
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 1

| accepted

Answered
How do I add a known vector to an existing matrix in a loop?
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 many variables from a dataset?
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 1

Answered
How can I analyse multiple variables with similar names after importing them in a loop?
https://www.mathworks.com/help/matlab/matlab_prog/string-evaluation.html https://www.mathworks.com/matlabcentral/answers/304528...

7 years ago | 1

Load more