Community Profile

# Christopher Berry

### MathWorks

I love all things code. However, Simulink is growing on me.
Professional Interests: Embedded Systems, FPGA, HDL, Code Generation

Ver insignias

#### Content Feed

Ver por

Respondida
There are a couple of options for what you are describing, depending on your needs. The easiest, would be to use what is called ...

más de 8 años hace | 0

Respondida
how can i convert irregularly placed space data into 3d grid

más de 8 años hace | 2

Respondida
Creating a 3d volumetric matrix for irregular xyz data with multiple depths
Jenny, It seems like you just need to map your nodes to the input arguments for |scatteredinterpolant|. For an irregular grid...

más de 8 años hace | 5

Respondida
Mutual array between matrixes ( complete )
I think that your algorithm description and examples values are contradictory, so its hard to answer this exactly. But, I will s...

más de 8 años hace | 0

Respondida
how to get values of a matrix in MATLAB where the indices are given in a MATRIX form?
Valeria, You can access a subset of the rows (but all of the columns) by converting the column indexes returned by |sort| int...

más de 8 años hace | 1

Respondida
How do I invoke a shadowed core MATLAB function (not built-in) from an overloaded function of same name
Julian, I think you had the right idea with the |run| command to call |print|, but use the fullpath instead of |cd| into the ...

más de 8 años hace | 0

Respondida
read a large prime number(which is in hexadecimal form) from a file and store that in a global variable(integer form)
Anil, Your prime number is a 192 character hexadecimal number, so that is roughly |2^768| in size. This is much bigger than t...

más de 8 años hace | 1

Respondida
Bootstrap with observations not being rows
Fernando, The function |bootstrp| will take in a column vector of |cells| as well as a standard vector/matrix of |doubles|. ...

más de 8 años hace | 0

Respondida
create a loop using regexp
You can do this with regular expressions, but your name requirements seem simple enough to do with |dir| and |sprintf| instead. ...

más de 8 años hace | 0

Respondida
How can I plot trajectories on top of a map?
The Mapping toolbox has a number of great functions to help out with exactly this type of thing. If you just want the specifi...

más de 8 años hace | 1

Respondida
Accessing sparse matrix components in MATLAB
As far as I can tell (from looking through the documentation) there is not a quick and easy way to get access to sparse competen...

más de 8 años hace | 0

Respondida
Several draws from multivariate normal distribution
Cris, Since your |sigma| matrix is diagonal, there is no need to use a multivariate distribution - your variables are complet...

más de 8 años hace | 2

Respondida
Several draws from multivariate normal distribution
The function you are looking for is |mvnrnd|. You will still have to call |mvrnd| one distribution at a time, and hence looping ...

más de 8 años hace | 0

Respondida
Plotting higher-dimensional data in two-dimensions which has already processed using supervised learning
James, I think what you might be looking for is |scatter| coupled with specifying the |MarkerColor| as a vector corresponding...

más de 8 años hace | 0

Respondida
How to select specific rows with a certain range/certain value in another row?
Pinga, 1. To get |Data| as a 1x90 cell array, use the following code: Data = Data{1}(1:90) There are two ways to ref...

más de 8 años hace | 0

Respondida
Control Simulibk step size through an internal coondition
Anfanger, In order for the parameters |MinStep| and |MaxStep| to be enabled, the solver |Type| must be |VariableStep|. If y...

más de 8 años hace | 0

Respondida
Comparing accuracy of symbolic computation with matlabFunction
Hari, It seems you have answered your own question here, but just to clarify on the issue of accuracy, I will add a little to...

más de 8 años hace | 1

Respondida
How to get rid of zeros in data?
I think you were on the right track with Conversion_Eff=Conversion_Eff(Conversion_Eff~=0); Accel=Accel(Conversion_Eff~=...

más de 8 años hace | 0

Respondida
Switch block need help
Adham, The documentation for this block is a bit confusing. Think of it as an |if-else|, which may make more sense if you hav...

más de 8 años hace | 0

Respondida
How to implement a simulink model to perform Matrix multiplication ?
Matrix multiplication in Simulink is almost as easy as it is in MATLAB itself. See the block diagram below: <</matlabcentra...

más de 8 años hace | 1

Respondida
How can I use fprintf to save a txt file with different size matrix ?
One way you might do this is to use |if-else| statements around your |fprintf|, like this: fprintf(fid, '%d\t', Ultratimefin...

más de 8 años hace | 2

Respondida
Placing a Title on Bounding Box
What you are looking for is either |annotation|. You can also you |sprintf| to get the string formatted with the information yo...

más de 8 años hace | 2

Respondida
Is there a faster way to plot wireframe cubes from their centers and sizes?
If all you need is truly a wireframe cube, then you can speed things up a quite a bit by using only lines and avoiding patches a...

más de 8 años hace | 0

Respondida
I have some force data and corresponding time data. How to remove vibration signal from force data?
Since there is a "gap" between your desired signal and the unwanted vibrations, the simplest way to do what you are describing i...

más de 8 años hace | 0

Respondida
How can I plot two arrays with different number of columns in one figure with different colours?
MATLAB uses (row,column) indexing, so I think you've got it backwards in your examples A and B :) But, assuming you want to...

más de 8 años hace | 0

Respondida
how to plot struct data?
The |simout| structure has |simout.signals|, |simout.time| and |simout.blockName| fields. The |simout.signals| field also has a...

más de 8 años hace | 3

Respondida
Multiple Text files to Labeled matrix/array
It sounds like you really should be using a |table| data type. Take a look at some of the examples on the document page here: ...

más de 8 años hace | 0

Respondida
Adjusting the numbers in a string
Will, You can use |sprinf| to create the file name strings and |%03d| to get up to 3 leading zeros. For example >> spri...

más de 8 años hace | 1

Respondida
How to reshape a vector without knowing the dimensions?
Using |reshape| with only 2 dimensions specified will work only if the number of elements is such that the 3rd dimension fits ex...

más de 8 años hace | 1