Respondida
i have to read an exel file which has iterations and cl/cd/cm and make a loop for plotting subplots for cl/cd/cm vs iteration which has different angle of attacks.
If you need to do those plots in a loop, and assuming that the table variable names are (in order): iteration1, cl, iteration2, ...

alrededor de 3 años hace | 0

Respondida
Help in integration in MATLAB?
If you want a numeric result, use the vpaintegral function — syms w L = (5.*(i.*w).^5 - 170.*(i.*w).^3 + 1125.*(i.*w))./(5.*(...

alrededor de 3 años hace | 1

| aceptada

Respondida
How can I find the peak location from the FFT output?
Missing data file. However this is straightforwazrd — Fs = 1000; L = 10; t = linspace(0, L*Fs, L*Fs+1)/Fs; % [1 2 3]'...

alrededor de 3 años hace | 0

| aceptada

Respondida
ODE Solver Running Very "Slowly"
Your system is ‘stiff’ because the parameters span several orders-of-magnitude. Use a ‘stiff’ solver such as ode15s instead — ...

alrededor de 3 años hace | 0

Respondida
Unable to read datetime with format "0600 UTC OCT 25"
That is almost correct. Use 'MMM' for months in that format, and 'HH for hours. Try this — Name = ["1200 UTC OCT 10" ...

alrededor de 3 años hace | 0

| aceptada

Respondida
For Loop for Symbolic
I am not exactly certain what the problem is, however creating as a sym matrix and re-defining the loop indices so that they ar...

alrededor de 3 años hace | 0

| aceptada

Respondida
how do i plot a graph after a for loop
Subscript the variables-of-interest in the loop according to the loop index counter values, and then plot those variables after ...

alrededor de 3 años hace | 0

Respondida
How can I get MATLAB to preserve column names as variables when importing a csv file to timetable?
I am not certain that 'VariableNamingRule' works as part of the options structure. Try this instead: test= readtimetable('...

alrededor de 3 años hace | 0

Respondida
error Conversion to double from function_handle is not possible.
The ‘p’ function was incorrect, and the ‘h’ funciton is completely missing (so I created it). Try this (with the correct ‘h...

alrededor de 3 años hace | 0

| aceptada

Respondida
Effect of Humidity on Electrochemical Sensor Signal and Seeking Correction Approaches
Relative humidity will of course be affected by temperature, inbcreases as the temperature decreases, and it can never exceed 10...

alrededor de 3 años hace | 0

| aceptada

Respondida
How to find the sampling frequency?
The sampling frequency is the inverse of the sampling interval. The sampling frequency appears to be ‘ts’ . These correspon...

alrededor de 3 años hace | 0

| aceptada

Respondida
How to have same heading for different columns in the table?
I would just name the ‘Time’ variables as ‘Time1’, ‘Time2’ and ‘Time3’ to match the ‘v’ columns. The NaN columns are likely not...

alrededor de 3 años hace | 0

Respondida
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: ...

alrededor de 3 años hace | 1

Respondida
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...

alrededor de 3 años hace | 1

Respondida
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))'...

alrededor de 3 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

Respondida
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...

alrededor de 3 años hace | 1

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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 =...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 1

| aceptada

Respondida
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...

alrededor de 3 años hace | 1

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

| aceptada

Respondida
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); ...

alrededor de 3 años hace | 1

| aceptada

Respondida
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)...

alrededor de 3 años hace | 0

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

| aceptada

Cargar más