Answered
Do anyone know how to graph your function in the interval from x=0 to inf
The fplot function allows you to specify the range of x over which you want your function to be plotted. syms x fplot(sin(x), ...

6 years ago | 0

| accepted

Answered
Solution to time and space dependent ODE
See the ode45 function and the example on its documentation page that discusses passing additional parameters into your ODE func...

6 years ago | 1

| accepted

Answered
If else conditionals in matlab app.designer?
Compare: 'ac' == 'ad' % returns a 1-by-2 logical array 'ac' == "ad" % returns a 1-by-1 logical array When you compare two cha...

6 years ago | 1

| accepted

Answered
nlinfit command problem :(
From the error message: "Weights must be a vector of real positive weights ..." Are they? Is dA a vector? Check with isvector. ...

6 years ago | 0

| accepted

Answered
How do I input and solve a system of differential equations in matlab
I recommend you visit the Ordinary Differential Equations category in the documentation. Several of the Topics pages listed in t...

6 years ago | 0

Answered
User inputs for publish
To me, publishing is intended as a non-interactive activity. You should be able to start the publishing process, go get a cup of...

6 years ago | 1

Answered
How does mat2cell work?
Let's try this with a slightly smaller matrix, so you can see what's going on. A = reshape(1:24, [3 8]) Let's slice this into ...

6 years ago | 0

| accepted

Answered
How do I do a Matlab assignment (report)?
Assuming this is homework, you should probably ask your professor about the format of the report they expect you to submit. You...

6 years ago | 0

Answered
I have a question
You did not end the command you executed immediately before calling imshow(d) with a semicolon. I'm guessing that command was a ...

6 years ago | 1

| accepted

Answered
how do I generate new random number every time I run a exe file?
See this documentation page that discusses why random numbers repeat after startup.

6 years ago | 0

| accepted

Answered
How to interpolate under specific condition?
If you were using release R2020b or later, I would recommend calling the fillmissing function with the 'MaxGap' option. I'm leav...

6 years ago | 1

Answered
Different results for the same equation
lambda(1) is displayed the same as lambda(3) but its value is not identical to the value of lambda(3). A = [-10 10 -15; 10 5 -3...

6 years ago | 0

Answered
Plotting a random walk step by step
You're adding a new line to the axes each time you want to put a new point down. That's numberOfWalks times stepsPerWalk differe...

6 years ago | 0

Answered
Error with validate attribute
Nowhere in your message did you show the error you received. Please show all the text displayed in the Command Window in red and...

6 years ago | 0

| accepted

Answered
calculate a grade of students
%purpose is showing grades of 102 students and assign a letter grades %the grades will be random numbers between 0 to 100 clc;...

6 years ago | 1

Answered
Unit testing with externally configurable parameters.
Write a parameterized test whose parameter is the port name. Inject a value for that parameter into the test when you create the...

6 years ago | 0

| accepted

Answered
C++ to matlab, anybody can help?
Are you trying to solve the same type of problem the matchpairs function does?

6 years ago | 0

Answered
Ploting a Histogram with two data sets (One data set with respect to the other).
Do you want a 2-D histogram? x = [-9.3185, -9.2809,-9.2079,-9.1043,-9.1989,-9.1040,-9.1865,-9.0970,-9.0852,-9.0967,... -9....

6 years ago | 0

| accepted

Answered
square root of pi
I would have both the Area and Diameter properties depend upon a third (maybe public, maybe internal) property. Setting either A...

6 years ago | 0

Answered
Create datetime from two columns of a table
I would use synchronize for this task. Let's start with some table data. v = (0:9).'; datePart = repmat("02-01-20", 10, 1); t...

6 years ago | 0

Answered
How do you pass a variable between two different matlab apps
Have you tried following the procedure shown on this documentation page?

6 years ago | 0

Answered
Changing the initial variables when passing into an ode45 solver
I would call the ODE solver three times. First, solve over the time span [0, 20]. Next, use the final value from that first OD...

6 years ago | 0

| accepted

Answered
Only the real part of the complex number is displayed
I believe you're using the bank display format (format bank) which does not show the imaginary parts of numbers. What would $4.5...

6 years ago | 1

| accepted

Answered
Error: Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters
When you define a function the inputs must be specified as variable names in the definition. [Slight oversimplification, but goo...

6 years ago | 0

Answered
Colors in Matlab as a vriable
Do you want your users to select colors by name or by appearance? If the latter use uisetcolor.

6 years ago | 0

Answered
Location of plot for subplot(2,2,3)
For a subplot(2,2,3), the plot is located in 3-rd position in 2x2 matrix form. Up to now the plot is placed in the lower left c...

6 years ago | 0

Answered
Portable version of Matlab
Two other options that I believe did not yet exist when this question was originally asked in 2015 are MATLAB Online and MATLAB ...

6 years ago | 0

Answered
f(x) is different of f(value of x)
The value stored in an array is not necessarily the same value that is displayed. Right now Forbes magazine lists the net worth...

6 years ago | 0

Answered
I can't install Matlab on my M1 Mac mini.
See this post.

6 years ago | 0

Answered
Conditional with time in ode45
Solve the system from time t = 0 to time t = 300 with the first value of upsilon. Use the value of the solution at t = 300 as th...

6 years ago | 1

Load more