Solved


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...

14 years ago

Solved


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...

14 years ago

Solved


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 ...

14 years ago

Answered
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...

14 years ago | 0

Answered
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...

14 years ago | 0

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

14 years ago | 1

Answered
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...

14 years ago | 2

| accepted

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

14 years ago | 0

Answered
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...

14 years ago | 0

Answered
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...

14 years ago | 0

Answered
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...

14 years ago | 1

Answered
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...

14 years ago | 0

Answered
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...

14 years ago | 1

Answered
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...

14 years ago | 0

Answered
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 ...

14 years ago | 5

| accepted

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

14 years ago | 1

| accepted

Answered
"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,...

14 years ago | 2

| accepted

Answered
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...

14 years ago | 1

| accepted

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

14 years ago | 0

Answered
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...

14 years ago | 0

Answered
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...

14 years ago | 0

| accepted

Answered
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...

14 years ago | 1

| accepted

Answered
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...

14 years ago | 0

| accepted

Answered
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...

14 years ago | 1

| accepted

Answered
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...

14 years ago | 0

Answered
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...

14 years ago | 1

| accepted

Answered
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...

14 years ago | 0

| accepted

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

14 years ago | 0

| accepted

Answered
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. ...

14 years ago | 1

| accepted

Answered
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...

14 years ago | 0

Load more