Beantwortet
How can I load my .mat files from a folder into a function?
The ‘data’ variable contains a structure (see struct for details) holding all the variables in the file. See the documentation ...

mehr als 3 Jahre vor | 0

Beantwortet
How to combine 2 graphs from different scripts in another script
I cannot get copyobj to copy the data for both figures to one axes. It copies some of the informaton, however not all of it. T...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Overlaying Surface and Vector Plot
Ideally, both plots need to be 3D plots, otherwise the surf plot will completely hide the quiver plot, since the quiver plot has...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Error when using findpeaks for different limits
The 'MinPeakDistance' value must be less than the number of elements in the vector being used as the first argument to findpeaks...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to fix ode graphs?
You are telling it to produce two different plots because of two separate figure calls. syms y(x) x Y N=5; r=0.05; m=0.01...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Arrange column vetors into table
You simply need to transpose the row vectors to column vectors. That is best done before creating the table, for example — ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I create a matrice with values over a number of this matrix ?
Perhaps something like this — earthquakes = rand(20,1)*9 % Data (Richter Magnitudes) eq_gt7 = eart...

mehr als 3 Jahre vor | 0

Beantwortet
Uploaded images are pixelated
JPEG images have problems because of the discrete cosine transform used to encode them. See the Wikipedia section on JPEG compr...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Converting a timestamp into a value that can be plotted
A duration array may woirk, although a datetime array would also work. Perhaps something like one of these — ts = ['11/04/2...

mehr als 3 Jahre vor | 0

Beantwortet
Find intersection point between two plotted lines
The code I wrote for your previous post, Plot tangent line on part of the curve is designed as requested to have only one inters...

mehr als 3 Jahre vor | 0

Beantwortet
Plot tangent line on part of the curve
Try this — Data = readmatrix('data_tangent.xlsx') x = Data(:,1); y = Data(:,2); [ymax,idx] = max(y); Binit = x(1:5) \ ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to add missing rows in irregularly spaced table as per missing months and years?
I am not certain what you want to do, however the correct approach to dealing with the missiing values is to convert the table t...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to use the constant e?
Use the exponential function exp(y) to compute e^y. For example:  x = 0.2; Result = (x^2)*exp(4) Result = 2.1839

mehr als 3 Jahre vor | 17

| akzeptiert

Beantwortet
How to change xticks on a histogram?
There are several ways to do this. Using xticks should work in R2022b — T2 = array2table(rand(100,10)*10); ...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Issue when input to sin(x) is in scientific notation
You are seeing the effects of different precision arguments. format long % Show Detai...

mehr als 3 Jahre vor | 2

| akzeptiert

Beantwortet
Issues with creating a frequency weighting filter for a iso-standard
I just saw your latest Comment now. The sampling frequency can be anything that you determine to be appropriate for the syste...

mehr als 3 Jahre vor | 0

Beantwortet
Find crossing points of x and z data
It would help to have the data, and labeling the axes, since it is not obvious what ‘x’ and ‘z’ are. In their absence (and ma...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Sketch the graph using matlab
Use the linspace function to create the ‘x’ vector. Use element-wise operations to calculate ‘y’: y = (x.^3-1)./(sqrt(x) - ...

mehr als 3 Jahre vor | 0

Beantwortet
Finding slope of a curve at some specific points
Probably the easiest way to calculate the instantaneous slope is: dydx = gradient(y) ./ gradient(x); All that is necessary af...

mehr als 3 Jahre vor | 5

| akzeptiert

Beantwortet
plotting transfer function / time domain version
I’m assuming here that ‘Q’ is the numerator polynomial and ‘P’ is the denominator poplynomial. (If that is not correct, it is e...

mehr als 3 Jahre vor | 0

Beantwortet
how to install fractal function in matlab
If it is from the File Exchange, use the Add-On Explorer (in Add-Ons the right-hand region of the top toolstrip in MATLAB) to do...

mehr als 3 Jahre vor | 0

Beantwortet
How to plot the actual frequency range for the FFT plot?
One approach — %% Signal parameter c = 3e8; % speed of light fc= 10e9; % carrier freque...

mehr als 3 Jahre vor | 0

Beantwortet
Matlab file to analyse galvanic skin response not working properly
I suspect that there are actually more than 2905 rows in one of the variables (columns), although we do not have the data to ver...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Change values above bar
I am not exactly certain wher eyou want the bar values placed, so it may be necessary to edit the two text calls to create the r...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do you add a multiplication in the numerator of a transfer function.
Perhaps this — num=5*exp(-1); den=[1 5]; g=tf(num,den) The exponential function here is a constant. If you intend to int...

mehr als 3 Jahre vor | 0

Beantwortet
Finding random normally distributed number above zero
The truncate function is another option.

mehr als 3 Jahre vor | 0

Beantwortet
how to find the location of a value
First, determine the value of the first valley, find the approximate index of the desired value, and then use interp1 to calcula...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Why my plot doesn't show up all of it?
All the curves are plotted, however they appear to be overplotted on top of each other. Plotting them using plot3 with an off...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to Extract/Fit bell curves under a time series...
In order to uniquely identify the peaks and identify their parameters, it is necessary to restrict the range of ‘x’ values for e...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to save result after run function for different input in matlab
I would just subscript it — subplot(2,2,1) [a{1},r2{1},stee{1}] = linregr(temp,visc) subplot(2,2,2) [a{2},r2{2},stee{2}] = ...

mehr als 3 Jahre vor | 0

| akzeptiert

Mehr laden