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

1 month 前 | 0

已回答
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...

1 month 前 | 0

已回答
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) .

1 month 前 | 0

| 已接受

已回答
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==...

1 month 前 | 1

已回答
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...

1 month 前 | 0

| 已接受

已回答
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...

1 month 前 | 0

已回答
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...

1 month 前 | 0

已回答
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) ...

1 month 前 | 0

已回答
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...

1 month 前 | 1

已回答
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 ...

1 month 前 | 0

| 已接受

已回答
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....

1 month 前 | 0

| 已接受

已回答
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....

1 month 前 | 3

已回答
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...

1 month 前 | 0

| 已接受

已回答
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...

1 month 前 | 0

已回答
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...

1 month 前 | 0

| 已接受

已回答
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...

1 month 前 | 0

已回答
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...

2 months 前 | 0

已回答
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...

2 months 前 | 0

已回答
How to find intercept of two lines pls
There apears to be much missing informaiton. That aside, the general approach would be — x = linspace(0, 2, 3).'; y = x.^2...

2 months 前 | 0

已回答
Problems loading factoryReports.csv example
According to the documentation, it should exist, and definitely should exist here, online. Check_Train = which('train.mat') ...

2 months 前 | 0

| 已接受

已回答
How can I know the value of resistors and capacitors from this photo?
Displaying the image — imshow(imread('WhatsApp Image..._0904bed9.jpg')) The stripes are brown-black-brown with no tolerance s...

2 months 前 | 0

| 已接受

已回答
Plot generating blank graph?
You do not need the loop. Just usee vectorisation — l = 0.0001; lambda = 0.405; syms t; wj11 = 0; wj12 = -79.077; wj61...

2 months 前 | 0

已回答
how to flip axes of isosurface plot?
Missing files, so I cannot run this. One optiion would be to permute the order of the first three arguments to isosurface. ...

2 months 前 | 0

已回答
How can I smoothen my plots by removing sharp edges/points in the plots?
One option is to use vectors with increased resolutiuon (numbers of points), and then interpolate as necessary — A=load('data...

2 months 前 | 0

| 已接受

已回答
fitting with custom equation
This is probably as good as you can hope for — % I/y = x/a + (1-x)/b y = [1.6E5 2.5E5 4.1E5 8E5 1E6 2E6 7E6 2E7]; x = [17...

2 months 前 | 0

已回答
Matlab forgets new paths I add
@Paris — You probably need to create (or change) your startup fiie. I have one (startup.m) I have been using for decades, altho...

2 months 前 | 0

| 已接受

已回答
Sub-sampling with mean value of a datasets including time
I am not certain how the means whould be calculated. If you want to calculatee the means of every six rows, that is relatively...

2 months 前 | 1

| 已接受

已回答
Trying to Differentiate Parametric Equation, Error "Error using diff Difference order N must be a positive integer scalar."
Your diff call is not going to produce the result you want. % Define symbolic variables syms R Z e v real % Define parame...

2 months 前 | 0

已回答
cannot install MATLAB R2024b in Ubuntu 24.04.1
Your best option is to Contact Support for installation problems. Please post back here with MathWorks recommendations and yo...

2 months 前 | 0

已回答
Finding concave hull around abstract shape
I am not certain what you want. The information creates a 2D polyshape. The boundary function is likely most appropriate her...

2 months 前 | 1

加载更多