Réponse apportée
How to save a mixed data (strings and integers) from workspace into a matlab data file?
hello To save all variables in the current workspace to a .mat file: save('filename.mat') You can load the saved workspace la...

4 mois il y a | 0

Réponse apportée
Adaptive PID Controller For DC Motor Speed Control
hello maybe this ? clc clearvars % To control the speed of a DC motor using an adaptive PID controller in MATLAB, you ca...

4 mois il y a | 1

| A accepté

Réponse apportée
how to time shift a set of data?
so this is what I tried in order to time shift the 12th voltage vs the others find the indexes for the last sample above 3.6 V...

4 mois il y a | 0

| A accepté

Réponse apportée
How do I hold a value in Simulink for the rest of the simulation time?
hello this would be my suggestion , using only a delay (or memory ) block associated with a conditionnal block when t>= you...

4 mois il y a | 0

| A accepté

Réponse apportée
box plot from timetable data
hello Giulia you can do a box plot directly with timetable data example : % Create a sample timetable time = datetime({'...

4 mois il y a | 0

| A accepté

Réponse apportée
Group multiple lines to one "object" and be able to "toggle" on or off
hello To group multiple lines into a single "object" in MATLAB, you can use a hggroup or hgtransform object. here your code...

4 mois il y a | 0

| A accepté

Réponse apportée
How to interpolate 10 csv files with different x,y,z into a common grid and average them in MATLAB?
hello again this would be my suggestion : once we have loaded all the data , we can see the shape looks pretty much like a p...

4 mois il y a | 1

| A accepté

Réponse apportée
How to generate a torus structure in MATLAB similar to Minecraft builds?
hello Sarah maybe this ? to create the initail mesh I used this fex submission : Mesh/Voxel spheres, ellipsoids, toroids, an...

4 mois il y a | 0

Réponse apportée
Finding peaks and valleys, and associated indexes, of time-shifted noisy sinosidal waves
Following my first comment above , this could be another approach extract blocks of data (you need to find the start and stop ...

4 mois il y a | 1

Réponse apportée
Selecting smaller grid from a grid to create a video
hello Andrew see this code demo to read the video , extratct each frame then crop the unwanted borders and save back to a vide...

4 mois il y a | 0

| A accepté

Réponse apportée
How to populate tiles using the next tile command with a variable number of data and a variable number of plots
hello seems to me the question is more about how to prepare / concatenate your individual data - either something very simpl...

4 mois il y a | 0

| A accepté

Réponse apportée
Subtract a gain value in dB from rfplot
see last section of this help : retrieve the appropriate value to the gain output. In MATLAB, the rfplot function is used to ...

4 mois il y a | 0

Réponse apportée
how to control the transparency of quiver
hello either you use your own alternative to plot arrows with transparency control (see the Fex) or just simply put your qui...

5 mois il y a | 0

Réponse apportée
Signal separation of displacement multimodal superposition in structural dynamics
hello you could do that : clc; clear; L = 10; v = 1; A1 = 1; A2 = 0.1; x...

6 mois il y a | 1

Réponse apportée
Why is the smoothing effect of【 pcolor() shading interp 】worse on 2025a than the old version 2023b
hello maybe a temporary work around could be here to resample the data on a finer grid seems to me the interpolated data pco...

6 mois il y a | 1

| A accepté

Réponse apportée
Trying to determine locations of markers in image
hello maybe this ? not perfect but you may refine it and get as much dots as we / you can % Read the grayscale image img =...

6 mois il y a | 0

| A accepté

Réponse apportée
data values are changing when I try to put markers, line width etc.
hello instead of calling semilogy inside the for loop simply use the regular plot and after the for loop ask for log Y scalin...

6 mois il y a | 0

| A accepté

Réponse apportée
Extracting spot coordinates from an given line in an image for an almost regular hex pattern of spots but when there is a slight tilt on Y coordinate values.
hello again maybe you could implement this method : %% create some dummy pattern of centroids % center of image (central s...

7 mois il y a | 0

| A accepté

Réponse apportée
Transforming graphs horizontally and vertically to properly compare
hello so I decided to do some x shift on your data based on the 3 major peaks x locs you can use the regular findpeaks but I...

7 mois il y a | 1

| A accepté

Réponse apportée
Real Time System Identification Problem
hello again well this is only a first rapid trial... without big success unfortunetaly (and I wished you had also posted you...

7 mois il y a | 0

Réponse apportée
How can I calculate the power spectral density of a gaussian pulse?
Gaussian Pulse - FFT & PSD in Matlab & Python - GaussianWaves

7 mois il y a | 1

Réponse apportée
How to have a same size of the image with out distortion in a subplot along with the graph?
hello there is a very detailled example here how to manage subplots dimensions (if you want to master it) How do you match t...

7 mois il y a | 1

| A accepté

Réponse apportée
How to create a concave signal step/ramp in Simulink?
hello again attached a small demo simulink file in blue I highlighted the first order system based on a simple recursive equ...

7 mois il y a | 0

| A accepté

Réponse apportée
Plotting level sets of a function on a triangulated surface.
hello this is maybe not yet the perfect solution, but ....you can get your curves as 3D points , isolated in separate clusters...

7 mois il y a | 0

| A accepté

Réponse apportée
Annotation text box appears fuzzy
hello according to the doc TextBox - Text box appearance and behavior - MATLAB you can tweak the properties of the box , f...

7 mois il y a | 0

Réponse apportée
How do you match the width of figures in a tiledlayout when using axis equal?
hello well using axis equal will give you different tile widths according to your data range, so for me, there is a conflict be...

7 mois il y a | 2

Réponse apportée
imfindcircles doesn't work
hello let's try with your image AA = imread('circle.png'); AA = rgb2gray(AA); BW = imbinarize(AA); [B,L,N] = bwboundarie...

7 mois il y a | 0

| A accepté

Réponse apportée
Low frequency results using poctave
hello right, poctave does not go below 3 Hz in the best case and that's already low enough for acoustics (normally) unless y...

7 mois il y a | 0

Réponse apportée
How can I plot an impulse (sech(x)) consisting of 2002 points, where last 1001 point are zeros?
hello if you have a recent release (Since R2023b) you can use paddata : here we pad the four first non zero values (your first...

7 mois il y a | 1

| A accepté

Réponse apportée
Avoiding zeros doesnt wrok while plotiing from a data file.
hello one method is to use interpolation to fill the voids (NaN) % Example data with NaN values x = 1:10; y = sin([1, 2, N...

7 mois il y a | 0

| A accepté

Charger plus