Community Profile

photo

Joe


Active since 2013

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Simulink: How come my wire is all bent instead of straight?
Every time I use the sum block, when I try to connect one of the inputs to an output wire from another block it bends at an angl...

circa 7 anni ago | 0 answers | 0

0

answers

Question


Effective way to estimate the big O runtime?
In order to estimate the big O runtime of MATLAB's *find* function I have simply created a plot of the runtimes of the *find* fu...

oltre 8 anni ago | 2 answers | 0

2

answers

Question


Error using ODE solvers?
Hi I'm trying to solve for this system of ODEs using the ODE solver that works the fastest: d/dt[x1 x2 x3] = [-10^4*x1+x2^2...

oltre 8 anni ago | 1 answer | 0

1

answer

Question


Is there way to suppress the timer?
Hello, I am using tic and toc to measure the runtime of MATLAB's sort function for arrays of n lengths. In order to understand h...

oltre 8 anni ago | 2 answers | 0

2

answers

Question


How to look at the source code for MATLAB's built-in sort function?
I need to find the big O runtime for MATLAB's built-in sort function, but I'm not quite sure how to if I don't even know how the...

oltre 8 anni ago | 4 answers | 0

4

answers

Question


Problem with Forward Euler function?
I have created a function using the forward Euler's method to approximate the solution to the ODE dy/dx(x)=f(x,y(x)). The only p...

oltre 8 anni ago | 1 answer | 0

1

answer

Question


How to make my bisection method more accurate?
I have constructed a root-finding function based on the bisection method. The function works, however, the roots it gives me are...

oltre 8 anni ago | 1 answer | 0

1

answer

Question


What's wrong with my bisection method function???
I'm not quite sure what's exactly wrong with my bisection method function that I have written. Can someone please help me figure...

oltre 8 anni ago | 1 answer | 0

1

answer

Question


Generating random numbers in order?
How would you generate random numbers so that they are in ascending or descending order? Is there a way to create a function sim...

oltre 8 anni ago | 1 answer | 0

1

answer

Question


Computing the parameters of a model
I am having trouble understanding how to code this problem. I have a certain model y(x) = a1 + a2*x + a3*x^2. I need to create a...

oltre 8 anni ago | 1 answer | 0

1

answer

Question


Determining if the length of an array is even or odd?
How do i determine if the length of an array is even or odd? Is there a specific function that does this? I know length(A) gives...

oltre 8 anni ago | 1 answer | 0

1

answer

Question


Making a function produce a specific error?
I have a certain function that I created and I need it to produce a certain error when a certain condition is satisfied. For exa...

oltre 8 anni ago | 1 answer | 0

1

answer

Question


Output argument not assigned during call
I get this error message when I try to run a function that I created. I understand what this is saying, but when I look at my fu...

oltre 8 anni ago | 2 answers | 0

2

answers

Question


Separately creating two parts of an array?
I have an array x that is initialized to be of size 1 by n containing random values. The overall length of array x is some value...

oltre 8 anni ago | 2 answers | 0

2

answers

Question


Expressing floating point numbers in IEEE standard?
How would you express a floating point number in IEEE standard? There would be three parts, the sign, the biased exponent, and t...

oltre 8 anni ago | 3 answers | 0

3

answers

Question


Putting spaces between strings?
I have three different strings and are putting them together in an array. The result is simply the three strings combined. Howev...

oltre 8 anni ago | 2 answers | 0

2

answers

Question


The mantissa of a floating point number???
What is the mantissa of a floating point number? How would you find it?

oltre 8 anni ago | 3 answers | 0

3

answers

Question


Understanding switch and case expressions
a = 'hi'; switch a case {'hi','hello'} disp('hi, hello') case 'hi' disp('hi') end When executing this cod...

oltre 8 anni ago | 1 answer | 0

1

answer

Question


For loops vs. While loops
I know the two loops are used differently, although they could be used for the same purpose. However, how would you generally kn...

oltre 8 anni ago | 2 answers | 1

2

answers

Question


Need help understanding arrays
Let's say I have an array A = [1 2 3; 4 5 6] A = 1 2 3 4 5 6 A(1:2) would simply be 1 4 And A(2:3) would b...

oltre 8 anni ago | 2 answers | 0

2

answers

Question


The previous node in a linked list???
Are you able to access the previous node in a linked list? Like to traverse to the next node in a linked list it would just be ...

oltre 8 anni ago | 1 answer | 0

1

answer

Question


Displaying a linked list as an array?
How would I display a linked list as an array of the values of every node in the list, in the order of which the list traverses?...

oltre 8 anni ago | 1 answer | 0

1

answer

Question


Counting through linked lists?
How would you count through a linked list? I mean like for an array, you would just use a for loop to count through the array an...

circa 9 anni ago | 1 answer | 0

1

answer

Question


Linked lists guide or tutorial?
Does anyone know where I can find a comprehensive guide to linked lists in Matlab? I've tried looking online, but all I found we...

circa 9 anni ago | 1 answer | 0

1

answer

Question


MATLAB tutorial or guide?
Does anyone know of a good MATLAB tutorial or guide for people with no programming experience? I'm struggling with MATLAB as I h...

circa 9 anni ago | 1 answer | 0

1

answer