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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

Respondida
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] );

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 1

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

Respondida
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'*, ...

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

Cargar más