Risposto
How to plot multiple time series cell arrays as a shadowed area
Answer 1: See the colororder call. Answer 2: Yes, although it takes a bit of exploring to determine what those curves are. ...

circa 3 anni fa | 1

| accettato

Risposto
Interpolating the indexes of values in a Vector
Use interp1 for this — a = [2 4 6 8 10 12 14 16]; k = 1:numel(a); interpc = @(b) interp1(a,k,b); bvector = [4.5 5 6 14.3]...

circa 3 anni fa | 0

| accettato

Risposto
how can we find the coordinates of more points besides the points automatically generated by Contour in MATLAB?
You can define specific isolines — [X,Y,Z] = peaks(50); figure contourf(X, Y, Z, 'ShowText',1) title('Default Behaviour')...

circa 3 anni fa | 0

Risposto
Changing numeric variables based on symbolic variables in a set of differential equations.
It can, actually, using the vpa function: test1 = vpa(subs(P_lv, V_lv, Y(end, 1)), 8) test2 = vpa(subs(P_C_vp, V_C_vp, Y...

circa 3 anni fa | 0

| accettato

Risposto
How to remove the year from a datetime table column
The ymd function may be worth exploring. EDIT — (18 Sep 2023 at 23:08) Here is an example that also includes a scatter plo...

circa 3 anni fa | 0

| accettato

Risposto
Frequency response from a transfer function?
I assume you intend a bode or bodeplot plot — s = tf('s'); G = exp(-s)/(2*s+1) figure bodeplot(G) grid See the docume...

circa 3 anni fa | 1

Risposto
Adding labels to plots with LaTeX syntax
In the text call, specify 'Interpreter','latex', however the more interesting part of this was (finally) figuring out how to cor...

circa 3 anni fa | 0

Risposto
i want to draw this DOP figure with these specific parametres
This probably represents a multi-exponential decay, because a single exponential doesn’t faithfully reproduce it. I would nee...

circa 3 anni fa | 1

| accettato

Risposto
Resolving errors with Raphson method
My pleasure! The ‘y’ assignment needs to be an anonymous function, if I understand correctly what you want to do. That cha...

circa 3 anni fa | 0

| accettato

Risposto
Is there a way to remove the units in my dataset
I have never encountered a dataset class array previously. (For whatever reason, the datasetfun function does not return a data...

circa 3 anni fa | 0

| accettato

Risposto
Double integration of MPU 6050 data
Without knowing more, one possibility is that the integration of the MPU6050 data includes a constant (possibly an offset from z...

circa 3 anni fa | 0

Risposto
How to fix problem with subplot and for loop
You are plotting seven subplots so you need to make room for them. Try this — clear; clc; load('ver.mat') Time_5=0:0...

circa 3 anni fa | 0

| accettato

Risposto
How to simulate the forced response of a transfer function
Use the lsim function — s = tf('s'); G = (1-s)/(s^2 + 2*s + 1) t = linspace(0, 1E+1, 1E+3); u = @(t) 2*cos(3*t); Gu =...

circa 3 anni fa | 0

| accettato

Risposto
Generating an example noisy sine wave signal
Try this — fs = 16000; % sampling frequency t = 0:1/fs:0.02; % start : time step : end...

circa 3 anni fa | 0

Risposto
Patch Between two curves that are not functions. Crosses over
Perhaps this — x1 = [1 1 1 2.5 5]; y1 = [5 2.5 1 1 1]; x2 = [2 2 5]; y2 = [5 2 2]; figure hold on plot(x1...

circa 3 anni fa | 1

| accettato

Risposto
How do I find the overall model p-value of a multinomial regression model (mnrfit)?
According to the documentation, mnrfit is no longer recommended (as of R2023a), and recommends fitmnr instead. It appears to p...

circa 3 anni fa | 1

Risposto
Checking whether excel file is opened?
The fopen function can return information about MATLAB instances of the open files, however I am not certain that it can go beyo...

circa 3 anni fa | 0

Risposto
how can i resample signals using signal analyzer app
The example in Resample and Filter a Nonuniformly Sampled Signal could be helpful.

circa 3 anni fa | 1

| accettato

Risposto
trying to find which row this specific date time is at in an excel sheet
The ismember function is an option — ValueAtNumRow = datetime('11-Sep-2023 22:25:26', 'InputFormat','dd-MMM-yyyy HH:mm:ss') d...

circa 3 anni fa | 1

Risposto
Scatterplot arrays with different number of elements and tracing the trendline
One option is to reshape the (3x36) arrays into (i08x1) (column) vectors and duplicate ‘M_IRI’ to match by just triplicating it ...

circa 3 anni fa | 0

| accettato

Risposto
Difference between bandpass function and butterwoth bandpass function
I always use the 'ImpulseResponse','iir' name-value pair when using bandpass or its friends. That forces it to design a vewry e...

circa 3 anni fa | 1

| accettato

Risposto
Finding the 'peaks' of a stairway graph
It would really help to have your data (or at least a representative sample of it that demonstrates the problem you want to sol...

circa 3 anni fa | 0

| accettato

Risposto
Reformat and Merge Date and Time columns
For what it’s worth — LD = load('RVdata.mat'); data = LD.data data.Date = data.Date + timeofday(data.TimeHHmmss); data = re...

circa 3 anni fa | 2

| accettato

Risposto
Extract interpolated data from contourf?
The contour functions return (x,y) matrices for each contour, and in all likelihood, the ‘x’ values are not the same for both co...

circa 3 anni fa | 0

Risposto
Average C/No value for each second
It would help to have the data. The best approach will likely be to create a timetable from it and then use the retime funct...

circa 3 anni fa | 0

| accettato

Risposto
Use the correct filter on a signal
Frequency-selective filters do not work that way. (Intrigued by this, I attenpted to design one by taking the -transform of the...

circa 3 anni fa | 0

Risposto
read file txt with strings and numbers
Use readtable or readcell, depending on what you want. There are other options (textscan), however those two are easiest to use...

circa 3 anni fa | 0

| accettato

Risposto
Equation with constants and two variables that are ranges of values
Try this — Beta=(0.0:0.10:1.0); T=(473.15:100:1473.15); BigDeltaPlgH2O = (2.91-0.76*Beta) .* (10^6./T.^2) - 3.41 - 0.41*Beta...

circa 3 anni fa | 0

| accettato

Risposto
how do you offset curves?
Was my answer to your previous post How to invert axes? helpful? In: subplot(2,2,2, 'align'); if you want the time vector ...

circa 3 anni fa | 1

Risposto
How to invert axes?
I believe what you want is Reverse — x = linspace(0, 1); y = exp(-(x-0.5).^2*50); figure plot(x, y) grid figure plo...

circa 3 anni fa | 1

| accettato

Carica altro