Data scientist at Cohen Veterans Bioscience; Obsessive runner. Professional Interests: Predictive modeling, statistics. (I don't respond to email via author page, but will usually look at a question if you send me a link to it.)

답변 있음

Calling python using system function

Sounds like a path issue. Type pwd in MATLAB to get your directory, and then go to that directory on the command line and try ...

Calling python using system function

Sounds like a path issue. Type pwd in MATLAB to get your directory, and then go to that directory on the command line and try ...

약 7시간 전 | 0

| 수락됨

답변 있음

need help in confusion matrix details

The green number in the upper-right box is the fraction of correctly classified entries in that row (and the red is the incorrec...

need help in confusion matrix details

The green number in the upper-right box is the fraction of correctly classified entries in that row (and the red is the incorrec...

1일 전 | 1

| 수락됨

답변 있음

How to change my x axis value

It would be helpful if you posted your data, so we know exactly how it is stored (e.g. do you just have the years stored as nume...

How to change my x axis value

It would be helpful if you posted your data, so we know exactly how it is stored (e.g. do you just have the years stored as nume...

11일 전 | 2

| 수락됨

답변 있음

Why variables are different tha command window values?

In the command window, you seem to be highlighting elements 1323:1325. In the variable window, you seem to be highlighting eleme...

Why variables are different tha command window values?

In the command window, you seem to be highlighting elements 1323:1325. In the variable window, you seem to be highlighting eleme...

13일 전 | 0

| 수락됨

답변 있음

How can I combine these two MATLAB codes? (MATLAB)

Use the hold command figure hold on plot(t, y2, 'linewidth', 2); plot(t,y,'linewidth',2); and then your other commands for ...

How can I combine these two MATLAB codes? (MATLAB)

Use the hold command figure hold on plot(t, y2, 'linewidth', 2); plot(t,y,'linewidth',2); and then your other commands for ...

18일 전 | 0

답변 있음

[SOLVED]: I'm getting the error "Array dimensions must match"

I recommend that you use the debugger to investigate. Specifically, set a breakpoint at the line U = F.*(ones(sz) + Beta.* L); ...

[SOLVED]: I'm getting the error "Array dimensions must match"

I recommend that you use the debugger to investigate. Specifically, set a breakpoint at the line U = F.*(ones(sz) + Beta.* L); ...

18일 전 | 1

| 수락됨

답변 있음

Why do I get non-zero standard deviation in data with no variability?

Your standard deviaions are zero -- to within the accuracy possible by calculation in floating point numbers. The first referen...

Why do I get non-zero standard deviation in data with no variability?

Your standard deviaions are zero -- to within the accuracy possible by calculation in floating point numbers. The first referen...

19일 전 | 1

답변 있음

How can I fit data to a system of implicit equations?

I'm pretty sure that this is a really tricky problem to solve, and I am not certain it can be done in MATLAB. (When I say this, ...

How can I fit data to a system of implicit equations?

I'm pretty sure that this is a really tricky problem to solve, and I am not certain it can be done in MATLAB. (When I say this, ...

19일 전 | 0

답변 있음

how can i determine angle between 2 variables

You got the order of the inputs incorrect. It should be atan2(rAy,rAx)*g This will give a negative answer, measuring the angle...

how can i determine angle between 2 variables

You got the order of the inputs incorrect. It should be atan2(rAy,rAx)*g This will give a negative answer, measuring the angle...

19일 전 | 0

답변 있음

Not enough input arguments.

How are you calling the function? If you call it like this ... Fillter() then you will get that error because Fillter is expec...

Not enough input arguments.

How are you calling the function? If you call it like this ... Fillter() then you will get that error because Fillter is expec...

20일 전 | 0

| 수락됨

답변 있음

The logical indices in position 1 contain a true value outside of the array bounds.

You don't give enough information to diagnose why this is happening in your code, but here is an example of that error and how i...

The logical indices in position 1 contain a true value outside of the array bounds.

You don't give enough information to diagnose why this is happening in your code, but here is an example of that error and how i...

23일 전 | 0

답변 있음

Illegal use of reserved keyword "end"

In the statement s2=[a2(length(a2)) max([a2,a3,a4,a5,a6,a7,a11,a13,a17,a19,a23,a25,a29,a31,a35,a37]); you seem to have missed ...

Illegal use of reserved keyword "end"

In the statement s2=[a2(length(a2)) max([a2,a3,a4,a5,a6,a7,a11,a13,a17,a19,a23,a25,a29,a31,a35,a37]); you seem to have missed ...

28일 전 | 0

| 수락됨

답변 있음

i am a beginner matlab user , and i have problem with the number of decimal places , i need to increase them , what should i do ? here is the code , can anyone just edit it to increase the number of decimal places

You can use the format command, e.g. format long Note that MATLAB always stores the result as double precision by default -- y...

i am a beginner matlab user , and i have problem with the number of decimal places , i need to increase them , what should i do ? here is the code , can anyone just edit it to increase the number of decimal places

You can use the format command, e.g. format long Note that MATLAB always stores the result as double precision by default -- y...

약 1달 전 | 0

| 수락됨

답변 있음

Using chaotic sequence to generate random numbers

This GitHub repo has a MATLAB implementation. I cannot attest to its quality.

Using chaotic sequence to generate random numbers

This GitHub repo has a MATLAB implementation. I cannot attest to its quality.

약 1달 전 | 0

| 수락됨

답변 있음

How can I change this 3-D array(2000,21,80) to 4-D array(1000,20,21,80)?

Did you mean (1000,2,21,80)? If so, then you can use the reshape command: output = reshape(x,[1000,2,21,80]); where x is your ...

How can I change this 3-D array(2000,21,80) to 4-D array(1000,20,21,80)?

Did you mean (1000,2,21,80)? If so, then you can use the reshape command: output = reshape(x,[1000,2,21,80]); where x is your ...

약 1달 전 | 0

답변 있음

Resample from a nonuniform time history while keeping the peak and valley values

There is almost certainly not a built-in function that does this resampling in the exact way you want. Instead, you need to thin...

Resample from a nonuniform time history while keeping the peak and valley values

There is almost certainly not a built-in function that does this resampling in the exact way you want. Instead, you need to thin...

약 1달 전 | 0

답변 있음

"Error using plot, Value not a numeric scalar"

The LineWidth parameter should just be the number 2 (without quotes), not the character '2'. After that, you are going to run...

"Error using plot, Value not a numeric scalar"

The LineWidth parameter should just be the number 2 (without quotes), not the character '2'. After that, you are going to run...

약 1달 전 | 0

답변 있음

Convert each cell to 4D

The best method to do this might depend on how generalizable you need this to be to other cell arrays (with different internal a...

Convert each cell to 4D

The best method to do this might depend on how generalizable you need this to be to other cell arrays (with different internal a...

약 1달 전 | 0

답변 있음

Why can't I use fplot command ?

fplot expects a function as input. I think you want the plot command instead, which expects numerical vector input ... plot(x_t...

Why can't I use fplot command ?

fplot expects a function as input. I think you want the plot command instead, which expects numerical vector input ... plot(x_t...

약 1달 전 | 1

답변 있음

Correlation of two variables over time: can this happen?

Yes. This is known as Simpson's Paradox. Here is an example: rng default x1 = [1 2 3 4 6 7 8 9]'; x2 = [1 2 3 4 -6 -5 -...

Correlation of two variables over time: can this happen?

Yes. This is known as Simpson's Paradox. Here is an example: rng default x1 = [1 2 3 4 6 7 8 9]'; x2 = [1 2 3 4 -6 -5 -...

약 1달 전 | 1

| 수락됨

답변 있음

errorbar for x and y

This code works for me. What version of MATLAB are you running? If you have an older version, and cannot update, then you could...

errorbar for x and y

This code works for me. What version of MATLAB are you running? If you have an older version, and cannot update, then you could...

약 1달 전 | 0

| 수락됨

답변 있음

matrix variable problem in matlab

This documentation about indexing with logical values might help you understand.

matrix variable problem in matlab

This documentation about indexing with logical values might help you understand.

약 2달 전 | 0

답변 있음

I want to solve a problem with just numbers from 0 to 2, how do I do that?

Are you sure you copied everything from the assignment correctly? Can you post the text of the assignment here? I did the Gauss...

I want to solve a problem with just numbers from 0 to 2, how do I do that?

Are you sure you copied everything from the assignment correctly? Can you post the text of the assignment here? I did the Gauss...

약 2달 전 | 0

답변 있음

how to find index of matrix

It looks like you were checking the wrong columns. row = find (A(:,2)==9 & A(:,3)==5.125) Also, you need to use & rather than ...

how to find index of matrix

It looks like you were checking the wrong columns. row = find (A(:,2)==9 & A(:,3)==5.125) Also, you need to use & rather than ...

약 2달 전 | 1

답변 있음

Index exceeds the number of array elements

This is not strictly an answer to your question, but I recommend learning how to use the debugger. Then you will be able to pinp...

Index exceeds the number of array elements

This is not strictly an answer to your question, but I recommend learning how to use the debugger. Then you will be able to pinp...

약 2달 전 | 0

답변 있음

How to plot this figure? please help me.

I suggest you look for code for a similar figure in the MATLAB Plot Gallery.

How to plot this figure? please help me.

I suggest you look for code for a similar figure in the MATLAB Plot Gallery.

2달 전 | 0

| 수락됨

답변 있음

How to reorganize an array given an index

Here is one way: % Inputs array = [1,2,3,4,5,NaN,NaN,NaN]; idx_flag = [1,4,8]; % Get length of array for convenience L = ...

How to reorganize an array given an index

Here is one way: % Inputs array = [1,2,3,4,5,NaN,NaN,NaN]; idx_flag = [1,4,8]; % Get length of array for convenience L = ...

2달 전 | 1

| 수락됨

답변 있음

How can I plot a histogram out of a vector of percentages

I don't think you want a histogram (which would create the percentages from the raw data). I think you just need a bar graph.

How can I plot a histogram out of a vector of percentages

I don't think you want a histogram (which would create the percentages from the raw data). I think you just need a bar graph.

2달 전 | 0

| 수락됨