Beantwortet
Tilted 3D model orientation
The rotate function could be worth exploring. Example — [X,Y,Z] = peaks(50); figure hs1 = surf(X,Y,Z+10); hold on hs2...

fast 3 Jahre vor | 0

Beantwortet
Hello I hope you are well I would like to ask you how I adjust the mark values on the X-axis in multiples of 3 or per unit so that the 24 points are observed. Thank you very m
I am not certain what you want. Try this — fig=figure(1); clf; x1 = [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Draw and color the intersection between two 3D surfaces?
In that event, the code would go something like this — syms x y z theta S1 = z <= sqrt(x^2+y^2) S2 = x^2 + y^2 + (z-1)^2 <=...

fast 3 Jahre vor | 0

Beantwortet
Plotting multiple functions from data stored in arrays.
We do not have the arrays, however an approach using ‘logical indexing’ will probably work here — x = linspace(0, 1, 5000).'; ...

fast 3 Jahre vor | 0

Beantwortet
Functions specgram and spectrogram - what does the spectogram' 3rd dimension mean and what unit it has?
The spectrogram output is the power spectral density, so in units of power/frequency, or dB/Hz. It differs in that respect fr...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to solve non-linear equations with integrations?
It is not possible to solve this numerically without substituting numerical values for the known variables. That aside, use t...

fast 3 Jahre vor | 0

Beantwortet
Transfer function response using idinput as input signal.
It would help to have the details. Example — num = rand(1,2) den = rand(1,3) Ts = 0.01; sys = tf(num,den,Ts) Range = ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Having issues with plotting a single level contour line on a matrix that has edges
Unfortunately, enough information is missing from the posted code to prevent using it. Getting the individual lines in a cont...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
How can I find the matrix where column should be specific value?
Use ‘logical indexing’ — A = rand(15,2); B = A(A(:,1)>= 0.5 & A(:,1)<=0.512, :) Experiment with this with your matrix. .

fast 3 Jahre vor | 0

Beantwortet
Converting probability distribution plot into a histogram
It would definitely help to have more information, and specifically the code and data that created that plot, in order to experi...

fast 3 Jahre vor | 0

Beantwortet
Curve smoothing in MATLAB
One option would be a lowpass filter, assuming that the independent varialb is regularly sampled. First, calculate the Fourier ...

fast 3 Jahre vor | 0

Beantwortet
Measure wavelength of a signal using PSD
Try this — figure imshow(imread('Screenshot 202... 16.25.00.png')) T1 = readtable('stan.xlsx') stan_18p3 = T1.stan_18p3; ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Unable to change the height of the barh.
The tiledlayout plots will not let you do that, however subplot will. Try this — figure y=[67 147-67 1073-147 3456-1073 50...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Why is my code producing a 0's at the 11th Column
Could it be because that is how you defined it? xi = 0.01:0.01:0.2; pe = linspace(1,1.5,100); p = zeros(length(xi),length(p...

fast 3 Jahre vor | 1

Beantwortet
Creating a custom plot layout with data from multiple sources
I am not certain what you want to do. See if the animatedline function will work.

fast 3 Jahre vor | 0

Beantwortet
Bode Plot to Transfer Function
If you have the System Identification Toolbox, this is (relatively) straightforward, however your data requires a bit of pre-pro...

fast 3 Jahre vor | 2

| akzeptiert

Beantwortet
How to identify the month number and year number for one string with moth/day/year format?
Try this — DT = datetime('1/12/2022', 'InputFormat','MM/dd/yyyy') MonthNr = month(DT) YearNr = year(DT) .

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
problem about precision in matlab
If the numbers are all greater than zero, calculate the log of each and compare that. Remember that subtracting logaritms is es...

fast 3 Jahre vor | 0

Beantwortet
Choosing Initial values for non-linear fitting and running Genetic Algorithm
V = readmatrix('volt.csv'); Phase = readmatrix('phase.csv'); F= @(a,V) a(1).*(a(2) - a(3) - (a(2).*a(4))./(a(2).^2.*cos(...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Display time as Day, Month Year
I experimented with a few conversions, and 'posixtime' is the only one that producs realistic results. Try this — TN = [725...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Using interpol 2 code
If you want to upload it, first use the zip function and then upload the .zip file. That aside, see if the Mapping Toolbox in...

fast 3 Jahre vor | 0

Beantwortet
Error using strfind Conversion to double from table is not possible.
It is apparently not an actual datetime variable (array). Instead of searching for the ‘T’ occurrences, convert it to datetime ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
how do i find the derivative dT/dx at certain coordinates?
Use the gradient function to calculate the numerical derivative. It works with matrices as well as vectors, and getting the der...

fast 3 Jahre vor | 0

Beantwortet
Matlab bar chart plotting issue
Recent MATLAB releases can return the (x,y) coordinates of the bar end points. Using those, the result improves considerably ...

fast 3 Jahre vor | 2

Beantwortet
how do i use the digital design filter to create a filter for baseline wander in ecg signals?
I would just use the highpass or bandpass functions, iwth the 'ImpulseResponse','iir' name value pair for the most efficient fil...

fast 3 Jahre vor | 0

Beantwortet
How to combine 2 Matlab figure plots?
Perhaps — F = openfig('test_combine.fig'); Lines = findobj(F,'Type','line'); for k = 1:numel(Lines) x{k} = Lines(k).XDa...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
How can a single line plot have two colors?
Use ‘logical indexing’: figure imshow(imread('plot.JPG')) title('Original Function') range = linspace(0,100,500); s_atte...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
how can I find points in specific cell without 'for' loop?
Without knowing the details of the cell array, the cellfun function is likely the moist appropriate option. It avoids explicit ...

fast 3 Jahre vor | 0

Beantwortet
Plotting issue: wrong plotting output when number of rows equals number of columns
Plotting a square matrix may require that the orientation is also specified, for example transposing it. It depends on how the ...

fast 3 Jahre vor | 0

Beantwortet
creating cell array using find command
The find function is not necessary in this instance. Use ‘logical indexing’ to accomplish the same result without the find call...

fast 3 Jahre vor | 0

Mehr laden