Answered
Test of Approximately Equality
See <http://www.mathworks.se/matlabcentral/fileexchange/15816-isalmost/content/isalmost.m isalmost(a,b,tol)> in the File Exchan...

14 years ago | 0

Answered
GUI handles in classes problem
In Matlab the connection between "handle" in "Handle Graphic" and handle classes in the OO-system is that both are "references" ...

14 years ago | 0

Answered
enlarge the numbers in matlab
See <http://www.mathworks.se/matlabcentral/fileexchange/37067-roundnxn-returns-x-rounded-to-n-digits/content/roundn.m roundn(x,n...

14 years ago | 0

| accepted

Answered
Fast Export Method
The functions save, load and whos is an alternative save( 'my_datasets.mat', 'MyDS' ) save( 'my_datasets.mat', 'MyD...

14 years ago | 0

| accepted

Answered
Links to matlab documentation in "published" html pages
I published %% test % See the local help for the <matlab:doc('publish') publish> function. % Documentation on T...

14 years ago | 0

Answered
Change color of numbers that show in ploT?
The text object in axes has a property: Color text( ....., 'FontSize', fontSize, 'FontWeight','Bold', 'Color', [1,0,0] );

14 years ago | 0

| accepted

Answered
multiplication between vectors
".* " is element wise multiplication. Is that what you want? If so the vectors must have identical sizes or one must be a scalar...

14 years ago | 0

Answered
Running code as previous version
Not so quick fix. Find in Files "~," and replace by the string, "dummy", or better do the same with a more powerful editor. ...

14 years ago | 0

| accepted

Answered
Need help with multiple figures!
*Multiple figures:* figure, plot3(x1,y1,z1,'or','LineWidth',15.55) figure, plot3(x2,y2,z2,'or','LineWidth',15.55) ...

14 years ago | 0

Answered
Easier way to rename files?
See "How can I create variables A1, A2,...,A10 in a loop?" in <http://matlab.wikia.com/wiki/FAQ the Matlab FAQ>. Something...

14 years ago | 0

| accepted

Answered
Importing from Openoffice
. *"commas instead of dots" is definately a problem!* fid = fopen( 'HMhist.csv', 'r' ); str = fread( fid, '*cha...

14 years ago | 0

Answered
gaussian mixture model
Search the <http://www.mathworks.se/matlabcentral/fileexchange File Exchange>.

14 years ago | 0

| accepted

Answered
Skipping characters in a data file while keeping numbers
*--- R2012a ---* 'ascii_letters_numbers.txt' contains your sample text. This code reads and converts the text according to th...

14 years ago | 0

| accepted

Answered
Loading Text File with Multiple sections of headers
importdata cannot handle your file. An approach is to # read the file as characters to a string, buf # split the string, ...

14 years ago | 0

Answered
Importing from Openoffice
CSV comes in different flavors and Microsoft make their own rules. Google "CSV file format" and see for example <http://tools....

14 years ago | 0

Answered
The most effective way to use interp1 command in matlab with two columns
Something like new_times = 0:0.25:max(time); day_hour = rem( new_times, 24 ); new_times( day_hour <...

14 years ago | 0

Answered
Index exceeds matrix dimensions
Set dbstop if error run and inspect the variables carefully

14 years ago | 0

Answered
Entering data into MATLAB from a csv file containing both data and letters
I copy&paste your data to ascii_with_colhead_date_time.txt and tried importdata >> A = importdata( 'ascii_with_colhead_dat...

14 years ago | 0

Answered
get rid of NaNs
rows_to_be_removed = all( isnan( A ), 2 ), A(rows_to_be_removed,:)=[]; B(rows_to_be_removed,:)=[]; etc. Gi...

14 years ago | 1

| accepted

Answered
Trouble with creating classes
With GUI you can use both handle and value classes. Handle classes and handles in Handle Graphic are not "connected". Many of th...

14 years ago | 1

| accepted

Answered
Does 'colheaders' require a minimum array size?
R2012a. I'm lucky with the example from the on-line help. I copy&paste Day1 Day2 Day3 Day4 Day5 Day6 Day7 95....

14 years ago | 0

Answered
Deleting X-Y points that are not near other points on a field of data points
See Doug's video <http://blogs.mathworks.com/videos/2010/01/22/advanced-making-a-2d-or-3d-histogram-to-visualize-data-density/ ...

14 years ago | 0

| accepted

Answered
replace a line of a file
It might be possible to do it inplace with memmapfile. If the lines are the same length, etc. I would not try. Try loop o...

14 years ago | 0

| accepted

Answered
Where is the problem
Try UserData.info{ 4, 2 } =num2cell(sym(strcat('u',sym(UserData.matrix{4,2})))); *--- next ---* It is easier to debug...

14 years ago | 1

Answered
Identifying individual points on scatter plot
I was about to write: See datatip, but found that it is obsolete. It is replaces by Data Cursor Text Can Now Be Program...

14 years ago | 0

| accepted

Answered
Importing non-standard data
Does the file look like this? 69194111 1EFFFFFFDDDDDDDDDFFEEFFDD 69194111 2DDDDEEEDDDDDDDDDEDEDDDDE 69194111 3DDDDDD...

14 years ago | 0

Answered
Problem with fprintf
There are two "different" fprintf. Note *"serial"* and *"object, obj"* in the documentation Doc says: fprintf (serial...

14 years ago | 0

Answered
Matlab cannot read data from a file which is saved as a text-file from Excel
You need to set the input argument, encoding, of fopen. There are many alternatives including "Unicode".

14 years ago | 0

Answered
Reading and writing faster a mat-file
The speed of save and load depends on the format of the mat-file and maybe the release of Matlab. Try the option, *'-v6'*, ...

14 years ago | 1

| accepted

Answered
??How to get the Name of the Output to the left of the equal sign??
The short answer is NO followed by a question WHY. The long answer is maybe: # dbstack(2) has the name of the caller and t...

14 years ago | 0

Load more