답변 있음
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 ...

거의 3년 전 | 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...

거의 3년 전 | 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.

거의 3년 전 | 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...

거의 3년 전 | 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 ...

거의 3년 전 | 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,...

거의 3년 전 | 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...

거의 3년 전 | 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 ...

거의 3년 전 | 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...

거의 3년 전 | 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...

거의 3년 전 | 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...

거의 3년 전 | 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...

거의 3년 전 | 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 ...

거의 3년 전 | 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...

거의 3년 전 | 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...

거의 3년 전 | 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...

거의 3년 전 | 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...

거의 3년 전 | 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...

거의 3년 전 | 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 ...

거의 3년 전 | 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 ...

거의 3년 전 | 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...

거의 3년 전 | 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...

거의 3년 전 | 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...

거의 3년 전 | 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; ...

거의 3년 전 | 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)

거의 3년 전 | 0

| 수락됨

답변 있음
How to run a WSL command from Matlab?
You can use the system function to execute an operating system command

거의 3년 전 | 0

답변 있음
is matlab associatte certificate free of cost?
The certification exam is not free (but can be discounted in some situations). Go to this link and click "Register Now". You wi...

거의 3년 전 | 0

답변 있음
vectorize expression containing if statement
Here is one way: A = [-5 3 2;2 3 4; 3 5 6; -2 8 9]; prod(A(A(:,1)>0,:),2) You could also have done the first operation as ...

거의 3년 전 | 0

| 수락됨

답변 있음
Creating subplots based on a cell array
cell1 = {'AA' 'AA' 'BC' 'BC' 'BC' 'DD' 'DD'; 1 2 3 4 5 6 7; 7 6 5 4 3 2 1; 5 9 8 7 6 5 4}; cell2 = {'AA' 'AA' 'BC' 'BC' 'BC' 'D...

거의 3년 전 | 1

답변 있음
Trouble Opening Program using System()
Looking at the string you are providing to the system command, I think you want system(['"' ICEM_Path ' -script ' ICEM_Script '...

거의 3년 전 | 0

더 보기