Community Profile

photo

Laura Proctor

MathWorks

Actif depuis 2011

Followers: 0   Following: 0

Contact

Statistiques

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

Afficher les badges

Feeds

Afficher par

A répondu
Inverted pendulum using fuzzy logical controller
This <http://www.mathworks.com/help/fuzzy/build-your-own-fuzzy-simulink-models.html cart and pole simulation> may be a good exam...

environ 9 ans il y a | 2

| A accepté

A répondu
Please, help to draw plot between
There seemed to be an issue with the dimensions of variables m and c. The following code shouldn't error. % wavread [m,...

plus de 10 ans il y a | 0

A répondu
Problem using sscanf in picking out numbers from string.
The following code should give you results close to what you want: res = sscanf(str1,'%*[^0123456789]%d') The idea is th...

plus de 10 ans il y a | 2

| A accepté

A répondu
How can I find 4 or more character pattern in number array
If you define the pattern that you're looking for as x, for example x = [3 9 12 3] then you can find the starting index...

plus de 11 ans il y a | 1

A répondu
Aligning Time Series data and calculating CAPM beta.
You're doing great for a beginner. You're using logical indexing in your code which is awesome. I'm assuming that you are ge...

plus de 11 ans il y a | 0

A répondu
How to build the search fast?
If you have the Statistics Toolbox, you could use a <http://www.mathworks.com/help/releases/R2012b/stats/dataset.html dataset> a...

plus de 11 ans il y a | 0

| A accepté

A répondu
How can I save the values inside ODE solver?
Does the random value need to be generated inside your ODE function? In other words, can you pass it in as an input variable? ...

plus de 11 ans il y a | 0

A répondu
How to use Switch case and if else in Embedded Matlab Function
You can use the same syntax that you would in MATLAB. Here are links to the documentation for <http://www.mathworks.com/help/ma...

plus de 11 ans il y a | 0

A répondu
How to: For loops for Excel Tab
If you know the names of your sheets, you can create a cell array containing those names. The output from the xlsread function ...

plus de 11 ans il y a | 0

| A accepté

A répondu
How to remove the data-type error in lsqcurvefit ?
It looks like the issue might be in the optim function in the use of the input variable S. Can you make a simple call to optim ...

plus de 11 ans il y a | 0

| A accepté

A répondu
Adaptive background Subtraction Algorithm
There are a couple things that I notice in this code. First, I'm not sure, but I think that you might want to apply the thresho...

plus de 11 ans il y a | 0

A répondu
How to: For loops for Excel Tab
I'm not sure exactly what you are asking with regard to num(2,13). But here is some code that will read in different tabs of an...

plus de 11 ans il y a | 0

A répondu
Consolidate Substring Code using Cellfun
It isn't necessary to loop through the char array. You could do something like this: y = { '10/5/05' ; '18/2/2004' ; '3/3/...

plus de 11 ans il y a | 0

| A accepté

A répondu
writing a matrix without loop
Yes, you can create this matrix without using a loop. Use array based mathematical expressions such as ./ and .* a = sin(2...

plus de 11 ans il y a | 1

A répondu
Plotting Multiple y-axes with different range on the same plot
The issue is that this function can only plot one line per set of axes - so only three lines. I have hacked Denis Gilbert's p...

plus de 11 ans il y a | 2

A répondu
Datenum - different date formats
Would something like this help? % Create a cell array containing dates in various formats y = { '10/5/05' ; '18/2/2004' ...

plus de 11 ans il y a | 1

| A accepté

A répondu
how could I use the "find" command to compare two matrices?
Comparing two matrices directly will give back a logical array: control_matrix= A<B; The find function will find the ind...

plus de 11 ans il y a | 1

| A accepté

A répondu
Create a matrix whereas values can be -180 0 or 200
I'm sure there's a more elegant solution, but here's one: x = randi(3,1,24)-1; x(x==1) = -180; x(x==2) = 200;

plus de 11 ans il y a | 1

| A accepté

A répondu
Calculating Max and Min of subsets of data
Is your matrix 7875 x 8? Also, when you say "every 57" does that mean the first 57 rows? The first 57 elements in the column...

plus de 11 ans il y a | 2

A répondu
Boxplot - Size of the Labels
set(findobj(gca,'Type','text'),'VerticalAlignment','top')

plus de 11 ans il y a | 0

| A accepté

A répondu
Find value of z of a surface plot when values of x and y are known.
You can do this using the <http://www.mathworks.com/help/matlab/ref/triscatteredinterp.html TriScatteredInterp> function. Her...

plus de 11 ans il y a | 0

A répondu
how do you write a programme with *if statement*for L infinity norm having written L1 and L2 norm. how do you represent L infinity norm?
MATLAB has a <http://www.mathworks.com/help/matlab/ref/norm.html norm> function that you can use to find all the norm values. I...

plus de 11 ans il y a | 0

A répondu
Need help Linearizing a Simulink Model?
Posting the comment from Erman Korkut as a solution: Frestimate usually takes a couple of tries to come up with the right inp...

plus de 11 ans il y a | 1

A répondu
Load CSV file to matlab and avoiding word written in csv file for data analysis
You can load it using the <http://www.mathworks.com/products/matlab/examples.html?file=/products/demos/shipping/matlab/textscanD...

plus de 11 ans il y a | 1

A répondu
For Loop Segment Troubleshooting
You can add a breakpoint in your script by clicking on the horizontal line to the left of the number in the MATLAB Editor. This...

plus de 11 ans il y a | 0

| A accepté

A répondu
index out of bounds because numel(averg)=1
You are using linear indexing to index into A, and so the output is a row vector. For example: A(1:end-2) will take all terms ...

plus de 11 ans il y a | 0

| A accepté

A répondu
omitting array
If your matrix is called m, you can reference the odd rows like this: m(1:2:end,:) If it is always going to be a vector ...

environ 12 ans il y a | 0

| A accepté

A répondu
Multipline plotting
X = [ A(:,1) A(:,3) ]'; Y = [ A(:,2) A(:,4) ]'; line(X,Y,'color','b')

environ 12 ans il y a | 0

| A accepté

A répondu
sqrt(2) 100 places and more
format long will show 15 digits. fprintf(1,'%.100f\n',sqrt(2)) will show 100 digits. However, that precision is ...

plus de 12 ans il y a | 0

A répondu
Optimization with complicated constraints
Yes, MATLAB can solve nonlinear optimization problems. Since it would be a lot to type everything out, this example <http://www...

plus de 12 ans il y a | 0

| A accepté

Charger plus