Respondida
Multiple Array Inputs for Self Written Function
Try to run [ a, b, c ] = functionF( magic(3), magic(4), magic(5) ); where the following code is in a file with the na...

casi 14 años hace | 0

| aceptada

Respondida
Can't add matrix with same dimension, pulls error...
Use the debugger. Execute in the command window dbstop if error and run your function polamodel=meanmodel(pola...

casi 14 años hace | 0

Respondida
Why is datenummx(clock) faster than now()?
The function, now, has one executable line of code t = datenum(clock); the function, datenum, calls the function, date...

casi 14 años hace | 1

| aceptada

Respondida
How long does sortrows take to execute and are there any faster alternatives ?
*Speculation:* * write the 10GB array to a binary file; use fwrite * clear all * open the file with memmapfile. Let the nam...

casi 14 años hace | 1

Respondida
Formatting the plot command
There is no simple way to do that. However, it can be done with the help of the property, YTickLabel, of the handle graphic obje...

casi 14 años hace | 0

Respondida
Is this a bug? Can it be fixed? Error in getframe (line 103) x=builtin('capturescreen', varargin{:});
Matlab has good debugging features. See the documentation * Put the code in a function function F = cssm() ...

casi 14 años hace | 0

Respondida
reading edf/edf+ file
* See the FEX contribution <http://www.mathworks.com/matlabcentral/fileexchange/31900-edfread edfRead>. * Search the file exch...

casi 14 años hace | 0

Respondida
Publishing result order when using functions
I have this comment in an old file of mine (FEX, tracer4m, Matlab 7.10) Output in the wrong order. The tracer output abov...

casi 14 años hace | 0

Respondida
how to import a text (.txt) file to MATLAB?
See <http://www.mathworks.se/help/matlab/text-files.html Delimited or formatted I/O to text files> . *Interactively:* I...

casi 14 años hace | 1

| aceptada

Respondida
Import data file with comma decimal point
This functions replaces all "," by ".". Make a copy of your file first. Import in next step. function comma2point_overwr...

casi 14 años hace | 19

Respondida
Datenum - different date formats
There is no way for me (in Sweden) to know how to interpret '01/02/03' or '01/02/2003' IMO: when in doubt ...

casi 14 años hace | 0

Respondida
how to display multiple graphs ??
The statement hold on might be the answer. Or more likely %Plot CCDF. figure hist( papr, 100) ...

casi 14 años hace | 0

| aceptada

Respondida
Help with trapz(): Getting complex values
* Put the code in a function * Set a conditional, not(isreal(Y)), breakpoint on the line T_integral = trapz(z,Y(:)); ...

casi 14 años hace | 1

Respondida
Why does my matlab run slow?
* Matlab is basically single threaded, and thus, dual core doesn't improve speed much. * What code do you use in the comparison...

casi 14 años hace | 0

Respondida
More oop weirdness - Cannot clear class
The tech support at The Mathworks has reproduce the behavior and reported it to the development team. They also provided a scrip...

casi 14 años hace | 0

Respondida
How to create a cell array with wave data?
This is a start: function cac = cssm() fid = fopen( 'cssm.txt' ); cac = textscan( fid, '%...

casi 14 años hace | 0

| aceptada

Pregunta


How to avoid: "... . Cannot clear this class or any of its super-classes."
I have a GUI, MyGui, which contains a dozen uicontrols. There is nothing fancy: no timers, no listeners, ... . The uicontrols ar...

casi 14 años hace | 1 respuesta | 0

1

respuesta

Respondida
Display full file name in the script editor
If you have a narrow vertical pane with one column of file names you can drag (one of) its border to make the pane wider.

casi 14 años hace | 0

| aceptada

Respondida
How to numerically integrate two vectors in 2012a
See quad Numerically evaluate integral, adaptive Simpson quadrature

casi 14 años hace | 0

Respondida
best way to import this csv
This file may be imported with textscan, however, it requires a correct format string, i.e. one need get the number of column co...

casi 14 años hace | 0

Respondida
Can somebody please Explain why I got this Error by running this code using MATLAB
Do you have the Communication Toolbx on your system? Try >> which huffmandict >> ver comm I get these responses ...

casi 14 años hace | 0

| aceptada

Respondida
How to access multiple subfields of an object array?
Try z = g.location.x; and if g is scalar z = [ g.location.x ]; as you would do with structures . *Add...

casi 14 años hace | 0

Respondida
while true vs. for i= 1:Inf
The for-loop provide the loop-variable, ii. Why, is that interesting?

casi 14 años hace | 2

Respondida
Matlab OOP tutorial/resource needed
I'm pretty sure there is no book or major part of a book dedicated to Object Oriented Programming in Matlab (in English). I've b...

casi 14 años hace | 0

| aceptada

Respondida
How to include counter in the header?
fprintf( fileID, '%7s%2d\n','G54D', ct ); . *[EDIT]* Small test %% ct = 11; fprintf( 1, '%7s%2d...

casi 14 años hace | 0

Respondida
Why does the first value in loop get overwritten
No, I cannot explain. However, what else is in the files you load? The clearvars looks scary to me. My function, cssm, works:...

casi 14 años hace | 0

| aceptada

Respondida
How to publish a complete GUI package to a MAC OS X .pkg installation?
Yes, see <http://www.mathworks.se/products/compiler/ Matlab Compiler>. However, maybe not in the form of a ".pkg software"

casi 14 años hace | 0

Respondida
Same code works on my computer but not on my friends'
R2012a might handle your code more efficiently than R2009a. There is something called "just in time compiler", JIT, which The Ma...

casi 14 años hace | 0

| aceptada

Respondida
How to convert daily data to monthly?
Given thirty days in every month try this %% daily_val = rand( 30*12, 1 ); %% daily_val = reshape( daily_...

casi 14 años hace | 0

Respondida
Data extraction from CSV file
* your file has something like 18 headerlines * the data rows have a zillions fields, many of which are empty * the rows have ...

casi 14 años hace | 0

Cargar más