photo

Jay Gersten


Active since 2015

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


How do I make an efficient While loop? setting true = 0, then while true = 0, results in an error on the while line. of code. What is wrong with that logic?
I want to run this while loop, and want to make sure i am doing it an efficient manner. I'm a beginner level matlab user in coll...

6 years ago | 1 answer | 0

1

answer

Question


How do I return a matrix in a function? I keep getting an error that says "Assignment has more non-singleton rhs dimensions than non-singleton subscripts"
Here is my code I wrote, function [out] = two_link_bot(theta1, theta1_dot, theta1_ddot, beta, beta_dot, beta_ddot)...

7 years ago | 1 answer | 0

1

answer

Question


Why won't my hold on work?
I am trying to plot a piece wise function using fplot. The code won't retain the previous graphs. I tried even using the example...

7 years ago | 1 answer | 0

1

answer

Question


This is code for Modified Regula Falsi method for finding roots. Something in here is preventing the if statements from executing properly.
function ModRegFal = ModRegFal(a, b, n) format long; a = input('Enter a value for lower boundary a: '); b =...

8 years ago | 0 answers | 0

0

answers

Question


Plotting the Tangent Line
I am trying to plot the tangent line to a curve given by the parametric equations x = sin(t), y = cos(t), z = t I have no i...

8 years ago | 1 answer | 0

1

answer

Question


Fixing Error using plot Invalid first data argument - new to matlab
I am trying to plot the function y=cos(x)*sin(x^2) and its derivative from -pi to pi. Here is my code. Why do I keep getting err...

9 years ago | 1 answer | 0

1

answer