Beantwortet
finding relation between two variables, being discharge and water level in a river
Your question is a bit ambiguous. If you have data of some sort and you want to fit that model to it in order to deteermine ...

23 Tage vor | 0

| akzeptiert

Beantwortet
Slope of some groups of data separated by NaNs
I am not certain what you want for ‘values’. This prints the equation of the regression line for each line — load('data_min...

23 Tage vor | 0

| akzeptiert

Beantwortet
Site Response Analysis - FFT
Just looking at your code (without having the data), one problem could be that your amplification function is defined only over ...

23 Tage vor | 0

Beantwortet
convert time domain data to frequency domain
There are 6839 missing (non-sequential) rows in this file, so to use fft you will first have to interpolate them so they are seq...

24 Tage vor | 0

| akzeptiert

Beantwortet
plomb ifft sequence??? please help me!!!!
The plomb function returns the power spectral density of the input time-domaiin signal. In order to do in inversee Fourier tran...

25 Tage vor | 0

Beantwortet
How to extract areas of contourf-plots below a given level
It is a bit difficult to follow your code. In my additions, these lines: idx = find(contourData(1,:) == contourLevel); cle...

25 Tage vor | 0

Beantwortet
Hi, I want to how can we convert the contour geometry to stl file?
Try something like this — % clc; clear; close all; % Generating simple SDF [x, y] = meshgrid(linspace(-2, 2, 100), linspac...

26 Tage vor | 1

| akzeptiert

Beantwortet
Skipping Optional Positional Arguments
I usually use varargin rather than arguments, however your calling syntax may not be appropriate To illustrate — out = foo(1,...

27 Tage vor | 0

Beantwortet
Creating a sinewave with logarithmic frequency
Using the logspace function could work. Try this ’— % Generate log-frequency sweep then plot it and its spectrogram NPTS...

28 Tage vor | 0

| akzeptiert

Beantwortet
How to plot a 2D pcolor with contours only at specific levels?
Using the vector works here, and your code runs without error in R2024b — load('data.mat') whos('-file','data') pcolor(lon...

28 Tage vor | 0

| akzeptiert

Beantwortet
Default bode axis to Hz in R2024b
I did not see any changes to that in the Release Notes, however that does not mean that they were not changed. The only relevan...

29 Tage vor | 1

Beantwortet
Downsampling array data from counts per minute to counts per hour
That depends on what you want to do. I would use a timetable and the retime function — Time = datetime(2004,10,23,17,00,00)...

29 Tage vor | 0

| akzeptiert

Beantwortet
Interpolate missing hourly and daily data
Usee the retime function with a timetable — filename = "Missing_data.xlsx"; T1 = readtable(filename); T1.Properties.Variable...

30 Tage vor | 0

Beantwortet
How to fit an XRD pattern to ambient solid and liquid patterns to extract qualitatively solid and liquid fractions?
It depends what the pattern is, and whether it is 2D or 3D. MATLAB has several fitting (parameter estimation and optimisation...

etwa ein Monat vor | 0

Beantwortet
how do I fprintf a power?
Using ‘char(178)’ is an option — gof.rsquare = 0.975; fprintf("R"+char(0178)+"; %.4f%s%.4f\n", gof.rsquare) .

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
MATLAb Solve function not solving
Your code works in R2024b — clear all close all syms I1 I2 V0 s=2; eqns=[5*I1+4*I2+1/(s*0.1)*I1+2*s*I1==1, 4*I2-3*V0==...

etwa ein Monat vor | 1

Beantwortet
ode45 integration issues for some choices of physical parameters,
‘I'm not aware of any division by zero being performed;’ The denominator does not have to be equal to zero, it just has to be...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
resample function possibly introducing phase shift
If the original data are not regularly sampled, that could account for the distortion. (An easy way tto check this is to calcul...

etwa ein Monat vor | 0

Beantwortet
How to choose 60 unique coordinates ('A') from 600 coordinates('B'), nearest to 60 other coordinates('C')
Using pdist2 is an option — C = rand(60,2); B = rand(600,2); [A,I] = pdist2(B,C,'euclidean','smallest',1) figure scat...

etwa ein Monat vor | 0

Beantwortet
How to pass multiple arguments to a function handle?
An example of what you want to do could help. Perhaps something like this — for k = 1:10 k arg = randn(1,k) ...

etwa ein Monat vor | 0

Beantwortet
Two lines of plot title with number and date time
You cann do what yu want with string, " " arrays (or variables). Try this — load('title_data.mat') whos('-file','title_dat...

etwa ein Monat vor | 1

Beantwortet
How to use retime to get the plot of mean and stdev in continous time series
The correct way to express the deviation of cata around the mean is to use the standard error of the mean, given by: where ...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How to Perform One-Way ANOVA for Hepatocyte Data Across Mice Using MATLAB?
Here it goes — SN = sheetnames('NEWSHEETUpdate.xlsx'); for k = 1:3 Sheet="CM"+k MHD{k} = readtable("NEWSHEETUpdate....

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
I want to clean a decay by setting all values to zero after the first negative, please assist me on how to achieve that
Use logical operations and the cumprod function for this — B = [0.0374 0.0216 0.0185 -0.0320 -0.0012 0.0000 0....

etwa ein Monat vor | 3

Beantwortet
Spatial-Temporal Contour plot from multi excel files
I am not certain what you want. As a first approach, this presents them as surfaces — files = dir('*.xlsx'); for k = 1:num...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
What can I do to make the pattern in the legend larger?I look up a lot of ways, can't solve, ask for help.Thinks!
I did a search on this and found How can I change the marker size in legend? and How to set legend marker size among others aft...

etwa ein Monat vor | 0

Beantwortet
Changing colour of plot every time X data changes direction
It would help to have the actual data, and an explanation of how you are plotting them, with code. The reason is that if ther...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Trying to reshape/reformat data set into multiple sets
A matrix of 140000 rows won’t work, however a matrix of 140050 rows will. Use the mat2cell function to break it up into manag...

etwa ein Monat vor | 0

Beantwortet
What calculation is done to find the gains (k) of the zpk function?
I am not certain that it is documented anywhere (I cannot find it), however it appears to be the coefficient of the highest-orde...

etwa ein Monat vor | 0

Beantwortet
Representation of the vector array of Z-transform
Yopu can check it against the Symbolic Math Toolbox iztrans function result — syms z Z = [1 z^-1 z^-2 z^-3].' t = iztrans...

etwa ein Monat vor | 0

Mehr laden