Answered
Converting from floating point to fixed point.
The Fixed Point Toolbox fi() can be used to create a variety of fixed point formats. If you need to match a particular hardwa...

2 dagar ago | 1

Answered
Is there a way to simulate a struct with a array?
RTC_C_Calendar = zeros(Rows, 7,'uint32'); Now create variable names like dayOfWeek = 4; and then you can index RTC_C_CAL...

3 dagar ago | 0

Answered
Unrecognized function or variable 'max'.
Somewhere in that function, or in a function that the function is nested within, you assigned to a variable named "max". In doin...

3 dagar ago | 0

| accepted

Answered
Hello all, I am getting an error "Dot indexing is not supported for variables of this type."
I do not get that error when I test with R2022b on my system. Which MATLAB release are you using? I did have to make some chang...

3 dagar ago | 0

| accepted

Answered
How can I use "Epoch" as a variable?
https://www.mathworks.com/help/deeplearning/ref/nnet.cnn.trainingoptionsadam.html#d124e171093 OutputFcn is defined as requirin...

3 dagar ago | 0

Answered
How to assign filtered data of tables to new tables and then store them into a data structure?
tab_L1_DV_min(idx_cand_L1,:) = cand_cond_L1(cand_cond_L1.("DV_inters(km/s)")== min(cand_cond_L1.("DV_inters(km/s)")),:); ...

3 dagar ago | 0

| accepted

Answered
Why is my loop not running? (Error using / Matrix dimensions must agree)
cp(1) =(pd*1000)*(M)/((Ru)*(Tp(1)+273)); %[...] cp(i+1) =(p*Kr(i+1)*1000)*(M)/((Ru)*(Tp(i+1)+273)); cp is a matrix. B(i) = (...

3 dagar ago | 0

Answered
how to compute random??
while abs(A-0.5)>=tol n=n+1; n=rand; end n appears to be your counter. But you are overwriting n with a random numbe...

3 dagar ago | 0

Answered
Reading txt file, finding each string extracting info
If you have the text all within one long string, S, then it will need to be split. But if you used SS = readlines() then you can...

3 dagar ago | 0

| accepted

Answered
How to create a table from strings and numerical data?
Provided that you already initialized YourTable with variable type string for the first variable and cell for the second variabl...

3 dagar ago | 0

Answered
How can I call a value in side the a function which is already evaluated.
It is not possible to do what you want to do using eval(). You will need to rewrite your code.

3 dagar ago | 0

Answered
Error Using Abs matlab function: check for incorrect argument data type or missing argument in call to function 'abs'
abs is not supported for optimization variables. However, sqrt and squaring are supported.

3 dagar ago | 0

| accepted

Answered
Can MATLAB 2020b run on a Surface Pro X or Pro 8
Yes MATLAB should run on the Pro 8. It will not run on the SQ2, or at least not natively; it certainly would not be supported...

4 dagar ago | 0

| accepted

Answered
How to convert a sym variable to an ordinary variable?
symbolic variables can be converted to numeric only if they have no unbound variables and all expressions with bound variables (...

4 dagar ago | 0

| accepted

Answered
Looping through object array, possible to get an iterator to index into the object array?
When you "for" name=array then matlab iterates over the columns of the array, setting the variable to each column in turn. So tm...

4 dagar ago | 0

Answered
Why am I not getting output in the combinations of salts field?
You assign string into C and copy that to combination of salts, and then put that as the second entry in the cell. The cell gets...

4 dagar ago | 0

Answered
how can i extract A= rand([3.85 9.22],5,1) without getting an error
rand(SIZE) * (UPPER - LOWER) + LOWER

4 dagar ago | 0

Answered
Simplifying a symbolic expression
You are trying to find the symbolic roots of a degree 5 polynomial. It does not happen to be one of the quintic polynomials that...

5 dagar ago | 0

Answered
How can I change my username?
The first thing to do is run the Deactivation executable that you will find in your MATLAB installation directory. Then, change...

5 dagar ago | 0

Answered
Legend for multiple plots varying parameters
% matlab and maple for theta plot for different xi values figure subplot(2,1,1) hold on for ixi = 1:2 xi_part = "xi = "...

5 dagar ago | 0

| accepted

Answered
Wcompress for 1D data
but i notice that the size of the data file after and before the wdencmp is the same, What you are writing to the file is the r...

5 dagar ago | 0

| accepted

Answered
How to permute elements of jth column of a matrix iteratively
A=[1,2,3 ; 7,8,9 ; 13,14,15] perms_of_(A) function perms = perms_of_(A) [rows, cols] = size(A); perms = repmat(A, ...

5 dagar ago | 0

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
Error in cell2mat (line 46) M(i,j) = C{i,j}; That line of code does not exist in Mathworks cell2mat, at least not ...

5 dagar ago | 0

Answered
please help me for , create a plot of the two functions sin(1.5x) and cos(2x) from 0 to 4pi
y2=cosd(2x); There are absolutely *no* places in MATLAB that permit implicit multiplication. If you want to multiply two th...

5 dagar ago | 0

Answered
Unwanted items showing up in plot legend
Record the handle of all scatter() calls in an array. Pass that array to legend()

5 dagar ago | 0

| accepted

Answered
Matlab code for solving nonlinear equations
In the general case that could be difficult and time consuming. For example the nonlinear system might be describing Elliptic Cu...

5 dagar ago | 0

Answered
How to solve differential equation including derivative of eigenvalue of tensor?
You need to construct the formula for the eigenvalues of the derivative based on the equation for A. As you have a 3x3 matrix th...

5 dagar ago | 1

Answered
Using regexp to parse plot's LineSpec
Shapes and colors in linespec may be given in full or in any leading prefix of the word, and the parts can be run together with ...

5 dagar ago | 0

| accepted

Answered
load function: how do you to skip lines in ASCII File that generate errors?
No. load() of a text file is documented as only being guaranteed to work for files saved with save -ascii In practice load() ...

5 dagar ago | 0

Answered
Problem in evaluating the value of the derivative of multivariable function
matlabFunction(diff(f1, x), 'vars', [x, y] )

5 dagar ago | 0

| accepted

Load more