Beantwortet
how to separate the real and imaginary parts inside a cell
Maybe this ? % create dummy data n = 32; for k = 1:2 cellarray{k} = k*ones(n,n)*(1+1i*5); end % process it for ...

etwa 2 Jahre vor | 0

Beantwortet
Change format of field contour labels that have been manually added in a tiled layout
why not create explicitely the levels (V array) ? a = 0.98; b = 1.02; Z = peaks(99)/100 + (a+b)/2 ; XY = [-0.375:.125:.37...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to find center and radius of an arc from binarized image
hello this is what I can offer you today you will need the attached function (CircleFitByTaubin.m) , and this Fex submissio...

etwa 2 Jahre vor | 0

Beantwortet
How do i show the "delta" difference between the two plotted curves?
hello you need to "realign" your two data sets vs common x vector - in other words we need to creat a new x vector and inter...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Extraction of the spatial coordinates of a curve and calculation of the normal line to each of its points
hello tried a few things here As far as I have understood correctly your question, the points you are looking for are given ...

etwa 2 Jahre vor | 1

| akzeptiert

Beantwortet
Put to white the plot space outside a geometric shape
hello have you checked that the colorbar is symetric around zero (to have white color correspind to zero exactly ? ) this re...

etwa 2 Jahre vor | 1

| akzeptiert

Beantwortet
Error: unrecognized function or variable "bi2de"
Thanks to this post it was easy to (re)create the missing / unknown bi2de function (see end of the code) : Most efficient way to...

etwa 2 Jahre vor | 0

Beantwortet
comment afficher une image à un endroit spécifié d'un axe ?
hello Daniel you need to freeze your axes , otherwise you will not get the desired results here I simply used "hold on" after...

etwa 2 Jahre vor | 0

Beantwortet
Converting cell array with <missing> elements to numerical or double matrix
hello if you want to stick with readcell, you could do that : clc InputData=readcell('MATLAB_readcell.xlsx',"Sheet","Sample...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Is there a way to crop an array depending on the values that I want through a function as the values change?
hello try this : a = [0 0 0 0 1 1 1 1 1 0 0 0 1 0 0 0 0 1 1 1 1 1 0 1 1 1 1]; ind = logical(a); [begin,ends] = find_st...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Slicing arrays and save it in the file
hello with your input data in attachment, try this code : % load data data = readmatrix('data.txt'); % or readtable if yo...

etwa 2 Jahre vor | 1

| akzeptiert

Beantwortet
Script has no errors, but no plot is given
again... let's fix it I cannot check here if e^(r(i)^2) (probably wrong) must be replaced by exp(r(i)^2) - I let you double ...

etwa 2 Jahre vor | 0

Beantwortet
Use of eig(A) for eigenvectors
hello let's fix it 1/ had to remove the trailing end - there's simply no reason to have an "end" at the end of your code - p...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
The blank before var >0.5 cause error in R2016a
I don't think it has to do with a specific release I have the same result with R2020a now either you put no space or at least...

etwa 2 Jahre vor | 1

Beantwortet
Remove harmonics background noise
I have some doubts we can recover a clean sinewave from that ... nevertheless I tried a few things ... first I decimated the sig...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Hi I have Csv file for voltage and time data and I would like to compute spectrogram to to compute harmonics at different frequencies but my spectrogram looks so much noisy or
hello you may play with the colormap and also with the displayed dB range to focus on your signal tones and not the background...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Plotting path of rods on a circular disk along a surface to deduce rack gear profile.
ok, I had some fun today with your exercise ... time to grind a bit the sharp edges though ! % a disk fitted with 4 rods d = ...

etwa 2 Jahre vor | 1

| akzeptiert

Beantwortet
Plotting while skipping the middle point in a vector
hello if you can avoid update the plot inside the for loop here I store your data in xx and yy arrays and after the for loop...

etwa 2 Jahre vor | 1

Beantwortet
Rows interpolation in a matrix
hello you can use fillmissing for this task data = readmatrix("data.txt"); data(abs(data)<eps) = NaN; data_out = fillmiss...

etwa 2 Jahre vor | 2

Beantwortet
How to call a own function in other mfile?
hello you simply need to have your function(s) located at the end of your script (mfile) % example code %% main code x =...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
How do I reorder a regression plot in the desired sequence?
hello again you could do that NB that the cos^2 is not what I used A simple sin (or cos if you prefer works better - your ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to merge and smooth multiple curves in a plot, if there are discrete points?
hello tried afew options, probably here my best result in the very limited time I have now : this is a demo on the first two...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Plot 3D surface within nonlinear bounds
hello this is a job for inpolygon Points located inside or on edge of polygonal region - MATLAB inpolygon - MathWorks France...

mehr als 2 Jahre vor | 1

Beantwortet
calulate the indicated mean pressure with a p-v diagramm
hello Julian yes you can use polyarea, I believe you could also with trapz like in my example below (it uses this Fex submissi...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
I have a function that adds a legend I want to make the legend group certain plots together yet so that instead of a legend with 14 entries there is a legend with 5 entries
this is a simple solution, where the files are processed in the order that you wished (cf list = [1 3 5 2 4 6 7 9 11 8 10 12 13 ...

mehr als 2 Jahre vor | 0

Beantwortet
Obtain Transfer Function for Bode Plot data from PLECS Software
hello If you have the signal processing toolbox, you can use invfreqs or invfreqz to identify a transfer function here I use...

mehr als 2 Jahre vor | 0

Beantwortet
Phase retrieval of a periodic signal, not working well
here a better solution without the need for fft you should not use the first peak in your code , as it does not correspond to ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
StartPoint on Curve Fitting Toolbox
hello here a very simple code with a 2 steps approach - a relatively accurate initial guess of Aand Q, then refined with fmin...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
FFT plotting trouble: Concatenated inputs
hello when you do modal analysis / FRF measurements with a hammer , you should split the record into individual hit input and ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
interpolation of a sinusoidal tunnel data
hello again so I looked a bit some of your data , and my first question would be , why not first plot your (scattered) data wit...

mehr als 2 Jahre vor | 0

Mehr laden