답변 있음
Finding the predictors of a neural network
Suppose each of your 70 predictors is a binary variable. That means that there are 2^70 possible combinations of predictors. F...

14일 전 | 0

답변 있음
Find column number for every row in matrix
Here is one way: M = [-1 4 1; 1 -1 -1; -5 4 -1]; [r,c] = find(M>0); [~,j] = unique(r); ...

14일 전 | 0

답변 있음
How do I crop a matrix within desired numerical limits?
I am unclear what you mean by "crop" here. I can think of two possibilities: Remove rows of your matrix that have values outsid...

14일 전 | 0

답변 있음
How do I fix "Index in position 2 exceeds array bounds. Index must not exceed 1." as error?
Notice that when you used import data, it came is as a structure. So, you would need to access data.data. data = importdata('C...

16일 전 | 1

| 수락됨

답변 있음
Convert a table in a pdf to a MATLAB cell structure
I can strongly recommend using Tabula to first extract the table from the PDF file. Then use a MATLAB function (e.g. readtable) ...

17일 전 | 0

답변 있음
How do I fix "Index in position 2 exceeds array bounds. Index must not exceed 1." as error?
It would be easier for us to help you debug this if you upload the data. You can use the paper clip icon in the INSERT section o...

17일 전 | 1

답변 있음
What algorithms can perform multiple output regression?
The mvregress function in the Statistics and Machine Learning Toolbox will perform linear regressions with multiple dependent va...

17일 전 | 0

답변 있음
How to I validate a string to ensure it contains a valid Date .
Here is one way: MyStr = '23max2023'; % Invalid string will give an empty array isMyDateFormat = regexp(MyStr, '\d{2}(jan|feb|...

18일 전 | 0

답변 있음
How can I get the P value of the two-tail Student's test when I know the T value and Degree of Freedom?
Sorry for the delayed response. I did not get a notification that you had replied. Your second method is the correct one (assum...

18일 전 | 0

| 수락됨

답변 있음
Replace option in fitrensemble
I'm confused. It sounds like you saying that you don't want a given predictor to occur at different branching points. For examp...

19일 전 | 0

답변 있음
how squeeze function works for irregularSineWaves dataset????
The squeeze function removes dimensions of an array that have size 1.

19일 전 | 0

| 수락됨

답변 있음
sqlwrite does not preserve row order
Even if you store the data in a particular order (which you should not try to do), there is no guarantee that any given SELECT s...

19일 전 | 0

| 수락됨

답변 있음
How to draw estimated kernel densities of two series in one figure?
Here are two different methods N = 50; x1 = randn(N,1); x2 = randn(N,1) + 1; [f1,xi1] = ksdensity(x1); [f2,xi2] = ksdensi...

21일 전 | 0

| 수락됨

답변 있음
How to use Webwrite to call REST APIs successfully, eg OpenAI API
I did not carefully look at your code, but there was recently discussion at this question, which reached a successful conclusion...

22일 전 | 0

답변 있음
How can I enhance scatter3() visibility with a heatmap?
I think it is possible that histogram2 or swarmchart3 might be useful to you. I also recommend taking a look at the MATLAB Plot...

23일 전 | 0

답변 있음
fitclinear appears to use sgd solver even when sparsa is specified
This is interesting. I'd be surprised that MATLAB makes that transition when you have explicitly specified the Solver .. but I a...

23일 전 | 0

답변 있음
Index exceeds the number of array elements. Index must not exceed 1
Your code gives a different error than what you are asking about, but I guess your problem comes from the expression: x(m) ins...

23일 전 | 0

답변 있음
I want to make an identity matrix
I've made some assumptions about the pattern, but I expect it is what you want. This should be highly efficient. The algorithm ...

24일 전 | 0

답변 있음
p-values of manova = 0
The p-value is going to be reported as zero if it less than either eps(0) or realmin or some other tiny number related to ho...

24일 전 | 1

| 수락됨

답변 있음
How to replace specific characters in a cell array?
With the additional description you added that clarified the problem, you can do this very easily with regexprep: A = {'MATHIEW...

25일 전 | 2

답변 있음
Split structured text delimated by comma in a table column
% Create the sample input table Airport = ["MUMBAI,BOM"; "NEW DELHI, DLH"; "JAIPUR,JAI"]; tbl = table(Airport); % Create te...

26일 전 | 1

답변 있음
How to display variables within a full sentence without using a char array or strings?
I would recommend fprintf num1 = 15; num2 = 51; fprintf("The original number was %d and the flipped number is %d",num1,num2...

26일 전 | 0

답변 있음
How to remove 'year' in the x-axis
The accepted answer to this question gives the following method: XDates = [datetime(2021,6,1:30) datetime(2021,7,1:31)]; YNums...

26일 전 | 0

| 수락됨

답변 있음
I have a vector where the end is padded with NaN. How to index where real numbers end and where NaNs begin
Here are two methods of finding the last index that is not NaN: load("C.mat","c") % Method 1 lastNonNanIndex1 = sum(not(isn...

26일 전 | 0

| 수락됨

답변 있음
How to replace specific characters in a cell array?
Assuming you have character array elements, and not strings, here is one way: % Inputs CC_in = {'abcdeABCDE','xyzFGHIJ'}; rep...

27일 전 | 1

답변 있음
Assign a set of weights to digits
% Abbreviated example input M = [4 1 1 2 0 0 0 0 0 3 1 1 2 0 0 1 0 0 1 5 1 0 0 1 0 0 0]; % If you want the weigh...

27일 전 | 0

답변 있음
What does the z axis mean in kmeans, pca and tsne? what data does it add that 2d doesn't? what do the axis represent?
All 2-dimensional plots in MATLAB can be rotated to be viewed from a different "point of view", but this is generally not useful...

28일 전 | 0

답변 있음
The problem of plotting
A quick look at the documentation for fit suggests to me that you syntax you used (to include two plots in one figure) is not va...

약 1달 전 | 0

답변 있음
bsxfun @times the row sum and @rdivide the (1./row sum) does not produce same results
In all cases, you are getting answers to within floating-point precision. For almost all purposes, you can consider these to be ...

약 1달 전 | 1

| 수락됨

답변 있음
Trend lines with moving average
There are many ways to do the linear fit in MATLAB, including some in base MATLAB. Here is one way, using the fitlm function fro...

약 1달 전 | 0

더 보기