Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 2

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 5

| akzeptiert

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 2

| akzeptiert

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

Mehr laden