답변 있음
I have 2 columns, i want to find the maximum in the second column and then know what value it is next to on the first column
% Pretend data aw = rand(1221,2) + 250; % Max 2nd col in range, with index [maxW,idx] = max(aw(651:1221,2)); % Absorbanc...

대략 3년 전 | 0

답변 있음
Combinations and Matrices?
There just happens to be a very obfuscated way to do this: M = dec2bin(0:2^20-1) - '0'; size(M)

대략 3년 전 | 0

| 수락됨

답변 있음
How does the classification learner app implement k-fold cross validation?
I am most definitely not an expert in this app, but I built a simple model using the default settings, and then exported the fun...

대략 3년 전 | 0

| 수락됨

답변 있음
fit tool with errors in x and y
I am late to seeing this question, but FYI there is a submission to the File Exchange that does linear, univariate Deming regres...

대략 3년 전 | 0

답변 있음
Issues plotting simple bar graph.
The error message is quite clear. Your X values are not unique. Let's look at a simpler example: x = [1 2 2]; y = [3 5 7]; ...

대략 3년 전 | 0

답변 있음
Strategy on how to save data from multiple runs of an experiment where variables changes
There's probably no single best answer here. But if the overall scale of the data is not too large, storing everything in one ta...

대략 3년 전 | 0

| 수락됨

답변 있음
Pie chart with arrows without text coincidence on each other
This is a case where you need to ask yourself, "What is the information I really need to convey to my audience, and what is the ...

대략 3년 전 | 1

| 수락됨

답변 있음
How to transpose every cell in a table?
% If data are in a cell array c = {rand(1,7),rand(1,27)} ctrans = cellfun(@transpose,c,'UniformOutput',false) % If data...

대략 3년 전 | 1

| 수락됨

답변 있음
what is the meaning of this error? how to stop this error?
One reason for getting that error is having text in a line before the function definition. So if your function file looks like t...

대략 3년 전 | 0

답변 있음
How to give variable name to a Mat file?
Your code is looking for a variable named X1. The file X1.mat that you load does not contain a variable named X1, it is just nam...

대략 3년 전 | 0

| 수락됨

답변 있음
Append multiple values in one variable
Assuming the image are all the same size, 512x512, then I would "stack" them in the 3rd dimension, then convert everything to a ...

대략 3년 전 | 0

답변 있음
Use cvpartition to generate a set of random 3 numbers 100 or 1000 times
I don't think cvpartition does what you intend, and I am quite sure that you don't understand its output. Rather than explain cv...

대략 3년 전 | 0

답변 있음
Most efficient way of looking up values in an array.
One simple step that could speed up your code a lot would be to preallocate memory for your output array. Put myIntegers = zero...

대략 3년 전 | 0

답변 있음
matlab some polyfit problem
It is admittedly confusing, and I have fallen into this trap myself. The reason for the difference is described in the documenta...

대략 3년 전 | 0

답변 있음
How to calculate the correlation matrix of two jpg images of the same size?
The result is what I would expect. Imagine this smaller example, with two images of 9 random pixels: rng default N = 3; img...

대략 3년 전 | 0

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

대략 3년 전 | 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); ...

대략 3년 전 | 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...

대략 3년 전 | 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...

대략 3년 전 | 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) ...

대략 3년 전 | 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...

대략 3년 전 | 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...

대략 3년 전 | 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|...

대략 3년 전 | 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...

대략 3년 전 | 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...

3년 초과 전 | 0

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

3년 초과 전 | 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...

3년 초과 전 | 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...

3년 초과 전 | 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...

3년 초과 전 | 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...

3년 초과 전 | 0

더 보기