Community Profile

photo

ME


Last seen: 3 mois il y a Actif depuis 2016

Followers: 0   Following: 0

Working in mathematical biology.

Statistiques

All
  • MATLAB Flipbook Mini Hack Participant
  • MATLAB Central Treasure Hunt Finisher
  • 6 Month Streak
  • Thankful Level 1
  • Cody Challenge Master
  • Matrix Manipulation I Master
  • Treasure Hunt Participant
  • Matrix Manipulation II Master
  • Scholar
  • Indexing II Master
  • Draw Letters
  • Number Manipulation I Master

Afficher les badges

Feeds

Afficher par

A répondu
Issues with findpeaks()
I must stress that I am not sure and I don't have acces to the Signal Processing Toolbox to check. However, have you tried rever...

presque 4 ans il y a | 1

| A accepté

A répondu
hide legend for certain curves in a Matlab plot
If you aren't fussed about actually doing this within the code then you can select the lines, open up the property editor, find ...

environ 4 ans il y a | 11

| A accepté

A répondu
Loop and write into a cell
This part of your code: for k=1:10 c{k}=sum(p(1:,k) 1)) end has two open (left) brackets and three close (right) b...

environ 4 ans il y a | 0

A répondu
Need to solve a nonlinear ODE using matlab
There are a range of ODE solvers available in MATLAB that could do this. The following link can help you pick which one is most ...

environ 4 ans il y a | 0

A répondu
HELP! My for loop code won't produce a line on the graph I plot
I'm not 100% sure but I'd guess you want the last line to be: semilogx(A,F) because otherwise everything is plotting at the sa...

environ 4 ans il y a | 0

A répondu
How to write this matlab code?
Assuming you want the mean of the whole matrix (not mean by row/column or something else) then the first line will be: A = (B -...

environ 4 ans il y a | 0

A répondu
Jumping over several loops
There are a few ways of doing this. They have largely been covered in the below links: https://uk.mathworks.com/matlabcentral/a...

environ 4 ans il y a | 0

A répondu
Smooth bad data in MattLab
I think you could easily do this by using find to locate the indices of all values lying in the shifted range. This would be som...

environ 4 ans il y a | 0

| A accepté

A répondu
How to select certain columns of a matrix only when the values in the 4th row are bigger than three values of the other four rows in that particular column?
For the example in your question, the following will work: [~,c] = size(A); a = ones(1,c); for col = 1:c if((sum(abs(A(4...

environ 4 ans il y a | 1

| A accepté

A répondu
Finding indices of first maximum value and last minimum value of a square wave
You could use f = find ( y > threshold ) to find the indices corresponding to all values that exceed some threshold value. The...

environ 4 ans il y a | 0

A répondu
Hi, I have set of values for x (x = 1:10) and I have a equation y = x^(1/2)/x, how can i get and display an array of values of y from the x's ?
I don't know how you've got one number but I think you should be using: x = 1:10 y = x.^(1/2)./x

environ 4 ans il y a | 0

A répondu
how can i save variables in a for loop?
If your issue is how to get the file names then you can use: save( strcat( 'DesignResults_', num2str(n) ); within your loop an...

environ 4 ans il y a | 0

A répondu
How to show first value on axis cuted with xlim?
Sorry, that's my fault. In that case you'll need to change the tick locations - see the below for more information. https://uk...

environ 4 ans il y a | 1

A répondu
How to show first value on axis cuted with xlim?
I just tried your way and I am getting the zero showing up on the x-axis so I'm not sure what is going on there. As an alternat...

environ 4 ans il y a | 1

A répondu
Brace indexing is not supported for variables of this type
I think Walter was onto the right thing in his comment. new_precipitation is of type 'double' and so doesn't support brace (i.e....

plus de 4 ans il y a | 2

| A accepté

A répondu
Adjust z-axis location for a pcolor() plot
Okay, so just in case anybody has been looking here anticipating an answer and been disappointed. I have managed to figure this ...

plus de 4 ans il y a | 2

| A accepté

A répondu
How to solve Iteration Equation ?
You just need to choose how many iterations you want to do, for example: n = 1; You then need an initial value to feed into th...

plus de 4 ans il y a | 0

A répondu
duplicate values in array
You can use the repelem function as follows: repelem(angvel,10) to get each value repeated ten times . If instead you wanted ...

plus de 4 ans il y a | 1

| A accepté

A répondu
Consolidating counts & sum by Year Range
If you wanted to get an array containing the sums for all of your defined ranges then you could begin with R = [2001 2003; ...

plus de 4 ans il y a | 0

A répondu
Calculating results for Partial Sums
The main problem here is that you arent actually summing the y values as you go along. You are not adding y to the sum like you ...

plus de 4 ans il y a | 0

| A accepté

A répondu
How to save quiver3 arrow plot as vector graphic pdf
Have you tried looking at the answers in the following link: https://uk.mathworks.com/matlabcentral/answers/2755-printing-figur...

plus de 4 ans il y a | 0

| A accepté

Question


Replace all instances of a value with random number
I am currently trying to replace all instances of the value 1 in an array with a different random number. For example, if I hav...

plus de 4 ans il y a | 1 réponse | 0

1

réponse

A répondu
Asking for user input only once with input, or take values like pi/3 with inputdlg
When you use the inputdlg function and input something like pi/4 it appears to save everything as a cell array of strings. You c...

plus de 4 ans il y a | 1

| A accepté

A répondu
how do i find the closed form solution of this differnce equation? pls help! (not in matlab script)
Assuming you just want to find the equilibrium value rather than a solution for all time. Then just set y = y_n = y_(n-1) and re...

plus de 4 ans il y a | 0

A répondu
How is R-square calculated in curve fitting tool for LAR and bisqaure robust fit option?
Does this link help at all? https://uk.mathworks.com/matlabcentral/answers/183690-what-is-the-difference-between-lar-and-the-bi...

plus de 4 ans il y a | 0

A répondu
import data and plat a 3D
I think you are correct about the need to interpolate. You could try having a read of the link below - that should give you some...

plus de 4 ans il y a | 0

A répondu
Legend Colors not according to figure
Walter Roberson is correct in his comment. You can find more information on how to sort this in the following links: https://uk...

plus de 4 ans il y a | 1

| A accepté

A répondu
How to add plot in the outside with 2 for loop ?
When you are plotting inside the for loop, I'd bet you are plotting collections of 7 data points each time around the loop (i.e....

plus de 4 ans il y a | 0

A répondu
Merging two irregular curves ??
When you say merge, I'm assuming you simply want to add together the value of the two curves at each point along them. If so the...

plus de 4 ans il y a | 0

| A accepté

A répondu
Values over 1000 use e
For the first part of your question, you can use: format longG which will allow you to see the maximum possible number of digi...

plus de 4 ans il y a | 0

Charger plus