Answered
Why do I get non-zero standard deviation in data with no variability?
So for now, Transmats{1} is the same as Transmats{2}, Transmats{3}, and Transmats{4} and it looks like this: They may be disp...

5 years ago | 2

| accepted

Answered
it shows Error: File: lungAnalysis.m Line: 1 Column: 23 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
When you define your function you specify the inputs as variable names. [I'm simplifying a bit, but go with it.] When you call ...

5 years ago | 0

Answered
Working with objects from other classes within MATLAB app editor
The countries variable was created within the workspace of that startupFcn function call. Since it was not returned as an output...

5 years ago | 0

| accepted

Answered
Definite intergral with one variable trying to solve for constant
Let's look at what your function looks like on the interval [0, 2.6] when P is 8000. F = @(x, P) P*x.^2-5000*x.^3./((x/26 + 1/1...

5 years ago | 0

Answered
why matlab 2019a, 2016a doesnt recognize modalfrf?
This function was introduced in Signal Processing Toolbox in release R2017a. Your installation of release R2016a is too old to ...

5 years ago | 1

| accepted

Answered
Strange Behavior of Version
Are you running that in MATLAB Online or in the version you have installed locally on your Windows machine? When I run in MATLAB...

5 years ago | 0

| accepted

Answered
Error while using Polyval
Not all numbers in the vicinity of large values can be exactly represented in double precision. In particular 12345678901234567 ...

5 years ago | 3

| accepted

Answered
How can I put condition in ode solver
Use odeset to create an options structure with the NonNegative option set to the elements of the solution that need to remain no...

5 years ago | 0

Answered
Creating histogram from a datetime vector
rightNow = datetime('now') howLongSinceMidnight = timeofday(rightNow)

5 years ago | 1

Answered
How to use 'if else' in this case?
See the description of the second output from the chol function on its documentation page.

5 years ago | 1

| accepted

Answered
Function error in app designer : too many output arguments
The error message is correct. The private method is defined to return 0 output arguments. function sousElementUnique(app, table...

5 years ago | 0

Answered
please help me with this
This doesn't quite do exactly what you want but it's close. % Define the curve x = 0:0.25:10; y = 50-(x-4).^2; % Plot it ...

5 years ago | 0

Answered
Define new operations for a matrix
You cannot define new operators for the double class, and I would strongly advise you not to try redefining multiplication for d...

5 years ago | 1

Answered
PolarAxes in Matlab App Designer
From the Release Notes it appears support for polaraxes in App Designer apps was added in release R2018b.

5 years ago | 0

| accepted

Answered
Why i get this error
Generally you're going to want to perform arithmetic and/or logical operations on the image data not the image graphics object. ...

5 years ago | 0

| accepted

Answered
How do I plot a circle with a given radius and center?
Another possibility is to approximate the circle using a polyshape with a large number of sides and plot that polyshape. p = ns...

5 years ago | 6

Answered
Accessing subclass methods from abstract superclass
classdef (Abstract) ParentClass %PARENTCLASS Testing properties of abstract classes methods (Abstract = true, St...

5 years ago | 0

| accepted

Answered
ERROR FOR EZPLOT?
The case matters. Change EZPLOT to ezplot in your code.

5 years ago | 0

Answered
Importing histogram count and bin values into a matlab histogram object
I'm analyzing timestamps from a single photon detector. I populate the bins as I go. In 1 second of data collection, I have near...

5 years ago | 0

Answered
How to extract the function from curve fitting tool in Matlab
You can call integrate on the cfit object. See the documentation page for more information.

5 years ago | 0

| accepted

Answered
How to convert data points to time
Make a datetime or duration array and call plot with that as the first data input. v = 1:10; x = datetime('today')+days(v); y...

5 years ago | 0

| accepted

Answered
How to multiply symbolic with numeric?
Call vpa on the result.

5 years ago | 0

| accepted

Answered
Customizing Figures Comprehensive Documentation
Have you read through all the pages in the Graphics category in the documentation?

5 years ago | 0

Answered
How to generate timetable with microsecond accuracy
dt = datetime('now') dt.Format = dt.Format + ".SSSSSS"

5 years ago | 0

Answered
Correct month values for x-axis
If you have date and time data stored as a datetime array just call plot. x = datetime(2020, 1:12, 1); y = (1:12).^2; h = plo...

5 years ago | 0

Answered
How to check the algorithm of the internal functions?
computeDFT is a private function in the same directory as the stft.m file. As such it is intended only be called by code in that...

5 years ago | 0

| accepted

Answered
How can i write this primitive function ?
f= @(x)x^N;%function F=@(x)(x^((N)+1))/((N)+1);% Primitive function Either define N before these two lines or define f and F t...

5 years ago | 0

Answered
Problem when Indexing large integer arrays
If you call flip, fliplr, or flipud as appropriate you don't need to do the indexing yourself. But since this is almost certain...

5 years ago | 0

Answered
Unrecognized function or variable 'addContour'. Why does Matlab not recognize this new function?
According to the documentation page the first input argument to addContour must be a dicomContours object. Is it? Even if you're...

5 years ago | 0

Answered
Generate N random number from weighted groups
groupProbs = [0.3 0.7]; groupVal = rand(10, 1); whichGroup = groupVal <= groupProbs(1); % for more groups, use discretize res...

5 years ago | 0

Load more