![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/5441222.jpg)
Christopher Berry
MathWorks
Followers: 0 Following: 0
I love all things code. However, Simulink is growing on me.
Professional Interests: Embedded Systems, FPGA, HDL, Code Generation
Feeds
Linking projects together in Simulink project
There are a couple of options for what you are describing, depending on your needs. The easiest, would be to use what is called ...
10 years 前 | 0
how can i convert irregularly placed space data into 3d grid
Enkuneh, I just answered a very similar question about this same topic - irregular to regular 3D data transformation. Check o...
10 years 前 | 2
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...
10 years 前 | 5
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...
10 years 前 | 0
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...
10 years 前 | 1
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 ...
10 years 前 | 0
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...
10 years 前 | 1
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|. ...
10 years 前 | 0
| 已接受
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. ...
10 years 前 | 0
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...
10 years 前 | 1
| 已接受
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...
10 years 前 | 0
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...
10 years 前 | 3
| 已接受
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 ...
10 years 前 | 0
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...
10 years 前 | 0
| 已接受
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...
10 years 前 | 0
| 已接受
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...
10 years 前 | 0
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...
10 years 前 | 1
| 已接受
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~=...
10 years 前 | 0
| 已接受
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...
10 years 前 | 0
| 已接受
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...
10 years 前 | 1
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...
10 years 前 | 2
| 已接受
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...
10 years 前 | 2
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...
10 years 前 | 0
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...
10 years 前 | 0
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...
10 years 前 | 0
how to plot struct data?
The |simout| structure has |simout.signals|, |simout.time| and |simout.blockName| fields. The |simout.signals| field also has a...
10 years 前 | 3
| 已接受
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: ...
10 years 前 | 0
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...
10 years 前 | 1
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...
10 years 前 | 1
| 已接受
How to calculate integral of a function ?
The function name that you are looking for is |integral| not |int|. Changing this should get your code working. You can see the...
10 years 前 | 0