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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 1

| accepted

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

13 years ago | 1

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 1

| accepted

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

13 years ago | 19

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

13 years ago | 0

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

13 years ago | 0

| accepted

Answered
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(:)); ...

13 years ago | 1

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

| accepted

Question


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

13 years ago | 1 answer | 0

1

answer

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 2

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

Load more