Community Profile

photo

James Tursa


Last seen: Today
3,379 2007 이후 총 참여 횟수

Interested in external applications, mex & engine applications with Fortran, C, C++, etc, particularly in the areas of speed improvement and memory management efficiencies.

담당자

James Tursa's 배지

  • Master
  • Personal Best Downloads Level 3
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • 36 Month Streak
  • Thankful Level 2
  • Revival Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

세부 정보 보기...

참여 게시물
보기 기준

답변 있음
Column Vector - Nonscalar arrays.
F = @(X, T) [F1(X, T); F2(X, T)];

약 1시간 전 | 1

답변 있음
How to find an explicit function when using Runge-Kutta or one of the pertinent codes in Matlab (ode45)
Symbolic Toolbox doc dsolve https://www.mathworks.com/help/symbolic/dsolve.html

약 1시간 전 | 0

답변 있음
Extracting parts of matrix for sub matrices
E.g., to put them into a cell array mat = your matrix result = mat2cell(mat,repmat(16,8,1),repmat(16,8,1));

약 1시간 전 | 0

답변 있음
Exact probability of a triangular distribution
The exact probability of getting a number greater than the mean is simply the sum of the probabily to the right of the mean. Si...

약 2시간 전 | 1

답변 있음
I want to rotate a point using Quaternion function
I took a look at this related link: https://github.com/petercorke/robotics-toolbox-matlab/blob/master/Octave/%40Quaternion/Quat...

약 4시간 전 | 0

답변 있음
Converting sensor frames using Aerospace Toolbox
This discussion on MATLAB quaternion convention might help you: https://www.mathworks.com/matlabcentral/answers/465053-rotation...

약 5시간 전 | 0

답변 있음
Problems with sortrows and str2double, why is it still string?
>> [~,x] = sort(str2double(Respiration_Values)); >> B = Respiration_Labelled(x,:) B = 7×2 string array "139299" "...

약 5시간 전 | 1

답변 있음
Binary Image: Count number of pixels that are 1.
nnz(bw)

약 20시간 전 | 1

답변 있음
error when running a function
Do not push the green triangle "go" button in the editor since that calls the function without any input arguments. Instead, cal...

약 23시간 전 | 1

답변 있음
solving a set of differential equations with ode45
Initial conditions is a 4-element vector: IC1=[0; 0; 298; 298]; But in your derivative function you have this: M=[5,15,25,55]...

1일 전 | 0

| 수락됨

답변 있음
Loops - physics - nonlinear gravity & acceleration
Your immediate problem is that h is a vector, so the right hand side of this statement is a vector: g(i+1)=(400000000/(6371+h...

1일 전 | 0

답변 있음
Looping over column and returning values where conditions are met
In general, perform find( ) on the condition you want. E.g., find(matrix(:,4)>80) would return the row numbers where the 4th c...

1일 전 | 0

답변 있음
sparse half-precision matrices
The sparse format in MATLAB only supports double and logical data types. To use any other data type you would have to write all...

2일 전 | 0

| 수락됨

답변 있음
RK4/AB4, need help with correct code for 2 second order equations in Matlab
So, first define a 4-element state vector. To keep the nomenclature the same as the MATLAB docs, I will use the variable name y....

2일 전 | 0

답변 있음
Cell Arrays and Indexing?
This is the reverse of your last assignment. It needs only one loop over the number of rows, and the cell array element for tha...

3일 전 | 0

| 수락됨

답변 있음
Cell arrays and Indexing with Cells HELP?
This row = Q(1:end); col = Q{1:end}; Z(row, col) = true; is actually a good attempt and shows you understand the problem .....

3일 전 | 0

| 수락됨

답변 있음
repeat the iteration with an error using try/catch
Maybe this construct does what you want while( true ) try MyProgramHere ...

3일 전 | 0

답변 있음
Storing doubles in the smallest integer class for which they fit without changing their value?
Some hints: Don't use loops, use vectorized code to figure out which integer size works. intmax(type) gives you the largest va...

3일 전 | 0

| 수락됨

답변 있음
How do I make a function work with vectors?
Use element-wise divide operator ./ (with the dot) instead of the matrix divide operator / (without the dot). E.g., tanH(x)=((...

4일 전 | 0

| 수락됨

답변 있음
Question already answered - ODE solving use RK4
Your basic problem is that you have two states, x and y, but your function arguments are inconsistent with this. Take this code:...

4일 전 | 1

| 수락됨

답변 있음
Really! fprintf cell error
What happens if you change this fprintf(fid, '%d %s %s %f',shape{i,:}); to this fprintf(fid, '%d %s %s %f',shape{i,1},shape{i...

4일 전 | 0

| 수락됨

답변 있음
MATLAB Homework Problem: "Incorrect use of '=' operator" in a for loop
This: for (i = 2:0.5:15 && j = -2:0.5:12) Needs to be two nested loops: for i = 2:0.5:15 for j = -2:0.5:12

4일 전 | 1

답변 있음
Homework help.(User defined functions )
Hint: See these functions: doc size doc isequal doc error

4일 전 | 0

| 수락됨

답변 있음
trouble understanding for loops
The first problem is getting the input from the user. This assigns a char string to pv: pv=('What was your original mortgage v...

4일 전 | 0

답변 있음
OR statement in a while Loop
Change to AND: while ((playerhp > 0) && (enemyhp > 0)) I.e., you only do the while loop when both hp are positive. It eit...

4일 전 | 0

| 수락됨

답변 있음
Fastest way to find the row number containing the most amount of black pixels in a gray-scale image?
[~,row_blackPix] = max(sum(image <= 20,2))

4일 전 | 0

| 수락됨

답변 있음
Varying step size for RK Method?
The only variable that depends on a new n is h, so only recalculate h and then run your loop as is. Although if you want to make...

5일 전 | 0

답변 있음
conversion from base 13 to IEEE 754
For the base 13 conversions: doc dec2base doc base2dec https://www.mathworks.com/help/matlab/ref/dec2base.html https://www.m...

5일 전 | 0

답변 있음
Whats wrong with my code? Taylor series Approx with error
You probably just need an absolute value error = abs((true-s)/true)*100; %Percent Error Formula That being said, true and erro...

6일 전 | 0

답변 있음
Functions and For Loops For Polynomials
Some guidance: 1) The sum=0 part needs to be moved outside the loop, prior to the loop starting. The way you have it the sum re...

6일 전 | 1

| 수락됨

Load more