Beantwortet
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 = ["...

10 Monate vor | 0

| akzeptiert

Beantwortet
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...

10 Monate vor | 0

Beantwortet
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 ...

10 Monate vor | 0

| akzeptiert

Beantwortet
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 ...

10 Monate vor | 0

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

10 Monate vor | 2

| akzeptiert

Beantwortet
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...

10 Monate vor | 0

| akzeptiert

Beantwortet
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...

10 Monate vor | 0

| akzeptiert

Beantwortet
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...

10 Monate vor | 1

| akzeptiert

Beantwortet
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....

10 Monate vor | 0

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

10 Monate vor | 0

| akzeptiert

Beantwortet
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....

10 Monate vor | 0

Beantwortet
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...

10 Monate vor | 1

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

11 Monate vor | 1

| akzeptiert

Beantwortet
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...

11 Monate vor | 0

Beantwortet
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...

11 Monate vor | 0

Beantwortet
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...

11 Monate vor | 0

Beantwortet
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 — ...

11 Monate vor | 0

Beantwortet
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 ...

11 Monate vor | 0

| akzeptiert

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

11 Monate vor | 1

| akzeptiert

Beantwortet
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] ...

11 Monate vor | 0

Beantwortet
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...

11 Monate vor | 0

| akzeptiert

Beantwortet
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...

11 Monate vor | 1

Beantwortet
closed countour around a given point
This will detect and plot all the closed contours (in addition to a second one at level 12 that does not actually meet the close...

11 Monate vor | 0

| akzeptiert

Beantwortet
Legend not working in 2024 as it did in Version 6.1.
Ii cannot get the code to run here. Change the legend call to: legend([hw,hmedw(1),hmeanw(1)], 'Weight','Median','Mean', 'L...

11 Monate vor | 0

Beantwortet
Cell array Filtering when using readlines
Try something like this — % data = % 884×1 cell array data = { ... {[" 190 190.03 190.06 190.09 190.12 ...

11 Monate vor | 1

Beantwortet
I'm having trouble understanding the frequency normalization of the fir1 function regarding how the units match up.
1) The 0 to pi range represents the normalised radian representation of the Nyquist frequency, half the sampling frequency. The...

11 Monate vor | 0

Beantwortet
Full-wave rectified sine wave with gaps
One approach — Fs = 1000; L = 1; t = linspace(0, Fs*L, Fs*L+1).'/Fs; s = abs(sin(2*pi*t)); idx8 = numel(s) / 8; t8 = ...

12 Monate vor | 0

Beantwortet
Combining Similar Time Arrays into a Single Updated Time Array
There are some core MATTLAB approaches for this, depending on the result you want. You would have to convert them to timetabl...

12 Monate vor | 0

Beantwortet
How we can do sub-plot in one graph ?
With respect to adding element-wise operatioons to your code, use the vectorize function. The note says ‘(Not recommended)’ how...

12 Monate vor | 1

| akzeptiert

Beantwortet
Breaking legend into several parts and moving parts as necessary to prevent overlapping graphed data.
I doubt that it is possible to break up the legend or have more than one legend in an axes object. There are a few options yo...

12 Monate vor | 1

Mehr laden