Resuelto


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

más de 14 años hace

Resuelto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

más de 14 años hace

Resuelto


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

más de 14 años hace

Respondida
Why solution of this equation is linear in simulink
Hi, hmm, the answer probably is "because you made an error while implementing the model", but I guess this is something you a...

más de 14 años hace | 0

Respondida
Parallel Computing Toolbox - Need help to start with...
Hi Alok, a simple sample that employs all workers (and therefore should spread across the machines your workers run on) would...

más de 14 años hace | 0

Respondida
how to decrements variable in for loop
Hi, doc for and take a look at the parameter "stepval". Titus

más de 14 años hace | 1

Respondida
Parallel Computing Toolbox - Need help to start with...
Hi Alok, some clarifications: you want to use "two systems". Does this mean, two different machines? In this case the Paralle...

más de 14 años hace | 2

| aceptada

Respondida
how to insert elements in listbox?
Hi Usama, something like the following: files = dir(fullfile(theFolder, '*.jpg')); set(handles.listbox1, 'string', {f...

más de 14 años hace | 0

Respondida
Using the solve function to solve for x in a quadratic
Hi, why do you then compute symbolically? x = roots([a0 -(B/A-Delta) n]); xpos = x(x>0) gives you 50.7873. Tit...

más de 14 años hace | 0

Respondida
Building a jar file in Matlab
Hi Ali, just to make sure: you have an .exe compiled from MATLAB file and want to create a jar file from it? That's not possi...

más de 14 años hace | 0

Respondida
Mex & shared library
Hi, usually it is sufficient to do the following: add an include statement for the library to your mex file, so that the comp...

más de 14 años hace | 1

Respondida
Simulink - find_system does not work properly
Hi, if the block is in a library, you should "follow links", i.e., find_system(gcs, 'FollowLinks', 'on', 'Tag', 'Develop...

más de 14 años hace | 0

Respondida
can't load file.mat into listbox?
Hi, whos might read directly from file, i.e., vars = whos('-file', 'file.mat'); set(handles.listbox1, 'String', {vars...

más de 14 años hace | 1

Respondida
Read double datas
Hi, with fscanf you need not read all data at once but might read only N numbers (take a look at the doc). Use ftell and fsee...

más de 14 años hace | 0

Respondida
How to fix error done by pressing "Cancel" button
Hi, the uiputfile dialog returns 0 for the filename if the user presses cancel: filename = uiputfile; if filename==0 ...

más de 14 años hace | 5

| aceptada

Respondida
Simulink scope autoscale
Hi Raldi, assuming the scope blocks are open, the following piece of code does the autoscaling for you: % find all scope...

más de 14 años hace | 1

| aceptada

Respondida
"x is not recognized as an internal or external command, operable program or batch file"
Hi Cenk, it might be the case that DynusT is not on the system path. If you open a Command Window in Windows (Windows Button,...

más de 14 años hace | 2

| aceptada

Respondida
cell into a cell
This sounds more like a struct? for i=1:3 for j=1:2 TXT.(Name{i}){j,1} = rand(12); end end Or use c...

más de 14 años hace | 1

| aceptada

Respondida
cell into a cell
Hi, I guess Named(1:3) = {Data}; is too simple? Titus

más de 14 años hace | 0

Respondida
How to create a .lib file for graph.h graph.cpp and mxflow.cpp files to be used futher for mbuild parameters
Hi, you can either use mbuild itself for this task (add a .exports file to your list of files to be compiled, see doc m...

más de 14 años hace | 0

Respondida
matlab function
Yes, the display block also displays matrices. Just give it a try, make a block that outputs a constant matrix and feed it to th...

más de 14 años hace | 0

| aceptada

Respondida
Matlab simulink access to gui handle in listener
Hi, if the GUI is programmed with GUIDE, you should be able to collect the handles by just calling the gui again. If your gui...

más de 14 años hace | 1

| aceptada

Respondida
Problem in using Function with in a function
Hi, you don't need to use global variables. You can use anonymous functions to do so. If this is the function to be optimized...

más de 14 años hace | 0

| aceptada

Respondida
Debuger doest not work with Object Oriented Programming
Hi Javier, they should work. You might be stumbled across one of the following two points: when you change the class file, th...

más de 14 años hace | 1

| aceptada

Respondida
Removing NaN's and interpolating missing data
Hi, a good starting point could be the File Exchange, e.g. <http://www.mathworks.com/matlabcentral/fileexchange/27994-inpain...

más de 14 años hace | 0

Respondida
Getting MATLAB Numeric Arrays from a Component
Hi Srikanth, you are nearly done. Some slight changes: although you have only one output argument, the method will return an ar...

más de 14 años hace | 1

| aceptada

Respondida
MCR Installer - is there a license file whic
The terms under which the MCR may be distributed is handled in section 5.2 of the "Deployment Addendum" of matlabroot/license.tx...

más de 14 años hace | 0

| aceptada

Respondida
which toolbox
Hi, using ver you will see the installed products (as you say, just MATLAB). You might ask either your system admini...

más de 14 años hace | 0

| aceptada

Respondida
Mex file crash after second run.
Hi Jon, the problem is, you use the temporary memory of output in mxSetPr. mxSetPr does not copy but only set's the pointer. ...

más de 14 años hace | 1

| aceptada

Respondida
lsqnonneg
Hi, if you take a closer look at your data you observe: 1. the two columns of C are very similar, therefore it's no surpri...

más de 14 años hace | 0

Cargar más