Risposto
How to convert idinput signal to analog signal
As I understand lsim, it automatically samples continuous time models using the defined method (or the method it decides to use,...

circa 3 anni fa | 0

| accettato

Risposto
How to expand a symbolic matrix expression?
I am not certain what you intend by ‘expand’. One option could be: sympref('AbbreviateOutput',false); that I added, and an...

circa 3 anni fa | 0

| accettato

Risposto
Staked 3D line chart
Perhaps something like this — x = linspace(-40, 0, 20).'; zv = linspace(2, 4.5, 4); z = repmat(zv,1,3).*exp(0.1*x) + rand(nu...

circa 3 anni fa | 0

| accettato

Risposto
How to find the linear slope of a set of data points on a graph
Perhaps this — T=[0 0.250000000000000 1.14000000000000 2.33000000000000 3.58000000000000 4.76000000000000 5.150000000000...

circa 3 anni fa | 0

| accettato

Risposto
insert one of bar graph "inside" the other
See for example Position Multiple Axes in Figure in the axes documentation for one way to do this. EDIT — (2 Aug 2023 at 17...

circa 3 anni fa | 0

| accettato

Risposto
Overlay and group two (or more) bar graphs (value by value)
Try this — LD1 = load('CountArray_A.mat'); LD2 = load('CountArray_S.mat'); CountArray_A = LD1.CountArray_A; CountArray_S = ...

circa 3 anni fa | 0

| accettato

Risposto
Bessel filter analog to digital
Simply stated, there is no reliable method of digitsing a Bessel filter, and even if you managed to get some sort of result usin...

circa 3 anni fa | 0

Risposto
How can I indicate the period of time in trenddecomp() function when using a timetable input?
Looking at the documentation for trenddecomp, it seems that the period needs to be in the same units as the sampling interval. ...

circa 3 anni fa | 1

| accettato

Risposto
Centering Colorbar and Reducing Label Padding
Changing the position can be a bit more efficient — hcb=colorbar('south'); hcb.Label.String='Colorbar Title'; colorbarpos=hc...

circa 3 anni fa | 0

| accettato

Risposto
How to change the name of a table and its headings?
This should work in R2020b — Interval_of_speed_rpm = randn(5,1); Duration_of_speed_sec = randn(5,1); Time_duration_vehicle_s...

circa 3 anni fa | 0

Risposto
How to remove a single point from meshgrid?
I would use ‘logical indexing’ to simply delete that point — x = linspace(-3,10) y = linspace(-3,0) x = x(x~=0) y = y(y~=...

circa 3 anni fa | 1

Risposto
linear interpolation for the curves
There are missing data, however they are all at the end of the first -time-pressure values. Filling them would require extrapol...

circa 3 anni fa | 0

Risposto
Spectrogram of EEG signal
One approach — Fs = 256; figure spectrogram(EEGsignal, hann, [], [], [], Fs) xlim([0 700]) ...

circa 3 anni fa | 0

Risposto
How to filter signals properly?
The filter is not going to do much actual filtering. Try this — LD = load('sampleSignal.mat'); sampleSignal = LD.sampleSig...

circa 3 anni fa | 0

| accettato

Risposto
How can we compute the given integral using the data rho(x, y, z)
Perhaps using the integral3 function.

circa 3 anni fa | 0

Risposto
Tilted 3D model orientation
The rotate function could be worth exploring. Example — [X,Y,Z] = peaks(50); figure hs1 = surf(X,Y,Z+10); hold on hs2...

circa 3 anni fa | 0

Risposto
Hello I hope you are well I would like to ask you how I adjust the mark values on the X-axis in multiples of 3 or per unit so that the 24 points are observed. Thank you very m
I am not certain what you want. Try this — fig=figure(1); clf; x1 = [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20...

circa 3 anni fa | 0

| accettato

Risposto
Draw and color the intersection between two 3D surfaces?
In that event, the code would go something like this — syms x y z theta S1 = z <= sqrt(x^2+y^2) S2 = x^2 + y^2 + (z-1)^2 <=...

circa 3 anni fa | 0

Risposto
Plotting multiple functions from data stored in arrays.
We do not have the arrays, however an approach using ‘logical indexing’ will probably work here — x = linspace(0, 1, 5000).'; ...

circa 3 anni fa | 0

Risposto
Functions specgram and spectrogram - what does the spectogram' 3rd dimension mean and what unit it has?
The spectrogram output is the power spectral density, so in units of power/frequency, or dB/Hz. It differs in that respect fr...

circa 3 anni fa | 1

| accettato

Risposto
How to solve non-linear equations with integrations?
It is not possible to solve this numerically without substituting numerical values for the known variables. That aside, use t...

circa 3 anni fa | 0

Risposto
Transfer function response using idinput as input signal.
It would help to have the details. Example — num = rand(1,2) den = rand(1,3) Ts = 0.01; sys = tf(num,den,Ts) Range = ...

circa 3 anni fa | 0

| accettato

Risposto
Having issues with plotting a single level contour line on a matrix that has edges
Unfortunately, enough information is missing from the posted code to prevent using it. Getting the individual lines in a cont...

circa 3 anni fa | 1

| accettato

Risposto
How can I find the matrix where column should be specific value?
Use ‘logical indexing’ — A = rand(15,2); B = A(A(:,1)>= 0.5 & A(:,1)<=0.512, :) Experiment with this with your matrix. .

circa 3 anni fa | 0

Risposto
Converting probability distribution plot into a histogram
It would definitely help to have more information, and specifically the code and data that created that plot, in order to experi...

circa 3 anni fa | 0

Risposto
Curve smoothing in MATLAB
One option would be a lowpass filter, assuming that the independent varialb is regularly sampled. First, calculate the Fourier ...

circa 3 anni fa | 0

Risposto
Measure wavelength of a signal using PSD
Try this — figure imshow(imread('Screenshot 202... 16.25.00.png')) T1 = readtable('stan.xlsx') stan_18p3 = T1.stan_18p3; ...

circa 3 anni fa | 0

| accettato

Risposto
Unable to change the height of the barh.
The tiledlayout plots will not let you do that, however subplot will. Try this — figure y=[67 147-67 1073-147 3456-1073 50...

circa 3 anni fa | 0

| accettato

Risposto
Why is my code producing a 0's at the 11th Column
Could it be because that is how you defined it? xi = 0.01:0.01:0.2; pe = linspace(1,1.5,100); p = zeros(length(xi),length(p...

circa 3 anni fa | 1

Risposto
Creating a custom plot layout with data from multiple sources
I am not certain what you want to do. See if the animatedline function will work.

circa 3 anni fa | 0

Carica altro