Respondida
For loop only running once.
This code does what I believe you want it to do x=0:9; s1 = nan(5,10); % allocate memory ii = 0; ...

casi 15 años hace | 0

Pregunta


Automatic tool to generate Sequence and Class Diagrams (UML)
Last month, 2020-10-03, I uploaded m2uml 2.0, which is a complete rewrite. (It generates UML class diagrams from m-code.) ...

casi 15 años hace | 2 respuestas | 5

2

respuestas

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

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

casi 15 años hace

Respondida
why must rerun this code to pursue running
Make the following change to your code: f = fopen(thisfilename,'r'); to f = fopen(thisfilename,'r'); assert( ...

casi 15 años hace | 0

Respondida
scatter too slow
See: <http://www.mathworks.se/matlabcentral/answers/24076-better-way-to-visualize-profile-data better way to visualize profile d...

casi 15 años hace | 0

Respondida
Function handle of N,x to function of x
Try this: x = 16; K = @(N) x/N; K(2) If that is not what you asked for please rephrase your question.

casi 15 años hace | 0

Respondida
Converting hh:mm:ss into seconds
The first and the last cell returns the result I think you are looking for. See help on DATENUM %% datenum( '14:35:59.8...

casi 15 años hace | 2

Respondida
is there anyway to select which cell modes to run?
Yes, see <http://www.mathworks.se/help/techdoc/matlab_env/brqxeeu-259.html Evaluate Subsections of Files Using Code Cells>

casi 15 años hace | 0

Respondida
find a coordinate on a cdf plot
My guess: [f,x] = ecdf(a); x(1) = x(1)-eps(x(1)); interp1( f, x, 0.5 ) interp1( x, f, 100 )

casi 15 años hace | 0

| aceptada

Respondida
cell array of classes
R2010b doc says: *Building Arrays in the Constructor* A constructor function can return an object array by making the ne...

casi 15 años hace | 1

| aceptada

Respondida
Dynamic Structure Fieldnames using Genvarname() Invalid
The variable, testname, is a cell array of cells. Your code assumes it to be a cell array of strings K>> class( testname{1...

casi 15 años hace | 2

| aceptada

Respondida
reading txt file mixed with stirng and numbers
Are you aware of the FEX contributions: <http://www.mathworks.com/matlabcentral/fileexchange/15629 ENVI file reader, updated> an...

casi 15 años hace | 0

Respondida
How to address dataset array column using variable
Try DS.('C1')

casi 15 años hace | 0

| aceptada

Respondida
better way to visualize profile data
Matlab cannot handle that many handle graphic objects efficiently. SCATTER creates one handle for each point. The following chan...

casi 15 años hace | 0

Respondida
representing and empty cell
Does this help? %% wordstruct.a = {'amal' 'asyik' 'ampun'}; wordstruct.b = {'bola' 'busuk' 'basi'}; wordstruct...

casi 15 años hace | 0

| aceptada

Respondida
saving workin space variable
Doc says: save(filename, variables) try save('myfile.mat', 'myvar' )

alrededor de 15 años hace | 0

| aceptada

Respondida
Variable superclass
One way that I have used is to write an m-file at run time. classdef C < Middle ... At run time I write the file, Middle...

alrededor de 15 años hace | 0

Respondida
isletter true false
isletter is a function, which returns a logical value. The logical values, true and false, are displayed as 1 and 0, respectivel...

alrededor de 15 años hace | 0

| aceptada

Respondida
MYSQL database table from MATLAB
See <http://www.mathworks.se/matlabcentral/answers/5285-mysql-matlab mysql-matlab> for a good alternative to the toolbox.

alrededor de 15 años hace | 0

Respondida
Open Separate Matlab window to run in background
See the answer: <http://www.mathworks.se/matlabcentral/answers/15800-is-it-a-good-idea-to-run-matlab-in-the-background-as-a...

alrededor de 15 años hace | 0

Respondida
How can I read data column by column from an ASCII file ?
See the answer: <http://www.mathworks.se/matlabcentral/answers/15712-textread-formatting-help textread formatting help>

alrededor de 15 años hace | 0

Respondida
textread formatting help
Do you know the exact format, i.e. the length of each field? I assume you do! Read the full line as a string buf = textscan(...

alrededor de 15 años hace | 0

| aceptada

Respondida
Transparency in 2D scatter plots
I think it is doable with some low level handle graphic code. Each point should be a separate patch object (or a surface object)...

más de 15 años hace | 1

| aceptada

Respondida
object oriented programming in 2007b
There are two Matlab OOP. The old one and the new, which appeared in release R2008a. The difference between the two is huge. ...

más de 15 años hace | 0

| aceptada

Respondida
large files, very slow editor, no fix?
An object oriented design with methods in a separate @-folder should solve the problem with the editor. Rewriting object ori...

más de 15 años hace | 0

Respondida
Exporting a GUI to be used without MATLAB
AFAIK, you will need the Matlab Compiler. See www.mathworks.com MATLAB® Compiler™ compiles a MATLAB® application into a stand...

más de 15 años hace | 0

Respondida
writing a string
I prefer sprintf( 'Panel A: range(%u-%u)', A, B ) because I make fewer mistakes using that style - per

más de 15 años hace | 0

Respondida
Is it possible to extend graphics objects' functionality through inheritance?
There is no documented way to inherit from (/subclass) handle graphic objects. I guess the rule is that if you cannot find it in...

más de 15 años hace | 0

Respondida
piecewise fitting with user defined functions
See * SLM - Shape Language Modeling by John D'Errico * BrokenStickRegression by Peter Nave In the File Exchange / ...

más de 15 años hace | 0

Cargar más