Risposto
Where to find changes in functions in Matlab versions?
See: Release Notes, however that only goes back as far as R2018a. I am not certain that other documentation exists online, alth...

oltre 3 anni fa | 0

Risposto
calculate the maximum of every 24 data in matrices
If the times are in (or can be converted to) datetime arrays, one option would be to transpose the matrix so that the sensors ar...

oltre 3 anni fa | 0

| accettato

Risposto
How do I fill legend on double y axis plot?
Without seeing your code (and your MATLAB version, although I’m not certain how relevant that is in this instance), it’s not pos...

oltre 3 anni fa | 0

Risposto
How to improve speed of interp1 in for loop?
I’m not certain that I follow what you’re doing. However if you know the ‘inputValue’ and you want to find the closest indices ...

oltre 3 anni fa | 0

Risposto
plot function legend is wrong.
The legend is probably picking up the first line plotted, that by default is blue. Perhaps this — figure (55) for i = ...

oltre 3 anni fa | 0

Risposto
Upgrading R2021b to R2023a, Need Instructions
There is no actual ‘upgrade’ involved. Simply download R2023a (choose to create the desktop icon if that is available with your...

oltre 3 anni fa | 0

Risposto
How to remove the horizontal line from my NMEA plot ?
With no file or other information, the problem may be that there is a common value (possibly 0) that separates segments of the f...

oltre 3 anni fa | 0

| accettato

Risposto
i have a syntax error in this expression : Vs+K*(C/(C-(u(1)*u(2)))*u(1))+R*u(1)-A*exp((-B/C)*u(1)*u(2))
Checking it with the Symbolic Math Toolbox, it appears to be correct. The only suggestion I can offer is to use element-wise op...

oltre 3 anni fa | 0

Risposto
The numbers do not appear in standard format despite the writing (format shortG)
One option is to use string arrays — format shortG Mf=6.480554950317725e+03; Cp_sea=3.976; t_out=100; t_in=25; Qu=Mf*Cp_s...

oltre 3 anni fa | 0

Risposto
What does this means?
It returns the elements in from rows 1 and 3 in columns 1 and 2 — G= [ 1 2 3; 4 5 6; 7 8 9]; H= G([1 3], [1 2]) .

oltre 3 anni fa | 0

| accettato

Risposto
ytickformat('percentage') not working with latex interpreter
This: ytickformat('$%g \\%%$') seems to work — figure(1) plot(1:100) ytickformat('percentage') figure(2) % This is th...

oltre 3 anni fa | 0

| accettato

Risposto
Periodogram of my audio file gives magnitudes only below zero
That you can hear it simply means that the sound card is scaling it and amplifying it. (I have no idea what the actual amplitud...

oltre 3 anni fa | 1

| accettato

Risposto
Transform matrices to XYZ
Something like this should work — [Lat,Lon] = ndgrid(lat,lon); LatLonDepth = [Lat(:) Lon(:), depth(:)]; Since I do not know ...

oltre 3 anni fa | 0

| accettato

Risposto
How can I open an Oxfor Instrument Pulsar .fid file in MATLAB?
Use zip or a non-MATLAB version of it to create a zip file that encloses the file you want to read, then upload it here. I hav...

oltre 3 anni fa | 0

| accettato

Risposto
Separate time series data in Individual Months
It’s not necessary to determine the beginning and dne of each month to separate them. This approach uses the ymd function wit...

oltre 3 anni fa | 0

| accettato

Risposto
Plotting X,Y,Z Data
With a bit of help from accumarray, it is possible to separate the traces so that there are no connecting lines — Matrix = rea...

oltre 3 anni fa | 2

| accettato

Risposto
How to merge plots from different scripts
I do not see the attachment. However the easiest way mightr be to save the data from each script to .mat files, and then load...

oltre 3 anni fa | 0

| accettato

Risposto
Is it possible to calculate variating signal frequency?
Theere are likely several ways to analyse this. One option is to use findpeaks to get the distances between peaks. Another i...

oltre 3 anni fa | 0

| accettato

Risposto
When using xline, would it be possible to have the text in one color and the lines in another color?
Doing that in one pass is likely not an option, since there is no way to independently control the text colour. However colouri...

oltre 3 anni fa | 1

| accettato

Risposto
How to add different texts in xline, when using arrayfun ?
Perhaps something like this — fig = figure(); ax = axes(fig); ax.XTick = 1:14; dy = ["S","S","M","T","W","T","F"]; hxl = ...

oltre 3 anni fa | 1

| accettato

Risposto
Plot shows markers, but no lines, no matter what is being plotted
The code is also being run in R2023a, since that just released. If you are using the pre-release version, consider downloading ...

oltre 3 anni fa | 0

Risposto
Compare two CDF distributions
I am not sure that either of those tests would be appropriate for these data. A1 = readmatrix('https://www.mathworks.com/matl...

oltre 3 anni fa | 0

Risposto
Problem adding text to plot, background color doesn't work properly
The line does not through the label. However it is necessary to specify the label in the xline call — xl = xline(0.5,'-','X-L...

oltre 3 anni fa | 0

| accettato

Risposto
How can I get the maximum slope of a curve?
The file is not a .mat file. That problem aside, I would calculate the instantaneous slope as: m = gradient(Cell_Voltage_1...

oltre 3 anni fa | 1

| accettato

Risposto
How to decide order for fir1 band pass filter. Is there any methodology on which basis I can finalize the order to be considered for filter creation.
I usually use kaiserord when I design FIR filters. It calculates the appropriate order as one if its outputs.

oltre 3 anni fa | 0

Risposto
Resample function is not working properly and damaging the signal
I had not noticed the ‘end effect’ problem before (although I use resample relatively frequently, and that is clearly visible i...

oltre 3 anni fa | 1

| accettato

Risposto
How can I put Alaska map as a background behind my contour plots?
You have ‘lat’ and ‘lon’ reversed in the first two arguments to the contourm call. Reversing them — % clear % close all %...

oltre 3 anni fa | 0

Risposto
How to create surface plot from vertical lines?
If you can change that to a series of cross-sections of the propeller blade at various points along its length, the approach in ...

oltre 3 anni fa | 0

Risposto
How can I learn my lisance number
Run the ver function to find the license number. Go to the License Center for other information, and Contact Support if you h...

oltre 3 anni fa | 1

| accettato

Risposto
xline for multiple axes in tiled layout
The ‘ax’ argument to xline has to be a scalar axes handle, so passing a vector of axes handles to it fails. Each nexttile call ...

oltre 3 anni fa | 1

| accettato

Carica altro