Answered
how much tax amount i have to pay in favor of sales, use, excise, value-added, or other taxes for buying MATLAB Simulink Student Suite ?
Mathworks Sales does not read these questions. The volunteers who answer questions here do not have access to the license databa...

4 years ago | 1

Answered
How to find derivative equal to 0?
y8diff = @(x8) -(((x8.^2 - 1).*sin(x8 + 0.1) + x8.*cos(x8 + 0.1))./((sqrt(1-x8.^2).*(cos(x8 + 0.1).^2)))); That is, turn it...

4 years ago | 0

Answered
How can i convert galois field integer number to binary bits ??
Suppose the variable is named F then dec2bin(F.x, 3) The .x part the property name used by gf().. I do not know how they...

4 years ago | 0

Answered
How to solve error in odearguments?Full code below is not runnnig.
Every time if 32*(e^2)>abs(x)^1.5 && t > 0 is satisfied, you set a global variable x. That global x is then used in the next ...

4 years ago | 0

| accepted

Answered
fzero in a for loop to solve for two variables
AC = @(A,x) B - 2*A(1) - 5*A(2)*x; That requires that A is a vector or array with two or more elements. Z(k) = fzero(@(A)AC(A,...

4 years ago | 0

| accepted

Answered
Calling function inside function input
z=linspace(0,5,1000);funcion=fun(z);a=1;b=3;tol=0.0001;maxiter=5; Do not do that. Instead do a = 0; b = 5; %to match your li...

4 years ago | 1

| accepted

Answered
show tick label long lat
If your longitudes will never be negative (west) then you can use https://www.mathworks.com/help/matlab/ref/xtickformat.html x...

4 years ago | 0

| accepted

Answered
Simulink Stream I/O
I have a need to communicate with serial devices in an ascii fashion. I was not able to use Serial Config/Send/Receive from the...

4 years ago | 0

Answered
hey every one please help me ,iam begineer in matab how can draw pixel image from vector or matrix ......
%drawing a matrix of pixels matrix_of_data = randi(255, 48, 64, 'uint8'); image(matrix_of_data); colormap(parula) Drawing f...

4 years ago | 0

Answered
How do I access and plot thetadot vs. time from function I have created?
Please see my response at https://www.mathworks.com/matlabcentral/answers/1818985-how-to-work-variables-outside-function#answer_...

4 years ago | 1

| accepted

Answered
Stiff Differential Equation solver (Euler?)
Code for fixed step solvers is at https://www.mathworks.com/matlabcentral/answers/98293-is-there-a-fixed-step-ordinary-different...

4 years ago | 0

Answered
How to correctly define symbolic variables for matrix multiplication ?
The ' operator is conjugate transpose. If your data can be complex then you need to look carefully at whether conjugate trans...

4 years ago | 0

Answered
Create multiple cell arrays that loop for each set of data?
Yes, it is possible, but we recommend against it. Please read http://www.mathworks.com/matlabcentral/answers/304528-tutorial-wh...

4 years ago | 0

Answered
How to proceed on opening a bin/binx file?
.binx files are an extension to XML to provide keywords to describe binary files. The .binx file is XML does not contain the bin...

4 years ago | 0

Answered
If one coordinate of the point is given how to find another coordinate?
Symbolic Toolbox, obscure function that is no longer documented format long g a = 9361; m = 36683; b2 = a^3 + 23698* a + 968...

4 years ago | 1

| accepted

Answered
Which optimisation technique is the best and what is difference between metaheuristics and machine learning?
Suppose that you have a nonlinear function with multiple local minima, and you want to optimize it to find the global optimum. ...

4 years ago | 0

Answered
Constraint problem in Problem-based optimization live task
Notice that when you assign to problem.Constraints, you are asking to execute constraintFcn with those parameters, and the const...

4 years ago | 0

Answered
I have troubles in for loop with 2 variables.
"Therefore I think it should be 29 values but it has 30 values." But you said that when n = 30, x=1,2,3,...,30 -- which is 30 v...

4 years ago | 0

| accepted

Answered
How to read Excel files with unknown number of header rows?
I notice you are using R2019b. Starting with R2019a, you can use readcell . Then you would ask isnumeric(T{2,1}) to determine wh...

4 years ago | 0

| accepted

Answered
Newer Matlab versions assign sequence of plot handle double-values in a code-dependent way
I am not clear on why you would do this, instead of relying on the Children order of the axes? Are you re-ordering the Children ...

4 years ago | 0

| accepted

Answered
Is there a way to solve a system of nonlinear equations without the optimization toolbox (fsolve) or symbolic math toolbox (sym)?
Systems of equations can often be turned into a minimization. A = 4*kappa B = 2*alpha/(rho*c*A) D = -(r^2) % Equations eqn...

4 years ago | 0

Answered
How can I force a MATLAB plot with two y-axes to have 0 at the same height for both axes?
To have the plots have a common origin, you need to adjust the ylim() for one or both plots such that the first value for the se...

4 years ago | 0

| accepted

Answered
is it possible for if/ else if statements to accept multiple string inputs?
if ismember(solid, {'yes', 'YES'}) but consider instead if strcmpi(solid, 'yes') the i in strcmpi means case-insensitive -- s...

4 years ago | 1

Answered
How to work variables outside function
People often ask to be able to get a copy outside the ode function of all of the values they computed inside the ode function. I...

4 years ago | 0

Answered
I have a .txt file that I need to turn into a vector
filename = 'Grades.txt'; %first create an example file example_data = "2 4 3 4"; writelines(example_data, filename); dbtyp...

4 years ago | 0

Answered
How can I add a letter to a column of strings. For example i want all names in the column one to change to this Name T.
%build an example table sourceletters = 'A':'P'; FirstColumn = string( sourceletters(randi(numel(sourceletters), 5, 7))); T =...

4 years ago | 1

| accepted

Answered
linear inequality constrains based on absolute values
x = linspace(-0.005, 0.005, 100); y = linspace(-0.005, 0.005, 101).'; M1 = x + y <= 0.1*abs(x); M2 = x + y >= -0.1*abs(x); [...

4 years ago | 0

Answered
Neural network (NN)
net=newff(minmax(pn),[20,10,1],{'logsig','logsig','purelin'},'trainlm'); You are missing a parameter. The {'logsig'} and so on ...

4 years ago | 0

| accepted

Answered
Im trying to use the integral function without any success...
In the symbolic toolbox, int() and solve() attempt to give indefinitely precise closed-form solutions. If int() is not able to f...

4 years ago | 0

Answered
how can I plot the fourier series of this function by calculating the coeffcients and for different n?
an = zeros(1,n); i = 1 : n; mask = mod(4,i) == 3; an(1,mask) = -2./i(mask) * pi; mask = mod(4,i) == 1; an(1,mask) = +2./i...

4 years ago | 0

Load more