Respondida
Installing MATLAB 2025a in Ubuntu 22.04
I run the MATLAB Installer. This usually works, however it will first stop when it cannot create the installation directory. Y...

más de 1 año hace | 1

Respondida
Trying to do an fsolve via an anonymous function
I exrtracted your code sections and attempted to run it. You need to check the trapz integration. The call to it is correct,...

más de 1 año hace | 1

Respondida
Statistics and ML Toolbox
You may have path problems. Run these from a script or your Command Window -- restoredefaultpath rehash toolboxcache If...

más de 1 año hace | 0

Respondida
3D surf plot for more than two quantities
One problem is thta your surf calls have the wrong syntax. This works. I made the surfaces partially transparent (the FaceAlph...

más de 1 año hace | 0

Respondida
Finding coordinates of a point from bisector of two lines
Sure! Fortunately, I kept the code ... clear close all xq = [-1000 0 -200 -1000 -1000]; yq = [-450 0 -1000 -1000 -450]...

más de 1 año hace | 1

| aceptada

Respondida
Shading an area between two curves symbolically
It is necessary to get the relevant 'x' and 'y' values from the fplot calls first. You can then use them in the patch call. ...

más de 1 año hace | 1

| aceptada

Respondida
Problem istalling ML 2025 on Tower Computer but not Laptop, why?
From the documentation -- Can I use MATLAB Home on 2 computers simultaneously? The MATLAB Home License can only be used on a...

más de 1 año hace | 0

Respondida
how to plot fabric diagram as in the fig
I have no idea what a 'fabric diagram' is, beyond your description. (An Interweb search produced no useful reslults.) Plotti...

más de 1 año hace | 0

Respondida
Error: Inputs must be character vectors, cell arrays of character vectors, or string arrays.
I am not certain what result you want, however for string arrays, you can just use arithmetic operators. Try this -- A = ["...

más de 1 año hace | 0

| aceptada

Respondida
Symbolic integration: error
I ran your code in MATLAB Online. There are some integrands that simply cannot be integrated and give closed-form symbolic re...

más de 1 año hace | 0

Respondida
search text in arraycell
This may be more convoluted than it needs to be, however it has the virtue of returning the desired result. I know of no other ...

más de 1 año hace | 0

| aceptada

Respondida
datetime error in 2025a version
I may be missing something, however it appears that 'My.Date' is already a datetime array. You do not need to do anything to ...

más de 1 año hace | 0

Respondida
Populating a tiledlayout vertically rather than horizontally
One option could be to use the TileIndexing property, and set it to 'columnmajor'.

más de 1 año hace | 2

| aceptada

Respondida
Adding text labels above bars
A lot of aspects of your code co not match the numbers of labels that you have. Adjucting various aspects of it make other aspe...

más de 1 año hace | 0

| aceptada

Respondida
How can I use table() with a variable number of columns?
Something like this seems to work -- data = randn(2,5,4); jj = 1; T{jj} = array2table(squeeze(data(jj,:,1:3)), VariableName...

más de 1 año hace | 0

| aceptada

Respondida
Splitting two nearly overlapping curves
It might be possible, however it would likely require a lot of manual experimentation. I experimented with an approach that i...

más de 1 año hace | 1

| aceptada

Respondida
Can't use MATLAB on fedora 42
MathWorks is having problems (and has been since 19 May). See the Status page for details. It's mostly backup here in the U....

más de 1 año hace | 0

Respondida
Can't Watch Tutorial Videos from Mathworks Website.
It's not your browser. See the Status page for an explanation.

más de 1 año hace | 0

| aceptada

Respondida
Need a tangent line in my plot like the example provided but I cannot seem to do it
Calculate the numerical derivative, find its value at the desired point on the curve, and calculate the tangent line parameters....

más de 1 año hace | 0

Respondida
i can't download matlab in my computer
See the Status page for details. MathWorks is gradually returning to full capacity. It is essentially 'up' in the U.S., howe...

más de 1 año hace | 1

Respondida
Spatial, coloured vectors
The quiver3Dpatch File Exchange contribution can probably do what you want. You will need to use the usual quiver3 argument for...

más de 1 año hace | 1

| aceptada

Respondida
when installing an add on
You have to create the directory using sudo mkdir. I believe that is all that is required. After that, the installatiion shoul...

más de 1 año hace | 0

Respondida
Unable to run Matlab r2017a after installation, not desktop shortcut found even in "all apps" section under settings
There could be operating system incompatibilities. See: Previous Releases: System Requirements and Supported Compilers I...

más de 1 año hace | 0

Respondida
Cannot create or open .m files in Matlab UI.
I doubt any of us on Answers will be able to help you with this. Did your Linux distro update without your knowledge? Do you...

más de 1 año hace | 0

Respondida
Create a 2D plot with irregular axes
The plot function does not care if the data are not regularly sampled. It wil plot them appropriately regardless. Example — ...

más de 1 año hace | 0

Respondida
Remove outliers but be careful with end points
The rmoutliers function does not know that the end points are outliers because it has nothing after them to compare with beyond ...

más de 1 año hace | 0

| aceptada

Respondida
Extracting data from Fourier spectrum
There are File Exchange contributions that could help you with this: Mueller-Stokes-Jones Calculus and Light Polarization.

más de 1 año hace | 1

| aceptada

Respondida
given the function f(x)=X^3 - 6X^2+9X. Find the first derivative of the function of f(x)
Use the polyder function — f = @(x) x.^3 - 6*x.^2 + 9*x; % Anonymouus Function p = [1 6 3 0] ...

más de 1 año hace | 0

Respondida
How can I change timetable to timeseries?
According to the timeseries documentation, it wants the data values as the first argument, and the time values as the second arg...

más de 1 año hace | 0

| aceptada

Respondida
How to expand a matrix and interpolate between values?
This is frustrating. The seconds function should automatically convert the hours to seconds and change the unit as well. T...

más de 1 año hace | 1

Cargar más