Risposto
Error using scatteredInterpolant The input points must be specified in column-vector format.
I do not have your data so I am not certain exactly what the problem is. A relatively easy way to create column vectors is: ...

quasi 3 anni fa | 1

Risposto
Why did the signal get delayed?
I am not certain what you intend by ‘delayed’. You are plotting a cosine curve, and the ‘ii1’ value is defined as being true wh...

quasi 3 anni fa | 1

Risposto
Count values in the given array
Try this — LD = load('matlab.mat'); AA4 = LD.AA4 [UAA4,ix1,ix2] = unique(AA4(:,1)); Zeros = accumarray(ix2, (1:numel(ix2))'...

quasi 3 anni fa | 0

| accettato

Risposto
How to change data stacking order for a single series in bubble charts?
MATLAB plotting functions generally plot in the order specified in the pllotting command, and later objects are plotted ‘on top ...

quasi 3 anni fa | 0

| accettato

Risposto
extracting rows of data
Try this — T1 = readtable('07010000002.txt'); T1.Properties.VariableNames = {'V','I'} minI = min(T1.I)*0.99; maxI = max(T...

quasi 3 anni fa | 0

| accettato

Risposto
fprintf formatting problem with cell and array matrix
Eliminiating the newline character from the ‘Mix ratio’ fprintf statement: fprintf(fileID,' Mix ratio'); produces: ...

quasi 3 anni fa | 0

| accettato

Risposto
MATLAB Tools to Evaluate and Mitigate Sensor Noise
I am not certain that I understand the sort of processing you are doing. Some of the signal noise is broadband, however much o...

quasi 3 anni fa | 1

| accettato

Risposto
Matlab: colorbar of contourplot only for specified contour levels
I cannot get the ticks exactly where I would like them, even doing my best to interpolate them. Perhaps this — [X,Y,Z] = pe...

quasi 3 anni fa | 0

Risposto
I've tried using MATLAB R2023b to generate bode plots and calculate DC gains of transfer function but I keep on receiving an error message: 'Wrong number of input arguments'
Wrong syntax. Use the tf function, not syms for Control System Toolbox functions. Try this instead — s = tf('s'); b =...

quasi 3 anni fa | 0

Risposto
Spectral Analysis of Water Wave Gauge Data
It would help to have the data. Be certain that the independent variable data are regularly sampled, so that the sampling fre...

quasi 3 anni fa | 0

| accettato

Risposto
plot sine wave with exponent
I am not certain what you are asking. Try this — L = 30; % Signal Length (s) Fs =...

quasi 3 anni fa | 1

| accettato

Risposto
How to convert specified time to GMT/UTC?
Try this — DT = datetime({'18-Oct-2023 17:40:00' '18-Oct-2023 18:00:00'},'TimeZone','+05:00') DT_UTC = DT; DT_UTC.TimeZon...

quasi 3 anni fa | 1

| accettato

Risposto
error multiplying datetime (now) by 100 with *
I don’t understand summing a constant — sum(100) That aside, if you want to create a random datetime for a specific parti...

quasi 3 anni fa | 0

Risposto
problem plotting from function call
In general, global variables are not considered good programming practice, principally because the functions they are passed to ...

quasi 3 anni fa | 0

| accettato

Risposto
rotate 3D data
Use the rotate function. It will likely require a bit of experimenting to get it the way you want it. Example — imshow(imr...

quasi 3 anni fa | 0

| accettato

Risposto
How to inclusively extract rows of a large cell array between cells given start and end patterns?
type('sample_input.txt') fidi = fopen('sample_input.txt','rt'); k = 1; while ~feof(fidi) Line{k,:} = fgetl(fidi); ...

quasi 3 anni fa | 1

| accettato

Risposto
How I get area under the curve (AUC) value
The file is not provided, however it is not absolutely necessary for this. Try something like this — D = 0.1*randn(6,12000)...

quasi 3 anni fa | 0

| accettato

Risposto
How to group xlines in legend
Using plot to plot the vertical lines is straightforward — ax = axes; % p = xline(ax, [1 2 3], "g-"); p = plot([1;1]*[1 2 3...

quasi 3 anni fa | 0

| accettato

Risposto
filling missing value using linear interpolate in 2D
This works — T1 = readtable('GreenhouseData.xlsx', 'VariableNamingRule','preserve') VN = T1.Properties.VariableNames; T1(:,[...

quasi 3 anni fa | 1

Risposto
readtable with datetime, format problem
‘How do I properly read the date in the dd/MM/yyyy format?’ You need to tell datetime: DateTime = datetime('12/10/2023 00:0...

quasi 3 anni fa | 1

| accettato

Risposto
Read from text file between header and footer
One option is textscan — type('data.txt') fidi = fopen('data.txt','rt') C = textscan(fidi, '%f%f%f', 'HeaderLines',3, 'C...

quasi 3 anni fa | 0

| accettato

Risposto
How can I solve this nested symbolic function ?
It would be best to abandon the idea of using the Symbolic Math Toolbox here, since it is not necessary. You can do everythin...

quasi 3 anni fa | 1

| accettato

Risposto
Can I calculate the settling time in MATLAB?
Perhaps this — s = tf('s'); G = (7507.852*s^3 - 37030.228*s^2 - 70479.368*s + 100001.744) / (s^5 + 50*s^4 + 1000*s^3 + 10000....

quasi 3 anni fa | 0

Risposto
how to add percentage symbol (%) in a label
The approach seems to work here using synthetic data — % x=table{:,"Xvalues"}; % y=table{:,"Yvalues"}; x = 1:5; y = round(r...

quasi 3 anni fa | 0

| accettato

Risposto
Getting an equation from a signal transfer function
‘I would like to get a mathematical expression for that transfer function’ If you have access to the System Identification To...

quasi 3 anni fa | 0

Risposto
Error using for-loop, keep getting "Index in position 1 is invalid. Array indices must be positive integers or logical values."
The variable and the function have the same names. Change the function name and it works — %% Using single-temperature to p...

quasi 3 anni fa | 0

Risposto
FFT Analysis Issue: Unexpected Harmonic Multiples in Vibration Signal Frequency Plot
It appears that the fft plot as actually a double-sided fft that the function normally produces. The ‘frequencies’ should pro...

quasi 3 anni fa | 0

Risposto
Import data from file
This segments some of the file information into 31 individual cells of character vectors . I have no idea what you want from th...

quasi 3 anni fa | 0

Risposto
make separate table for sets of lat lon that appears x times in a big table.
Use accumarray for this, however we may not be discussing the same file — T1 = readtable('who_ambient_ai...3_(v6.0).xlsx', 'Sh...

quasi 3 anni fa | 2

| accettato

Risposto
How to mark points at 1-5 on the x-axis in the plot
One possibility — clc; clear all ; Ld=(0:0.00005:0.005); w=0.001; L=0.007; P=4*0.001; Ta=25; h=375; Kf=175; Kd=0.0...

quasi 3 anni fa | 0

| accettato

Carica altro