Answered
I am trying to write a function that computes CDF of an image, but the output I get is always zero. what am I doing wrong?
I think you should use |histcounts| or |histogram|. Since you want the CDF you'd specify that as the 'Normalization' in your |hi...

8 years ago | 0

Answered
How to plot histogram?
Why not just call the <https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.histogram.html |histogram| func...

8 years ago | 0

Answered
work with huge matrix
Is the orientation of your data fixed? If you can store and work with your data in a matrix with many rows and a few columns (ra...

8 years ago | 0

Answered
title that spans subplots
If you're using release R2018b or later, use <https://www.mathworks.com/help/matlab/release-notes.html?rntext=subplot&startrelea...

8 years ago | 4

Answered
create a similar but bigger polygon
If you're using release R2017b or later, use <https://www.mathworks.com/help/matlab/ref/polyshape.polybuffer.html |polybuffer|> ...

8 years ago | 1

Answered
how to sort values depending on other vector?
If I understand what you've described correctly, you want to |sort| y and break ties among elements in y that have the same valu...

8 years ago | 1

Answered
what is wrong with the directory path?
If you are trying to *define* the function SetFigureSavePath, the first input specified in the definition must be the name of a ...

8 years ago | 1

Answered
How can I displayed a large matrix in an axis?
Are you trying to display a symbolic matrix in a |text| box in a figure window? Try something like: syms a b c x eq = a*...

8 years ago | 0

Answered
Synchronizing timeseries with 'Intersection' not producing correct result
If I had to guess, this is probably the standard floating-point issue. Element 4310 of t1's Time vector and element 4105 of t2's...

8 years ago | 0

Answered
how can i start simulink onramp ?
Are you using release R2018b or later? The <https://www.mathworks.com/matlabcentral/fileexchange/69056-simulink-onramp File Exch...

8 years ago | 2

| accepted

Answered
SUPPOSE I HAVE OUTPUT VARIABLE WAVEFORM IN SUMLINK SCOPE AND I WANT TO KNOW AT WHAT TIME VARIABLE HAS SOME DEFINED VALUE ,VALUE WILL BE DEFINED BY ME ,FOR EXAMPLE AT TIME CURERNT WILL REACH TO 2A VALUE IN SCOPE.
Consider using the <https://www.mathworks.com/help/simulink/slref/comparetoconstant.html Compare To Constant> block or the <http...

8 years ago | 0

Answered
Solve differential equation Systems with ODE45
The variables you define inside your ODE function as each containing one element of the Y input with which |ode45| calls your OD...

8 years ago | 0

Answered
How to reduce writing using cat command?
See the "How to Use the Comma-Separated List" section on <https://www.mathworks.com/help/matlab/matlab_prog/comma-separated-list...

8 years ago | 0

Answered
How to load ODE functions (ie. ODE1, ODE2) to call/reference?
On that video's page, right above the video transcript, there's a link "Related MATLAB code files can be downloaded from MATLAB ...

8 years ago | 0

Answered
I can extract triangulation mesh data from software as ASCI file X,Y,Z or as STL files. How can I read the mesh data and show it in Matlab?
If you're using release R2018b or later, try the |stlread| function <https://www.mathworks.com/help/matlab/release-notes.html?rn...

8 years ago | 1

| accepted

Answered
The way to get a graph in case of discretized system
Use an <https://www.mathworks.com/help/matlab/ref/animatedline.html |animatedline|>. You probably want to determine the final li...

8 years ago | 0

Answered
where is the HDL Coder option to 'Support floating point numbers'?
When I searched the release R2018a documentation for the phrase "'Support floating-point numbers'" <https://www.mathworks.com/he...

8 years ago | 1

Answered
How to draw a stacked subplots that share same X axis?
If you're using release R2018b or later, try the <https://www.mathworks.com/help/matlab/ref/stackedplot.html |stackedplot| funct...

8 years ago | 2

Answered
How to plot multiple graphs with same x-axis?
If you're using release R2018b or later, consider using <https://www.mathworks.com/help/matlab/ref/stackedplot.html |stackedplot...

8 years ago | 4

| accepted

Answered
Convert Adjacency list of graph into Adjacency matrix
How is your data stored? Do you have a matrix or two vectors containing the endpoints of the edges? In this case you can use ...

8 years ago | 0

Answered
Undefined function 'int' for input arguments of type 'double'.
If you're trying to use the int function to turn the result of that division into an integer value, depending on how you want it...

8 years ago | 0

| accepted

Answered
xsticklabel_rotate parameter/value pair arguments
Which release of MATLAB are you using? If you're using <https://www.mathworks.com/help/matlab/release-notes.html?rntext=rotate+t...

8 years ago | 1

| accepted

Answered
Same Load function error for all .slx or .mdl files
Simulink(R) models aren't data to be loaded and passed into |cftool|. They are themselves programs. You could instead <https://w...

8 years ago | 0

| accepted

Answered
What should we do when Text exceeds maximum line length for Command Window display in matlab?
From the messages you've posted, D is an extremely long symbolic expression. While you might be able to read it, I'm skeptical t...

8 years ago | 0

Answered
How can i fill in the vectors gotten from boundary function?
Generate sample data and compute the |boundary|. rng default x = gallery('uniformdata',30,1,1); y = gallery('uniformd...

8 years ago | 0

Answered
Log equation log(x) not plotting correctly
Did you notice the warning you received in the Command Window when you ran this code? Does |real(y_3)| look familiar in the c...

8 years ago | 1

Answered
How I can download lfgauss.m, lfnewton.m, lfybus.m, busout.m, busflow.m?
Searching the MathWorks website for "lfgauss" found two hits. One is this question, the other is <https://www.mathworks.com/matl...

8 years ago | 1

Answered
select a specific part of the graph using the mouse and zoom in and out of region selected by user
It sounds like you want to use the built-in zooming and panning <https://www.mathworks.com/help/matlab/visual-exploration.html v...

8 years ago | 0

| accepted

Answered
Replacing symbolic variable with function input
For your sample code, you don't need to use |syms| at all. function y = TestFunction(x) y = x.^2; end Show an exam...

8 years ago | 0

Answered
how can I take numeric result
Since the resulting symbolic expression does not contain any symbolic variables, just call |double| on it. If later you want to ...

8 years ago | 1

Load more