Answered
finding the determinant of a non function without using built-in functions
Your function does not satisfy your stated requirements. All of input, size, ne (the function form of the ~= operator), and disp...

4 years ago | 0

Answered
Unable to resolve the name simulink.compiler.genapp('modelName')
Check the output of ver to determine if you have Simulink Compiler installed. This is the product that contains the simulink.com...

4 years ago | 0

| accepted

Answered
I can't run the software because my username doesn't match the username in the license file. How can I solve this problem?
See if any of the scenarios listed in this Answer apply to your situation and apply the suggestion for that scenario if it does....

4 years ago | 0

Answered
Histogram function plots different colours from those requested
The histogram object has a FaceAlpha property, so that if you overlay two histogram objects you can see the one underneath. If y...

4 years ago | 0

| accepted

Answered
Is it possible to update the text inside other scripts/functions using a separate script?
While you can store the revision history for a file in the file itself, if you're going to build a lot of tools for others to us...

4 years ago | 0

Answered
Why does MatLab subbornly enforces an accessible A4 format width of 17.197916666666664 cm (not 21 cm)???
What is the value of the figure's PaperPosition property? The purpose of that property is to specify the "Figure size and locati...

4 years ago | 0

Answered
How do I use something like 'inputname' to give back name of struct and fieldname supplied?
No. Even if it could, that could be misleading. foo = struct('x', 1); foo(2).x = 3; fun1680729(foo.x, 4) function fun1680729...

4 years ago | 1

| accepted

Answered
Problem using Integral2 for functions only depending on one variable
You can tell matlabFunction exactly what variables the generated function should accept as input arguments. syms x y ansatzf =...

4 years ago | 0

| accepted

Answered
show private and protected methods names of a matlab class
Use the metadata tools provided by MATLAB.

4 years ago | 0

| accepted

Answered
I need to find a way to plug in unknown values into a function I curve-fitted to known data.
You can generate code or export the fit to the workspace. Once you've done that you can evaluate it or perform other postprocess...

4 years ago | 0

Answered
run unit tests in subfolder containing the test files
Try building a test suite using matlab.unittest.TestSuite.fromFolder and then run that suite by calling run on it.

4 years ago | 0

Answered
Why i get problems with index arrays although it seems to have correct Input?
What's the length of your 3-by-13 matrix? A = ones(3, 13); numRows = length(A) % ? This is the correct answer, but not what yo...

4 years ago | 0

| accepted

Answered
Dealing with strings and numbers in a for loop.
Having variables with numbered names like this is a code smell. See this Answers post for an explanation of why they smell and a...

4 years ago | 0

| accepted

Answered
How to Make Sure Command Window Printing Row Vector Without Columns Name in the Whole Screen Not Just Half Screen
Open the Preferences window. In the MATLAB section of the tree, open Command Window. In the Display section of the Command Windo...

4 years ago | 0

| accepted

Answered
Do we have a standard procedure to convert SIMULINK model to HDL code?
Do you have HDL Coder licensed and installed? If so see the documentation and the examples link on that documentation page.

4 years ago | 0

Answered
matlab2021a Computer Configuration Requirements.
See the System Requirements page, which is accessible from the Support section of this site.

4 years ago | 0

| accepted

Answered
Linear System Solve in MATLAB
If you're trying to some the same linear system repeatedly for different right hand side vectors consider using decomposition on...

4 years ago | 2

Answered
The function mqttclient is not found, however Industrial Communication Toolbox is installed.
According to the documentation page this function was "Introduced in R2022a" which is the release after the one you're using, re...

4 years ago | 1

| accepted

Answered
How to write Subscript in MATLAB?
You don't need to explicitly create so many symbolic variables. d = sym('d', [1 10]) y = sym('y', [1 2]) syms u_k a_i A = [0...

4 years ago | 0

Answered
I am trying to install Matlab on my mac but i couldn’t get the activation key. how can you help me please?
Contact the administrator of your license (if you're using your company's or school's license this would probably be someone in ...

4 years ago | 0

Answered
export() live scripts not working
According to the Version History at the end of its documentation page, the export function that will "Convert live script or fun...

4 years ago | 0

Answered
File: bvpfcn.m Line: 1 Column: 23 Invalid use of operator.
When you define a function you need to specify the input arguments as the names of the variables in which the user's input will ...

4 years ago | 0

Answered
How to restrict input to set of sizes in an arguments block?
I don't believe you can do this with the dimension validation alone. Nor would the existing validation functions help. So you're...

4 years ago | 2

| accepted

Answered
Using ode45 within a for loop
While you could solve the problem using a complicated anonymous function and symbolic variables, I'd recommend instead writing a...

4 years ago | 2

| accepted

Answered
Is there any way to display a progress bar in command window while the code is running?
You could try pausing the running file to examine the values of the loop counters to see if you're almost done, barely started, ...

4 years ago | 0

Answered
Can you install and run Matlab on Windows Server 2022
The System Requirements for release R2022a do not list Windows Server 2022 as a supported OS.

4 years ago | 0

| accepted

Answered
How do i use greek symbols?
Variable names must satisfy certain rules in MATLAB. "A valid variable name starts with a letter, followed by letters, digits, o...

4 years ago | 1

| accepted

Answered
Pass parameter to class based unit test
Rather than giving your test class a constructor I'd specify the parameter as a ClassSetupParameter (with some reasonable defaul...

4 years ago | 1

| accepted

Answered
Which solver should I use to solve a square and symmetric, linear system of equations?
You could call linsolve and tell linsolve explicitly that your coefficient matrix is symmetric. If you have a sparse system of ...

4 years ago | 0

Answered
annual, seasonal mean from monthly time series
Consider using groupsummary with the season data as your grouping variable.

4 years ago | 0

Load more