Answered
With the new ODE command (matlab 2024a), I'd like to parametrize the ICs and make, for example, x0=[p(1); p(5)] and then compute SENSITIVITIES!
If I understand what you're asking, I think you could just modify the Examine Parameter Sensitivity example on the ode documenta...

2 years ago | 0

| accepted

Answered
Opening a Figure from a Function - Not enough input arguments
This line of code: flowmeasurementfigure.Callback = {@flow_measurement,halfscreensizecentre,figurecolour} % ERROR ON THIS L...

2 years ago | 0

Answered
Discrepancy in functions between MATLAB versions
What does the following command show when run in each of the versions of MATLAB? which -all fit My guess is that you have Curv...

2 years ago | 0

| accepted

Answered
How to insert dash-line in a matlab figure?
You could use the yline function or you could set the axes properties YGrid and GridLineStyle. x = 1:10; y = x.^2; ax = axes;...

2 years ago | 0

Answered
missing "configure for app" in matlab 2019b app designer
According to the documentation page for appdesigner.customcomponent.configureMetadata this function was introduced in release R2...

2 years ago | 0

| accepted

Answered
I'd like to do various things, including controlling the dimensions of the plot box. What I do here with xlim, ylim, and zlim doens't work.
Instead of manually modifying the coordinates, I'd consider using the hgtransform function in conjunction with makehgtform.

2 years ago | 0

Answered
How to process the data that have same row name
Rather than trying to create a table with duplicate RowNames (which as you see from the error message is not allowed) I'd store ...

2 years ago | 1

| accepted

Answered
How to store users input in a file?
You want to open the file not in write mode ('w') but in append mode ('a'). See the description of the permission input argument...

2 years ago | 0

Answered
Adjusting Convex Hull Area
As an extreme example, what is the convex hull of a single point at the center of a pixel? It's the point itself, with size 0. T...

2 years ago | 0

Answered
Matlab equivalent to Java bigdecimal rounding of Half_up?
In release R2022a we added the argument TieBreaker (which can be used case insensitively) to control how ties are broken in roun...

2 years ago | 0

| accepted

Answered
Problem with polyfit command (R2015a)
From the polyfit documentation page: "[p,S,mu] = polyfit(x,y,n) performs centering and scaling to improve the numerical properti...

2 years ago | 2

Answered
Is Lisence "Matlab Basic Package" required to use license "Matlab embedded Coder Package"?
If by "Matlab[sic] embedded Coder Package" you mean the Embedded Coder product, the Product Requirements and Platform Availabili...

2 years ago | 1

| accepted

Answered
How can I customize a built-in Class"HelperOrientationViewer()"
Are you referring to this documentation page? If so use the Copy Command button on that page to copy the command to open the ex...

2 years ago | 0

Answered
The indices for validation and test sets are not being assigned correctly by 'divideind'
Can you confirm you're using the divideind function included as part of Deep Learning Toolbox? which -all divideind When I run...

2 years ago | 0

Answered
how to get variable of function in for loop
Don't call max twice. Call max once with two output arguments and specify 'all' as the dimension over which to operate. That sec...

2 years ago | 1

Answered
Assign column names in a workspace table
Use the renamevars function.

2 years ago | 0

| accepted

Answered
Converting between x,y cartesian variables to angle in symbolic variables
So instead of the Cartesian coordinate form of those points, you want a polar coordinate form? syms x y [th, r] = cart2pol(x, ...

2 years ago | 0

Answered
Is numel() supposed to accept more than one input argument?
If I recall correctly this syntax used to be documented as a way for objects to be able to specify the size of the output that s...

2 years ago | 1

Answered
The solution to the delayed differential equations using the code dde23 represents the solution by the third order Runge-Kutta method or what?
It's not clear to me what information you're looking for. The dde23 function returns the solution to a system of delay different...

2 years ago | 0

Answered
Making use of figure numbers is discouraged – what are your workarounds?
Rather than trying to set the number, why not create an array of figure handles and use the number as an index into that array? ...

2 years ago | 3

Answered
Loss is still larger than 30?
Let's take a look at a few lines of your code. I've commented them out since I want to also run some code and these code snippet...

2 years ago | 0

| accepted

Answered
Fzero function error in MATLAB. Need inputs regarding the ways to combat the error
If Q_rest_Na_Cl is a variable, is b a logical array or does it contain only integer values? If not, you cannot use b to index in...

2 years ago | 0

Answered
function file used with 2 Matrices as input
In your function, you declare it to accept up to two input arguments. Because you use both of those input arguments in the line ...

2 years ago | 0

Answered
Time difference in year between table datetime values and now
Don't use the now function. It returns a serial date number. Use datetime('now') (which returns a datetime) instead. fiveYearsF...

2 years ago | 0

| accepted

Answered
Speed to graph basin of attraction of Newton's method is very slow
A few comments on sections of your code. close all; clc; tic % Adding for purposes of running in MATLAB Answers %Systems of...

2 years ago | 2

| accepted

Answered
Is it possible to assign variables in the workspace to other variables using for loop?
Can you dynamically create or work with variables with numbered names like a_1_1, a_1_2, a_1_3, a_2_1, a_2_2, etc.? Yes. Should...

2 years ago | 3

| accepted

Answered
search interval in datetime
Use the timeofday function to return the time since midnight of each element of the datetime array. T = datetime('today') + ho...

2 years ago | 0

| accepted

Answered
Cell array with adjacents elements by a “from” vector and a “to” vector
What are you hoping to do with this list? Depending on the specific operations you're looking to perform you may want to create ...

2 years ago | 1

Answered
Keep underscore symbol using latex as interpreter
This text call uses _ to make x a subscript of a. text(0.25, 0.25, "Text with $a_x$ and LaTeX interpreter", Interpreter = "late...

2 years ago | 0

| accepted

Answered
How to use speechClient("wav2vec2.0") command
From the speechClient documentation page: "Using wav2vec 2.0 requires Deep Learning Toolbox and installing the pretrained model....

2 years ago | 0

Load more