已回答
3D plot origin shifting
By default, the axes will go from smaller to larger number, starting from the point "nearest" you, moving "away". It seems like ...

1 year 前 | 0

已回答
How to shape the subplot to square and change colorbar label to top of the bar?
One way is to add axis square after each imagesc call: set(0,'DefaultAxesFontName','TimesNewRoman'); set(0,'DefaultAxesFontSiz...

1 year 前 | 0

已回答
Creating vector for parametrizing ANN
You should be able to use the fullfact function to do this. I am not exactly certain about the final result you want, but here ...

1 year 前 | 0

| 已接受

已回答
What is the difference between the 'basis' and 'DiscountBasis' in Function 'bndtotalreturn'
That's a finance question, not a MATLAB question. Here is simplest (but I think correct) explanation I can come up with: Basis...

1 year 前 | 1

| 已接受

已回答
numerical oddity with decimal multiplication
Possibly the most "popular" question on this forum. Read the Accuracy of Floating-Point Data section of the Floating-Point Numbe...

1 year 前 | 2

已回答
classify row numbers of a table
Already a couple different solid answers here, with slightly different methods, but I'm going to post it anyway. One difference ...

1 year 前 | 3

| 已接受

已回答
How to use MATLAB as an extension for Tibco Spotfire Analyst?
Did you download all the files from this documentation page? In particular the Reference Architecture Details document seems qu...

1 year 前 | 0

已回答
does MathLab interpolate tabular data with 4 varaibles (x1, x2, x3, x4) and return the y value?
If you have the full grid of data, then you can use interpn.

1 year 前 | 0

已回答
Fixing the legend of a bar graph
Here is one way: load CountArray_A.mat x = CountArray_A(:,1).'; y = CountArray_A(:,2); figure(); graph = barh(x,y,'Face...

1 year 前 | 0

| 已接受

已回答
how does aic work for stepwiseglm?
Regardless of the criterion used (e.g. the default "Deviance" criterion, or the "AIC" criterion), the stepwise method brings in ...

1 year 前 | 0

| 已接受

已回答
Reshape 1D to 3D array
MATLAB arrays implicitly have length-1 dimensions after the defined dimensions. For example % Define 365x1 array M = rand(365,...

1 year 前 | 0

已回答
Background color of box (not just the figure background)
Frankly, I got a little bit confused by your description. Perhaps including some screenshots would help. I'm not sure, but I th...

1 year 前 | 0

已回答
select a portion of the matrix
The following does what you asked for, for this matrix. The "rule" you specified was not perfectly clear to me, though, so this ...

1 year 前 | 1

已回答
The normalization of histcounts
PDF is the probability density, not the probability. To get the probability for a given bin, you need to multiply by the bin wid...

1 year 前 | 1

已回答
need explanation for the following code
This code is a MATLAB function that executes the commands within the function, in order. What each command does can be found by...

1 year 前 | 0

已回答
How to I generate continuous arrays from two arrays with different data points?
Your question is not perfectly clear to me, but it sounds like you could use the interp1 function to interpolate each data set t...

1 year 前 | 1

已回答
Why use 'try' ' catch' to handle exception
I think the following phrase from the documentation for try-catch is a useful characterization: "override the default error beha...

1 year 前 | 0

已回答
How to connect to mongoDB
These are questions that should be able to be answered by whoever set up the MongoDB in the first place. But, here are a couple ...

1 year 前 | 0

已回答
I have trained my time series NARX NN using 5*7875 inputs and 1*7875 target values. How do I make predictions for 5*10 new input values ?
You don't describe the code you used in any detail, so it is not possible to be certain, but if you did something like what is d...

1 year 前 | 0

已回答
I am trying to write a Matlab program that calculates the average and standard deviation of scores given and determines the letter grade
I formatted your code to standard MATLAB style. Also, you don't seem to have realized that MATLAB is case-sensitive. So, I corre...

1 year 前 | 0

已回答
how to check if two symbolic fractions are the same?
You can use isequal or isAlways, depending on the specific need. I suggest that you read the documentation, because there are nu...

1 year 前 | 1

已回答
How to resolve the loss function error?
There are a number of potential errors with your code, but I would say that the most fundamental one is that you are using a cla...

1 year 前 | 0

已回答
Use Indexing for more than 1 dimension of array simultaneously
You can use linear indexing: matrix = rand(10, 3); idx = [1; 2; 2; 3; 1; 2; 1; 2; 3; 3]; linearIndex = sub2ind(size(matri...

1 year 前 | 0

已回答
What is the MPG in Random Forest Regression ?
That code looks similar to example code from the documentation for fitrensemble or templateTree. In those examples, MPG is one ...

1 year 前 | 0

已回答
PCA function suddenly Stop working with error
The line [w,truefrac] = pcaklm(mfilename,varargin{:}); is not in the MATLAB pca function. You have presumably started calling ...

1 year 前 | 1

| 已接受

已回答
Is there a way to fit experimental data to a set of x,y points?
Informed by your comments on my other answer, I have a different one. Unfortunately, that answer is "What you are asking to do i...

1 year 前 | 0

已回答
While using fit function, how to make sure the generated fit is only of the range of data points ?
If you only supply 6 data points to the fitting function, it will only use those points. MATLAB doesn't "know" to do anything el...

1 year 前 | 1

已回答
Is there a way to fit experimental data to a set of x,y points?
If you have the Statistics and Machine Learning Toolbox, you should be able to do this type of fit with fitnlm (or possibly fitl...

1 year 前 | 0

已回答
Use linkaxes on where all x-axes are linked but only some y-axes are linked
I think this does what you intend. You need to link x & y simultaneously, and the order of calling linkaxes matters. figure; ...

1 year 前 | 0

| 已接受

已回答
Estimate the maximum value among three consecutive values in a vector
A=[0.18, 0.01, -0.15, 0.08, .25, 0.12]; output = movmax(A,3)

1 year 前 | 0

| 已接受

加载更多