photo

Jacob Ward


Last seen: 5 months ago Active since 2017

Followers: 0   Following: 0

Statistics

All
MATLAB Answers

2 Questions
18 Answers

Cody

0 Problems
732 Solutions

RANK
1,593
of 300,338

REPUTATION
44

CONTRIBUTIONS
2 Questions
18 Answers

ANSWER ACCEPTANCE
100.0%

VOTES RECEIVED
8

RANK
 of 20,922

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK
122
of 168,149

CONTRIBUTIONS
0 Problems
732 Solutions

SCORE
10,617

NUMBER OF BADGES
53

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

AVERAGE NO. OF LIKES

  • Thankful Level 2
  • Knowledgeable Level 2
  • Indexing II Master
  • Project Euler I
  • Strings III Master
  • Sequences And Series III Master
  • Scholar
  • CUP Challenge Master
  • R2016b Feature Challenge Master
  • Indexing III Master
  • Draw Letters
  • Cody Problems in Japanese Master

View badges

Feeds

View by

Answered
Load files from two different folders
Use the addpath() function to add the path to your second folder to the working directory: Add folders to search path - MATLAB ...

2 years ago | 0

Answered
Question related to pcolor bar and its position
You can manually change the position of the colorbar using the 'position' property. Here's an example: fig = figure; subplot(2...

2 years ago | 1

| accepted

Question


When copying plot from one subplot position to another using copyobj, the second plot exhibits "hold on" behavior while the first doesn't.
Here's a bare bones version of the code that illustrates the problem. I want both plots to not hold on to previous iterations. W...

2 years ago | 2 answers | 0

2

answers

Answered
How to count date occurrence independently of year?
This is a cool way of visualizing it as well: clear; dates = readtable('C:\Users\jacob\Downloads\Dates.xlsx','ReadVariableName...

6 years ago | 0

Answered
I need help with my code. I don't understand what the error code is for. This is the error code Error: File: Lab1Modeling.m Line: 18 Column: 12 The expression to the left of the equals sign is not a valid target for an assignment.
There are a few problems with your code as written: First, you are using curly braces instead of using the while/end or if/end ...

6 years ago | 1

Answered
How do I Average across structure
Here's a possible solution I used to solve your problem: clear; close all; % This part just creates dummy data similar t...

7 years ago | 0

| accepted

Answered
I keep getting ??? Error using ==> plus Matrix dimensions must agree. Error in ==> dewpoint at 6 f(T,RH)=((a*T)./(b+T))+log(RH/100)
Your T has 4 elements (1x4) while your RH has 8 (1x8). When you try to add them together in your function, MATLAB doesn't know ...

8 years ago | 0

Answered
count frequency of each unique occurence in an Nx2 matrix
You could iteratively test each row for the combo you are looking for, adding 1 to the total each time a match is found, like so...

8 years ago | 1

| accepted

Answered
please help regarding plot
Doubt you'll get much use out of this, but here's how I recreated the plot in the link you gave! numbers = round(9*rand(5...

8 years ago | 0

Answered
Recursion, stock simulation
Instead of giving each variable a name with a different number, store all of these things in one array. So instead of S_0, S_1,...

8 years ago | 0

Answered
Read different files with different names (string) in a loop in MATLAB
You don't need to use sprintf. Try the following: C={'a.dat', 'b.dat', 'c.dat',...}; for i = 1:n fid(i) = fopen(C{i}...

8 years ago | 0

| accepted

Answered
Need help finding a point on a line.
The polyfit() function you are using gives you the slope and y-intercept of your best fit line. In this case, your p = [0.2190,...

8 years ago | 0

Answered
Anybody know how to simplify this?
Not sure about the first one, but for the second one, the for loop and indexing is unnecessary. See this example: This... ...

8 years ago | 0

Answered
Use ode values without storing
You could create a function that calls ode23, finds the sum of S, and then returns that sum. Something like this: function...

8 years ago | 0

Answered
Calculating radius of circle
Using the following equation: <<http://hawaii.hawaii.edu/math/Courses/Math110/Graphics/Circle.jpg>> You have three unknown...

8 years ago | 3

Answered
How can i convert .dat file values into days or months or years? Using Matlab?
If I'm understanding you correctly, maybe try something along these lines: milliSeconds = 221+3.5*rand(15006,1); % This ...

8 years ago | 0

| accepted

Answered
I have a matrix which is 1000 columns and 3621 rows, how do I take the mean of each row?
In general, if you have a matrix A and want to take the mean across a certain dimension, dim, you should use mean(A,dim). ...

8 years ago | 1

| accepted

Answered
how to eliminate unwanted spikes with peaks
You could try interpolating the data to get a clearer peak. Here's an example: This code generates a peak similar to the one...

8 years ago | 1

Answered
Can please somebody check my code and tell me what I ma doing wrong. I am trying to write a code for AM modulated wave of amplitude A to plot N element array of displacement values.
First off, please try to stick to the guidelines for posting questions to this site. See this answer for help in that area: ...

8 years ago | 0

Question


Interp2 yields undesired results on center daigonal.
I am doing cross spectral matrices on some data where they look something like this: <</matlabcentral/answers/uploaded_files/...

8 years ago | 2 answers | 0

2

answers