Réponse apportée
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))'...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 3 ans il y a | 0

| A accepté

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

presque 3 ans il y a | 0

| A accepté

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

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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 =...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

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

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

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

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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); ...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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)...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

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

presque 3 ans il y a | 1

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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....

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 2

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Why won't my plot start 0 and increase to 0.005 like my Ld
It does. It just uses the exponent to scale it. Add these lines: Ax = gca; Ax.XAxis.Exponent = 0; to see the tick labels...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Delete rows of excel if any empty cell found
I am not certain how you want to sort the ‘Station’ by ‘shortest to the longest’. Try this — T1 = readtable('datax.xlsx', ...

presque 3 ans il y a | 0

| A accepté

Charger plus