Respondida
Difference between integral and cumtrapz.
They produce the same result if you let them. Try something like this -- x = [-10:0.01:10]'; fx = @(x) x.^2; for k = 1:nu...

5 meses hace | 0

| aceptada

Respondida
Error "Array indices must be positive integers or logical values" occurs at the line [row1, col1, s1] = ind2sub(size(chi_coeff), idx1);
My guess is that you have a variable names 'size' and that is throwing the error. Run this to test that hypothesis: which s...

5 meses hace | 2

Respondida
Title issues when plotting
Create everything as a string array -- InputSheet = "Plate #1"; Grain{1} = 42 degsign = string(char(176)); n = 1; T_oQlast...

5 meses hace | 0

| aceptada

Respondida
What is the cause of strange "spike" artifacts after IFFT?
The signals are approximately the same lengths in time, however 'Zoom1' has a significantly higher sampling frequency than 'Zoom...

5 meses hace | 0

Respondida
Please help me to run the surface figure from the attached code
The error is because you are missing a multiplication operator dy(2) = (((rhot/mut)*(a*(muf/rhof)^0.5*(E*F+E^2)+a*(muf/rhof)*w*...

5 meses hace | 0

| aceptada

Respondida
No results from calculations in the command window
I am not certain that I fully understasnd your problem. MATLAB functions have their own workspaces, so variables local to the...

5 meses hace | 0

| aceptada

Respondida
tfest() failed with higher order
One way to estimate the system order with reasonably accuracy from the output signal itself is to calculate the Fourier transfor...

6 meses hace | 1

Respondida
Plotting Set of Inequalities
It is difficulf for me to interpret what you want to plot. One way to 'include' an area of inequality in a plot is to use the...

6 meses hace | 0

Respondida
Matlab freezes on startup
That it opens dos.m in the Editor and then freezes could indicate that your startup.m file is telling it to open that file in th...

6 meses hace | 1

Respondida
How do I turn off the LaTeX interpreter per line in my title within MATLAB?
Probably the easiest way to do what you want would be to 'escape' the underscore lines using backslashes (\) -- figure title([...

6 meses hace | 0

Respondida
Change width of 2 colorbars in tiledlayout
I am not certain whst result you want. This seems to work -- img_sos = rand(64); img_oar_pixel = rand(64); img_oar_block ...

6 meses hace | 0

Respondida
How to extract ridges from Time-Frequency transform?
It would help to have your signal. One option could be pspectrum with the 'spectrogram' option. Plot it as a surface, then...

6 meses hace | 0

Respondida
Calculate the Standard Deviation based on multiple conditions
It would definitely help to have the data, or at lest a representative sample of it. One option would be to use the function, ...

6 meses hace | 0

Respondida
compiled matlab script where incorrect variables are passing
The '49' is the ASCII code for '1' -- Q = double('1') Mystery solved! You may need to change parts of your code, or perhap...

6 meses hace | 0

| aceptada

Respondida
How to project a line on a surface?
Perhaps something like this using the scatteredInterpolant function -- x = linspace(-3, 3); y = linspace(-4, 4); [X,Y] = ndg...

6 meses hace | 1

Respondida
How to write a timetable to excel with rowtimes as dates without times?
That is likely a problem with Excel. MATLAB writes the timetable correctly -- m = (1:3)'; dates = datetime(2025,m,15) tt ...

6 meses hace | 0

| aceptada

Respondida
Time-domain response from FRF shows unexpected growth (damped system)
I can make it work by using conj on the first half of 'displ_2' and concatenating that with the original 'displ' vector. Try ...

6 meses hace | 1

| aceptada

Respondida
Error in step size and i dont know why. I need help..... please.
The warning simply means that ode113 has encountered a singluarity in one of your differential equations. It is not obvious to ...

6 meses hace | 0

Respondida
Blurry and hazy lines in matlab plots.
One option could be to upgrade to 24.04. (I have not had problems similar to the ones you are reporting using 24.04, although m...

6 meses hace | 0

Respondida
How to fill in the area under the curve
Perhaps something like this -- clc clear all; x=[0.00 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.10 0.11 0.1...

6 meses hace | 0

| aceptada

Respondida
How i crop the image using image processing?
Your data are not easy to work with, and the scribe line yu added does not help! I needed to get into other plot types and do...

6 meses hace | 0

Respondida
Cannot install Matlab 2006b on my Windows 11 laptop
See System Requirements - Release 2006b That should tell you all you need to know about the reasons that will likely never wor...

6 meses hace | 1

Respondida
Using sgolayfilt in derivative analysis of absorption images
The sgolayfilt function is used in signal processing of one-dimensional signals, not image processing of two-dimensional arrays....

6 meses hace | 0

Respondida
I am trying to fill in the area between these two curves.
Perhaps something like this -- clc clear all Duty = [0 2112798.41 4225596.82 6338395.22 8451193.63 ...

6 meses hace | 0

| aceptada

Respondida
How show direction of line inside plot and ?
I am not certain what you want. My best guess is that you want smaller arrows in the last two figures. The fifth argument to q...

6 meses hace | 1

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

6 meses 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,...

6 meses 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...

6 meses 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...

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

7 meses hace | 1

| aceptada

Cargar más