回答済み
How to get daily max, min, and mean from a timetable?
Your groupsummary call is correct, except for not putting the data variables in square brackets (or curly braces). With that...

約2ヶ月 前 | 0

| 採用済み

回答済み
I'm unsure of why there is an error on F=@x
The statement order is reversed from what it should be — f=@(x)exp(-0.5*x)*(4-x)-2; df=@(x)exp(-0.5*x)*(-3+0.5*x); Xs = n...

約2ヶ月 前 | 1

| 採用済み

回答済み
small floating point has been considred as zero value!
Your code works correctly when I run it here — x=0.16 if x>0.1 d=1 else d=0 end d .

約2ヶ月 前 | 0

回答済み
Find Area under the curve as a non negative
It would help to have the data. Perhaps selecting everything with both x and y coordinates greater than zero, and then integr...

約2ヶ月 前 | 0

| 採用済み

回答済み
Transparency in scatter plot
It would help to have representative data. I suspect the vector you are using as ‘C’ has very low positive values (perhaps on ...

約2ヶ月 前 | 0

回答済み
readtable() ignores variable names and loses data when "extra" cells contain values
‘How can I tell readtable() to ignore any extraneous cells to the right of the main data that starts in A1?’ Without a file t...

約2ヶ月 前 | 1

回答済み
Importing data from outside matlab directory?
Probably the easiest way is to use the fullfile function to generate the complete path to the file. To access other files in th...

約2ヶ月 前 | 0

回答済み
Acceleration of code by replacing two nested for-loops
This could be difficult with your code because of the multidimensional nature of ‘B’, however the usual approach is to create m...

約2ヶ月 前 | 0

回答済み
Viewing a house in MATLAB
The walls and roof needed duplicates with some offsets to plot correctly. Other than that, the patch arguments are set up to be...

約2ヶ月 前 | 0

| 採用済み

回答済み
How to develop "a model" from a given m-file of regression analysis?
If your data are the same as in your earlier post, you can get all that information from the Curve Fitting Toolbox result. Th...

約2ヶ月 前 | 2

| 採用済み

回答済み
how to plot a diagram that includes many excel data?
One approach is to read the files in to separate cell arrays, then vertically concatenate them, and then choose the ‘Absolute T...

約2ヶ月 前 | 0

| 採用済み

回答済み
Replace Before A Specific Character
Assuming that you want to replace it with '9999' — diffStr="4026y 4 mo 13d 9h 26m 20.145s" val = num2str(9999) diffStr = reg...

約2ヶ月 前 | 0

回答済み
How can I plot the linear variation?
Calculating the llinear regression was straightforward, however calculating and plotting the regression plane was something of a...

約2ヶ月 前 | 1

| 採用済み

回答済み
Creating multiple cylinders in different coordinates
Perhaps this — [X,Y,Z] = cylinder(1,20); cm = colormap(turbo(10)); figure hold on for k = 1:10 ofst = randi(9,2);...

約2ヶ月 前 | 0

| 採用済み

回答済み
How to find corresponding frequencies for frequency magnitudes in FFT analysis
I am not certain what you want from these calculations. I used my own fft call (since I found it difficult to understand your...

約2ヶ月 前 | 0

| 採用済み

回答済み
Curve fitter, how to start?
Try this — T1 = readtable('data.xlsx'); Var1 = str2double(cellfun(@(x)regexp(x, '\d*', 'match'), T1.Var1)); T1 = removevars(...

約2ヶ月 前 | 0

| 採用済み

回答済み
Table not aligning properly
Use fprintf instead of disp — ThePriceisRightWheel function ThePriceisRightWheel() clc clear RunTotal = 100000; Cont...

約2ヶ月 前 | 0

回答済み
Showing information on a plot
Retrieving and showing all that information is not straightforward, however it is definitely possible. Use stepinfo to get the ...

約2ヶ月 前 | 0

| 採用済み

回答済み
How do I extract a difit from a binary string
Tweaking your code — A=45; B=dec2bin(A) lb=length(B); C=strings(lb,1); % D=convertCharsToStrings(B); for i=1:lb C(i)...

約2ヶ月 前 | 0

| 採用済み

回答済み
Deleting 3rd column of all cell double inside a variable than combine the data together
I limited the run to the first 20 ‘Pr_error_2’ cells because the full set required more time than the 55 second limit here permi...

約2ヶ月 前 | 0

| 採用済み

回答済み
How to plot a function using a variable that is calculated over a range?
When in doubt, vectorise every multiplication, exponention, and division. With those changes (and nothing else) it works — ...

約2ヶ月 前 | 1

| 採用済み

回答済み
Ones function printing out
The fprintf call will execute and print even if there is a semicolon at the end of that call. X1 = rand(3,5); fprintf('Size ...

約2ヶ月 前 | 0

回答済み
generate average numbers between two numbers inside a vector
One approach — V = [3.4789; 0; 0; 3.3535; 0; 0; 3.2398; 3.2263; 0; 0; 0; 3.0846; 0; 0; 2.9815; 0; 2.9430; 0; 2.9055]; r0 = [2...

約2ヶ月 前 | 0

| 採用済み

回答済み
How to add a legend for multiple figures with horizontal and south location
I am not certain what you want. Try this — % Please how can add one legends for the subplots. I want the legend % location...

約2ヶ月 前 | 0

| 採用済み

回答済み
How to fix the error
The error message is clear. Put the function at the end of the file and the code works — % Set random seed value rng(123)...

約2ヶ月 前 | 0

回答済み
Plotting spectrograph from spectrum analyzer data
Yiour data needed a bit of tweaking. Tehe times in the ‘TimeData’ matrix are contiguous, so they can be converted into a vector...

約2ヶ月 前 | 1

| 採用済み

回答済み
Biphasic Pulse signal with FFT
The problem was that ‘wholeSignal’ had 60 more elements than ‘t’ so I artificially shortened it: wholeSignal = wholeSignal(1:n...

約2ヶ月 前 | 0

| 採用済み

回答済み
How to count how often a variable returns to zero and then increases from zero
One method to find the first instance of a zero value is to use the strfind function. You can use it again to determine the ind...

約2ヶ月 前 | 0

回答済み
How do I compute averages for NOAA SST data?
The easiest way to do this is to use the accumarray function — T1 = readtable('ersst5.nino.mt...-20.ascii.csv', 'VariableNami...

約2ヶ月 前 | 0

回答済み
How can i calculate the area under two curves that intersect?
Integrate them using trapz then do what you want with the results (keep them as they are, add them, add their absolute values, ...

約2ヶ月 前 | 1

| 採用済み

さらに読み込む