Respondida
How to fix the large and mad fractions when dealing with symbolic vars
Symbolically, use vpa or double or use the sympref function to change the FloatingPointOutput preference. Numerically, if you w...

casi 4 años hace | 1

Respondida
Why is my table displaying 1x1 in workspace but displays actual values in command window?
You're creating a timetable whose elements are tables. If you want to change a table into a timetable instead take a look at the...

casi 4 años hace | 0

Respondida
How to subtract ?
A=[0 1 2 3 4 5 6]; B = 12; C = B-cumsum(A)

casi 4 años hace | 3

Respondida
error when I try to open a file to edit
Do you have a function you've created named settings.m? Does the command below show just one item (in a subdirectory under toolb...

casi 4 años hace | 0

Respondida
how can i change the value of a variable with a slider in matlab designer?
Rather than changing the value of a fixed variable I would likely retrieve the Value property of the slider object whenever I ne...

casi 4 años hace | 0

Respondida
MPC toolbox computation time
If you're trying to analyze the performance of your Simulink model (to identify bottlenecks?) consider using Simulink Profiler.

casi 4 años hace | 0

Respondida
I wan to display an image of size 512x512x150 using matlab.
Take a look at the tools listed in the Volume Visualization section of the documentation.

casi 4 años hace | 0

Respondida
why my conditional function is not what I expected?
if X>=0 & X^2+Y^2<4 From the documentation for the if keyword: "if expression, statements, end evaluates an expression, and exe...

casi 4 años hace | 1

Respondida
Why isn't my figure consistent? It keeps changing every time
Here's one line of your code. I've put it in block comments so MATLAB Answers won't try to execute it, since I have other code l...

casi 4 años hace | 0

Respondida
Matlab coder support for fitdist
In general we don't comment on future plans. I recommend that you submit this as an enhancement request to Technical Support. If...

casi 4 años hace | 0

| aceptada

Respondida
imhist and histogram giving different results
I suspect that imhist and histogram are just using different algorithms to select the bin edges in the case where you only speci...

casi 4 años hace | 0

Respondida
How to change folders in MATLAB App Designer ?
I would advise you to use fullfile to assemble your file paths rather than concatenation. I'd also be wary about assuming that p...

casi 4 años hace | 1

Respondida
Issue with N body problem using ode45
Are you certain on those satellite masses? Looking at Wikipedia the mass of the Great Pyramid of Giza is 6e9 kg. Are these satel...

casi 4 años hace | 0

Respondida
How to convert column datetime (yyyy-mm-dd HH:MM:DD.000) into MJD and decyear?
According to Wikipedia the modified Julian date is the number of days since November 17, 1858. It is also the Julian date minus ...

casi 4 años hace | 0

Respondida
Error using the 'square' interpolation method in interp1 function
I don't believe there was ever a 'square' interpolation method in interp1. But the input argument checking in much older version...

casi 4 años hace | 2

Respondida
What is the legal status of code examples on mathworks.com?
Please contact Customer Service for an official answer to legal questions about MathWorks examples.

casi 4 años hace | 1

| aceptada

Respondida
how to display newline
If you're using release R2016b or later you can use the newline function, perhaps in conjunction with a string array. s = "appl...

casi 4 años hace | 5

Respondida
I cannot use "binornd" or "random" function
Both binornd and random are functions in Statistics and Machine Learning Toolbox. Do you have this toolbox installed and license...

casi 4 años hace | 0

| aceptada

Respondida
Issue with finding the indices of the minimum element in a 3-Dimensional Array
Use the 'all' dimension argument and the 'linear' index argument to obtain the linear index of the maximum of the array consider...

casi 4 años hace | 1

Respondida
I don't understand the behavior of discretize
The calculated edges make no sense, and the output is clearly bins of non-uniform width. No, in that example the bins are unifo...

casi 4 años hace | 0

Respondida
How to get user homepath?
Does getenv do what you want?

casi 4 años hace | 0

| aceptada

Respondida
function in a script file
You cannot define a function inside an if statement. You can define a function in a script or function file outside of the if s...

casi 4 años hace | 0

Respondida
Creating funcing in spesific formats
Take a look at the format function.

casi 4 años hace | 0

Respondida
Where is plotSlice?
How are you calling plotSlice? According to the documentation page plotSlice requires its input to be a "Linear regression model...

casi 4 años hace | 0

| aceptada

Respondida
How to write an quadratic.m function
I assume you've saved this in a file named QuadraticEquation.m. If so you just need to rename the file to quadratic.m and ideall...

casi 4 años hace | 0

Respondida
Remote matlab running: changing folder and running script
Instead of piping the contents of the file to MATLAB, use the -batch or -r startup options in conjunction with the -sd startup o...

casi 4 años hace | 0

| aceptada

Respondida
Renaming .mat file
Use the movefile function.

casi 4 años hace | 1

| aceptada

Respondida
GA - objective and constraints have to run the same expensive function
One potential solution would be to memoize your expensive function, pass the memoized function into your objective and constrain...

casi 4 años hace | 0

Respondida
Plotting 2D contours syntax
I am mainly concenred with having the "dot" after the variable. The dot is not associated with the variable, it's associated wi...

casi 4 años hace | 0

| aceptada

Cargar más