Answered
Unable to called a function
If you're using release R2021b or later, consider using the ode78 function that is part of MATLAB as of that release. If that i...

2 years ago | 0

Answered
opening .m file results in "index exceeds the number of array elements"
How are you trying to open the file? Are you calling open or edit with the name of the file as inputs? If so, make sure you don'...

2 years ago | 0

Answered
App running slowly after some time
As J stated, without seeing the code it's going to be difficult or perhaps impossible to offer any concrete suggestion. But from...

2 years ago | 0

Answered
For Loop Increment Array
I wrote the code according to my lesson but it keeps inserting a 0 between each number in the array. It doesn't so much insert ...

2 years ago | 0

| accepted

Answered
What About My Matrix Makes eig Inaccurate?
N = 30; f_matrix = zeros(N, N); even_sum_matrix = zeros(N, N); odd_sum_matrix = zeros(N, N); for t = 1:N for s = 1...

2 years ago | 1

| accepted

Answered
Need help to solve with ncmlogo.m
Let's look at the text of the error message. Incorrect use of matlab.graphics.chart.primitive.Contour/setZDataImpl Z must be a...

2 years ago | 1

| accepted

Answered
Unhelpful error message: Conversion to matlab.ui.control.Table from table is not possible.
Please send this enhancement request to Technical Support directly using this link.

2 years ago | 0

| accepted

Answered
Argument validation for class methods
The class specification of the obj argument seems superflous and should be self-evidently true. Not necessarily. The first inpu...

2 years ago | 0

| accepted

Answered
How can I apply data in function?
I'm not sure I understand your question. Are you asking about how to pass input arguments into a function? If so see this docum...

2 years ago | 0

| accepted

Answered
Solving unknown matrics to the power 20
p = [1 0 0 0 0 0 0]; R = [9; 8; 7; 6; 5; 4; 3]; CR = [0.45]; RHS1 = CR./(p*R) Did you perhaps mean to take the outer product...

2 years ago | 0

Answered
How to use the class of Interleaved ADC.m?
Do either of these two examples (example 1, example 2) provide the information you seek about the functioning of the Interleaved...

2 years ago | 0

Answered
I am trying to figure out how to use writetable instead of xlswrite, but the feature is converting my numbers to text. Headers are text.
Don't concatenate Excel_head and Excel_out together. Store them as separate table variables. load patients; LNS = string(LastN...

2 years ago | 0

Answered
How to measure time of matrix multiplication in matab?
As stated on this documentation page, "Sometimes programs run too fast for tic and toc to provide useful data. If your code is f...

2 years ago | 0

Answered
Fill colour in a scatter plot
This wasn't an option when the question was originally asked, but if you're using release R2023a or later you could use xregion ...

2 years ago | 1

Answered
Difference between %d and %f?
If you want to print integer values, you probably want to use %d. If you want to print non-integer values, you probably want to...

2 years ago | 2

Answered
viscircles function generates an error message
I'm guessing you've created your own line.m that's taking precedence over the line function that is part of MATLAB. To check thi...

2 years ago | 0

Answered
Is there a way to check code generation compatibility for a mlapp file?
By "code generation" do you mean generating C or C++ code using MATLAB Coder? I'm fairly certain that's not going to work, as it...

2 years ago | 0

| accepted

Answered
simulink online not working
What does "the drag options cannot be used" mean in this context? Do you receive warning and/or error messages? If so the full ...

2 years ago | 0

Answered
I have a MATLAB 2022 code that used the poly.intersect function--I can't find in R2024 and need a workaround
Please don't start a new question that duplicates one that already existed. Add comments to the one that already existed. I don...

2 years ago | 0

Answered
how to solve coding issue
Just looking at your first for loop there are several problems or suggestions. for i=14:22 figgcf=figure(i); This line cr...

2 years ago | 0

| accepted

Answered
Generating Multivariate Polynomial Coeffients with known Constants
See the Multiple Regression section on this documentation page for an example you can adapt to your equation. Make sure you use ...

2 years ago | 1

| accepted

Answered
jsondecode error occurring while running the quantum computer
Please see Bug Report 3241896.

2 years ago | 1

| accepted

Answered
ismember returning false for 0.6000 == 0.6
This behavior is a consequence of floating point arithmetic. See this Answers post and the "Avoiding Common Problems with Floati...

2 years ago | 2

| accepted

Answered
The input was too complicated or too big for MATLAB to parse.
What exactly did you expect this section of code to do? OOS_strum=OOS_strum(:,b);lucadrive-------------------------------------...

2 years ago | 0

| accepted

Answered
Calling subclass functions to manipulate inputs for superclass constructor?
I have a user-created subclass bar < handle. Don't call your class bar. It already has a meaning in MATLAB. Looking at the bod...

2 years ago | 0

| accepted

Answered
Logic statement error checking an array within a cell within a table
Let's break this line of code down into pieces. I've commented it out so I can run code later in this answer. % if 1 == ismembe...

2 years ago | 0

Answered
Maximum variable size allowed by the program is exceeded. FOR OCDM MODULATION
Since: num_ModemOrder = 64; % Oder da modulaQAM This line of code (which I've commented out since it's not going to work and ...

2 years ago | 1

| accepted

Answered
I would like to save each Thex array created in each loop as its own array. How can i create a variable that has its name adjusted with each loop and saves each loop result?
Can you dynamically create variables with numbered names like T1, T2, T3, etc.? Yes. Should you do this? The general consensus ...

2 years ago | 0

Answered
Incorrect number or types of inputs or outputs for function solvepde.
When I run your code, tmodel is a pde.ThermalModel object but the solvepde function is defined only for pde.PDEModel objects. p...

2 years ago | 0

| accepted

Answered
Single Plot Command is Creating Numerous Legend Entries
From the documentation for the plot function, in the description of the X input argument: "Alternatively, specify X and Y as mat...

2 years ago | 0

Load more