Community Profile

photo

the cyclist


No strings on me

Last seen: Today 2011 이후 활성

Obsessive runner. Flâneur. 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.)

Programming Languages:
Python
Spoken Languages:
English

Statistics

All
  • Treasure Hunt Participant
  • Scavenger Finisher
  • Master
  • Thankful Level 4
  • Likeable
  • Famous
  • First Review
  • First Submission
  • 36 Month Streak
  • Revival Level 3
  • Knowledgeable Level 4
  • First Answer

배지보기

Content Feed

보기 기준

답변 있음
Need to delete outliers by seeing the plot
data = data(data>-4);

약 13시간 전 | 0

| 수락됨

답변 있음
how to read mixed date and data
I would try the readtable function. You can specify the input formating if needed.

약 14시간 전 | 0

답변 있음
How can I get multiple plots on one graph, not overlapping?
What an ugly and potentially confusing plotting style. Too bad you are being coerced into doing it that way. One way to do this...

약 14시간 전 | 0

| 수락됨

답변 있음
How to convert string to double array in table
% My best guess at your data A = {'[28.346853874154966, 284.04836936606813, 57.820072802912115, 64.72700622938805]'; '[16.5200...

약 19시간 전 | 0

| 수락됨

답변 있음
How can I create a Poll in a community
I am as certain as I can be that only MathWorks staff can create such a poll.

약 20시간 전 | 0

| 수락됨

답변 있음
How to delete specific cells according to the condition from cell array?
This line of code will identify the cell locations that have a 7x4 array, having those two elements equal: deleteIdx = cellfun(...

약 23시간 전 | 0

답변 있음
Is there a way to set the color tag attribute in macOS with MATLAB?
Yes, it is possible. Here is the github repo of a command line tool that will manipulate tags. You can call that command line ...

1일 전 | 1

| 수락됨

답변 있음
How can I get data from evaluating a function, say y=x^2+5 and put it in table?
x = linspace(0.1,0.9,50); y = x.^2+5; tbl = table(y.');

2일 전 | 1

| 수락됨

답변 있음
Linear regression fit model for Multi-variant responses
I think you need mvregress.

2일 전 | 0

답변 있음
Plotting data against time
New answer based on your update. The problem is that your original time series is in two different formats -- not including the...

4일 전 | 0

| 수락됨

답변 있음
Plotting data against time
Works for me, when I correctly specify valid dates using the input format. I'm guessing that your datetime is somehow messed up...

4일 전 | 0

답변 있음
How do I display multiple num2str in a single row
I expect you'd be much better off using sprintf to format your output.

5일 전 | 0

답변 있음
Why am I receiving the error "Array indices must be positive integers or logical values."?
Here is a completely different tack, that I think is less confusing because you just defining the function I(z) more naturally a...

5일 전 | 0

| 수락됨

답변 있음
How can I make an exponential fit using two points of my data.
You can use the 'Weights' Name-Value pair, and heavily weight the first point. Here is a made-up example. Notice how f2 passes t...

5일 전 | 0

| 수락됨

답변 있음
Why am I receiving the error "Array indices must be positive integers or logical values."?
You have at least two problems with your code. First, you need an explicit multiplication sign in these lines: I(i) = I0*sin(k*...

6일 전 | 1

답변 있음
Shaded Standard Deviation Corridors
It's because the last three values of x and y are NaN. dataset=xlsread('Book1.xlsx', 'Sheet1'); tensile_stress = dataset(:,1);...

6일 전 | 1

답변 있음
Visualize a vector field function with matlab
x = -3 : 0.5 : 3; y = -3 : 0.5 : 3; z = -3 : 0.5 : 3; [xx,yy,zz] = meshgrid(x,y,z); Fx = xx.*zz; Fy = xx.*yy; Fz =...

7일 전 | 1

| 수락됨

답변 있음
hold on option is not working in the present code
The problem doesn't really have anything to do with the legend. The fundamental problem is that you first define L as a paramete...

8일 전 | 0

| 수락됨

답변 있음
delete specific rows in a table
I believe this does what you want. Note that this file doesn't have any repeated integer times. So, you don't need the second st...

8일 전 | 0

| 수락됨

답변 있음
How to access the equation above the while loop
One straightforward way to do this is by using an anonymous function: % Define an anonymous function for the limit f_limit = @...

8일 전 | 1

| 수락됨

답변 있음
Trying to make a code that tells the weather
You should be able to access a weather API (e.g. this free one), using the webread function.

9일 전 | 0

답변 있음
legend NumColumns not working in 2018a
It looks to me that the documentation states the change was in R2018b, not R2018a. As you can see, that code works fine here (R...

9일 전 | 0

| 수락됨

답변 있음
How to plot like the following figure?
I recommend looking at the MATLAB Plot Gallery, finding a figure that is close to what you need, and pulling the code from there...

9일 전 | 0

답변 있음
Transfering any point in PC space to original space
Borrowing the first few lines of code from my PCA tutorial ... rng 'default' M = 7; % Number of observations N = 5; % Number ...

9일 전 | 1

| 수락됨

답변 있음
How can I find the average of several lines whose datasets are different lengths?
One possible solution would be to interpolate (e.g. with spline function) using the interp1 function, to a common grid of points...

9일 전 | 0

답변 있음
Why do I receive "Index exceeds the number of array elements (1)" ?
m is a scalar -- the length of the vector x, plus one. You try to index into it as if it is a vector, for example in the expres...

10일 전 | 0

| 수락됨

답변 있음
Normalize unit vector to single didgit integers
Does the following do what you want? f = @(t) round(t/abs(min(t))); f([ 0.4 -0.4 0.8]) f([ 0.123 0.123 .5]) It gives a dif...

10일 전 | 0

답변 있음
VPA error Index exceeds number of array elements
I'm confused, because the code you posted runs fine: syms t P(t)= 30/(3+7*exp((-.03*t))) P(1960) vpa(P(1960)) Is it possibl...

10일 전 | 0

답변 있음
How can I solve this error?
When defining a function using that syntax, it has to appear inside a file, for example a text file with the name GRxx_P8_E1.m ...

10일 전 | 0

| 수락됨

답변 있음
How to plot binary matrix as dots?
M = magic(7); B = M > mean(M); colormap('gray') imagesc(B) axis square

10일 전 | 0

더로드