Feeds
提问
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...
10 years 前 | 0 个回答 | 0
0
个回答提问
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...
11 years 前 | 2 个回答 | 0
2
个回答提问
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...
11 years 前 | 1 个回答 | 0
1
个回答提问
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...
11 years 前 | 2 个回答 | 1
2
个回答提问
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...
11 years 前 | 4 个回答 | 1
4
个回答提问
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...
11 years 前 | 1 个回答 | 0
1
个回答提问
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...
11 years 前 | 1 个回答 | 0
1
个回答提问
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...
11 years 前 | 1 个回答 | 0
1
个回答提问
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...
11 years 前 | 2 个回答 | 0
2
个回答提问
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...
11 years 前 | 1 个回答 | 0
1
个回答提问
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...
11 years 前 | 1 个回答 | 0
1
个回答提问
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...
11 years 前 | 1 个回答 | 0
1
个回答提问
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...
11 years 前 | 2 个回答 | 0
2
个回答提问
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...
11 years 前 | 2 个回答 | 0
2
个回答提问
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...
11 years 前 | 3 个回答 | 0
3
个回答提问
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...
11 years 前 | 2 个回答 | 0
2
个回答提问
The mantissa of a floating point number???
What is the mantissa of a floating point number? How would you find it?
11 years 前 | 3 个回答 | 0
3
个回答提问
Understanding switch and case expressions
a = 'hi'; switch a case {'hi','hello'} disp('hi, hello') case 'hi' disp('hi') end When executing this cod...
11 years 前 | 1 个回答 | 0
1
个回答提问
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...
11 years 前 | 1 个回答 | 1
1
个回答提问
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...
11 years 前 | 2 个回答 | 0
2
个回答提问
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 ...
11 years 前 | 1 个回答 | 0
1
个回答提问
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?...
11 years 前 | 1 个回答 | 0
1
个回答提问
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...
11 years 前 | 1 个回答 | 0
1
个回答提问
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...
11 years 前 | 1 个回答 | 0
1
个回答提问
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...
11 years 前 | 1 个回答 | 0