Answered
How can I change the interval on the y-axis?
You can use the yticks and yticklabels functions to control the locations of the ticks and the labels used for those ticks. x =...

5 years ago | 0

Answered
Hwo to normalize a Matrix ?
Take a look at the normalize function.

5 years ago | 0

Answered
Help using a class method as an objective function for fmincon does not work
func = @(x)objectiveFunction(obj, x) x0 = [1,1,1]; [x,fval,exitflag,output] = fmincon(@func,x0,A,b,Aeq,beq,[],[],nonlcon,optio...

5 years ago | 1

| accepted

Answered
How to access Matlab projects by " View Matlab commad " ?
Are you using release R2021a or later? The Release Notes indicate this example is new in that release. If you are using release...

5 years ago | 0

| accepted

Answered
Maximum Lifetime of old Matlab Versions & Limitations of availability due to licenses
For an official answer to the questions you've asked please contact your sales representative or Technical Support using the Con...

5 years ago | 0

Answered
how to combine 8-bit binary to form a 16-bit binary
Take a look at the typecast and swapbytes functions. format hex x = uint8([192 168]) y = typecast(x, 'uint16') z = swapbytes...

5 years ago | 0

Answered
Is there any tool available in MATLAB to make project repository and to trace changes in the developed simulink models/matlab coding?
See this section in the documentation for MATLAB and this section in the documentation for Simulink.

5 years ago | 0

Answered
toolbox dependency on other toolboxes
Almost all products depend on MATLAB. This page list product requirements for the latest release. Sometimes products recommend h...

5 years ago | 0

Answered
Convert final grade letter into categorical array.
I would make a vector of grade numbers then use discretize to create a categorical array from that vector of grade numbers. See ...

5 years ago | 0

Answered
Animated data-tip or xline?
Rather than deleting and recreating the line, just update its properties. x = 0:360; y = sind(x); plot(x, y); h = xline(x(1)...

5 years ago | 0

| accepted

Answered
How to make this function in Matlab
See the integral function.

5 years ago | 0

Answered
how to call odefunction from classdef
With the way you've written this at least one of the inputs to ode_function must be a plactice object. ode45 won't call your fun...

5 years ago | 0

| accepted

Answered
how to set up a function involving integrals integral bounds
The integral function is for numeric integration. The int function is for symbolic integration.

5 years ago | 0

| accepted

Answered
improving the creation of subpolygons
Divide visually or computationally? big = polyshape([0 10 10 0 0], [0 0 10 10 0]); p = repmat(big, 5, 5); % Preallocate edges...

5 years ago | 0

Answered
download the text of license agreement
If you have MATLAB installed, see this Answer. If you don't, when you download the installer one of the files that is downloade...

5 years ago | 0

Answered
How to use ode solvers inside while/for loops for animation?
If you want to plot the solution of the system of ODEs while it's being solved, use the OutputFcn option in the ODE options stru...

5 years ago | 0

Answered
How to use multiple function's solutions as variables in other functions
If you need to evaluate the solutions of those ODEs at different times than ode45 returned (which is how I'm interpreting "so th...

5 years ago | 0

Answered
How to launch the installation of the executable file of matlab in linux ?
Run the install command in that directory ./install Then follow the prompts. If you need assistance understanding any of the s...

5 years ago | 0

Answered
Create line between plot points
It depends on how you plotted the points. Case 1: you plotted all the data at once with just the markers x = 1:10; y = x.^2; ...

5 years ago | 0

Answered
Requesting a Networked Named User MATLAB License
For official answers to licensing questions please contact Customer Service using the Contact Support link on the Support sectio...

5 years ago | 0

| accepted

Answered
Looping num2str
An easier way to do this is to use a string array. y = 1:4; x = y + " %"

5 years ago | 2

Answered
count matrix elements in defined intervals by histogram
Use the histogram function (if you want to see the plot) or the histcounts function (if you just want the bin counts.) The 'Norm...

5 years ago | 1

Answered
make an interactive graphic?
Before plotting the ButtonDownFcn works well but after plotting nothing happen. So you did something like this? ax = axes; ax...

5 years ago | 0

| accepted

Answered
OOP: too many interactions between different classes
It's going to be difficult to offer any concrete suggestions with this extremely high level description of your system. Class...

5 years ago | 0

| accepted

Answered
How can I get the alternatives for the functions Not supported by Matlab Coder?
which exist There is no purely MATLAB code equivalent for this. You could probably use file I/O functions in C to check if the ...

5 years ago | 0

| accepted

Answered
How Can I change function butter ??? Do you have correct scripts?
First let's make sure you're calling the version of the butter function you think you're calling. which -all butter Does this ...

5 years ago | 0

Answered
New install 2021a not plotting data
Let's make sure you haven't accidentally written or downloaded a function that is taking precedence over the built-in functions ...

5 years ago | 0

Answered
Is it possible to add fine-grained operator export operations to the "exportONNXNetwork" function in a future release?
Generally we don't comment on whether something requested is planned or being implemented for a future release. [In this case, I...

5 years ago | 0

Answered
Discrepancy between eigenvalues and eigenvectors derived from analytical solution and matlab code.
syms eb ep t V phi H=[ep+V/2 t*phi; t*conj(phi) eb+V/2] [E,v]=eig(H) Let's check if the elements in E and v satisfy the defin...

5 years ago | 0

Answered
Sort a table by two conditions when one column is not unique
Do you need to sort the table or do you need the maximum value of F_H_max for each value of POSITION? Those are two different th...

5 years ago | 0

Load more