Answered
I want to make a full string from all the "a" values that i get
reversedDNA = 'TACATGA' DNA = replace(reversedDNA, {'T', 'A', 'C', 'G'}, {'A', 'T', 'G', 'C'})

5 years ago | 0

Answered
Some mistakes about applying sym.My matlab version is R2018b
The error message is correct. In earlier releases you could convert an arbitrary expression into a symbolic expression by passin...

5 years ago | 0

Answered
"There is no MarkerSize property on the Point class"
The online documentation is for the most recent release, currently release R2020b. According to the Release Notes the MarkerSize...

5 years ago | 0

Answered
Error: Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
Variable names in MATLAB are not allowed to contain the - character. Nor are they allowed to start with a digit. See the documen...

5 years ago | 0

| accepted

Answered
Is it possible to have 2 indices in the same for loop?
If you want to have one for loop iterate over two variables simultaneously, you can't do this directly but you may be able to in...

5 years ago | 1

Answered
Undefined function 'mtimes' for input arguments of type 'function_handle'.
You cannot multiply a number and a function handle or two function handles. You can multiply a number and the result of evaluat...

5 years ago | 0

Answered
random numbers in Matlab 2009
The rng function was introduced in release R2011a to make it easier to control the pseudorandom number generators used by rand, ...

5 years ago | 1

Answered
Error using Reshape Function
Assign the final 17 elements of Force_signal to a separate variable. reshape the first 29233 (=943*31) elements of Force_signal ...

5 years ago | 1

| accepted

Answered
R2021 pre-release Class Diagram Viewer
Please send all questions related to Prerelease versions of the software to Technical Support using the Contact Support link in ...

5 years ago | 0

| accepted

Answered
How to set a moving window
Use the value of the for loop variable as the index of the first element in the window. Add a quantity to get the index of the l...

5 years ago | 0

Answered
replace values in an array with certain numbers
x = 2*rand(10, 1); edges = 0:2; d = discretize(x, edges, [500, 1000]); results = table(x, d, 'VariableNames', ["Raw data", "D...

5 years ago | 1

Answered
Importdata does not work anymore in r2018b
The obvious questions are: Do the files have the same names as they did before? Are the files in the same directory as they we...

5 years ago | 0

Answered
Read binary data as three UBYTE (8-bit Unsigned Byte) in MATLAB and use bit shift operators to get two 12 bit streams
Use the bit-wise operations. You're also going to need to convert between data types. x = int8(5) y = int16(x) You may need o...

5 years ago | 0

| accepted

Answered
Summing Datenum resets after 24 hours
Serial date numbers are not the right tool for this job. You want to use a duration array. dur1 = duration(12, 23, 45) dur2 = ...

5 years ago | 0

Answered
Looping over a parameter of a function used in ode45
So you want to pass i (BTW I would use different variable names than i and j, as they already have meanings in MATLAB: see doc i...

5 years ago | 0

Answered
How to input a string of integers and hex values together as an input. [9,0xa,0xb]
If you're using release R2019b or later this should work. This confirms it works in release R2020b. Array = [0,1,2,3,4,5,6,7,8,...

5 years ago | 0

Answered
Error in syms x
Line 10 of the syms.m function included in Symbolic Math Toolbox is a comment line inside the help text for that function. Line ...

5 years ago | 0

Answered
HOW TO INSERT THE DATE (DATETIME) IN THE TITLE?
peaks title("It is currently " + string(datetime('now')))

5 years ago | 3

Answered
is this repr.m redundant to existing standard approach?
If all you really care about are numeric matrices containing "nice" values, consider mat2str. mat2str((1:5).^2) If you're doin...

5 years ago | 0

Answered
Conditional loop to loop until result is an integer.
If 2n/k = a and you want to find n and a, rewrite this as 2n/a = k. So you want to return two integer matrices whose ratio is "...

5 years ago | 1

Answered
Macbook air M1 - will 2018 or 2019 matlab releases work?
See this Answers post.

5 years ago | 0

Answered
error with sqrt in Matlab
The sqrt function is not defined for variables of the int64 data type. The square root of an integer value is not necessarily it...

5 years ago | 1

Answered
ode45 too many input arguments
Let's check if you're using the ode45 function included in MATLAB. What does this function show? It should show just one functio...

5 years ago | 2

Answered
varfun applied to table not recognising equal values
Are you sure the values are equal? They could be displayed as the same value without the stored value being the same. dt1 = dat...

5 years ago | 0

| accepted

Answered
How to change figure properties for all figures in MATLAB?
You can set default property values for graphics objects that are created in the future. Changing the defaults will not change t...

5 years ago | 0

Answered
How to do a same function on variables with similiar parts in their names?
let's say we have variables named as: Time_p1 and Voltage_p1 Time_...

5 years ago | 0

Answered
Curve fitting real functions
There is a collection of library models that can be used with functionality in Curve Fitting Toolbox. One type of model included...

5 years ago | 0

| accepted

Answered
+ or - Bias Based on < or >
I suspect at least one of AccelLateral_PT and AccelLateral is not scalar. From the documentation page for the if keyword: "An ex...

5 years ago | 0

Answered
How to store functions in a array
The anonymous functions do "remember" the value the variable i had when they were created, even if they don't show it. If you wa...

5 years ago | 1

Answered
Coupled system of ODE's using ode23
There are a couple problems and at least one area for improvement for your code. I'll be referring to several sections of the do...

5 years ago | 0

Load more