Respondida
how to read x file data (x=30file)
Here are new versions of the two m-files. Put the previous ones in the folder \old. Try the new files >> RainData = ReadMan...

más de 14 años hace | 1

Respondida
Cant publish any m-files
I run this simple example on R2012a and Windows7 - no problems. Does this trigger the error on your system? >> publish...

más de 14 años hace | 0

Respondida
References and Books on Object Oriented Programming in Matlab
I'm pretty sure there is no book or major part of book on Object Oriented Programming in Matlab (in English). I've been looking....

más de 14 años hace | 0

Respondida
how to read x file data (x=30file)
Here are two functions. Copy them to two different files. Make a call >> RainData = ReadManySoniData( 'C:\matlab7\work\org\...

más de 14 años hace | 1

| aceptada

Respondida
how to accumulation a cell (x) data. from 30 file data.
Next step, try: >> dbstop ReadSoniData 2 >> cac = ReadSoniData( 'h:\m\cssm', '11-02-2011.dat' ); However, if you didn...

más de 14 años hace | 1

Respondida
importdata function yields empty data structure
Try file_spec = '/Users/username/Desktop/fromfile.xlsx'; exist( file_spec, 'file' ) [ num, txt, raw ] = xlsre...

más de 14 años hace | 0

| aceptada

Respondida
how to accumulation a cell (x) data. from 30 file data.
This is a start function cssm( folder_spec, file ) %% % 03:05:00 .000 065.501 01** 4864 0086 0074 +19 ...

más de 14 años hace | 1

| aceptada

Respondida
why %c still skip the blank data??
I assume this question concern the same data file as your previous question. This function reads a data file, which contains the...

más de 14 años hace | 1

| aceptada

Respondida
creating a repeated matrix 2
Try this ktotal = repmat( transpose( h([19:18:19+4*18]) ), [3,1] ); ktotal = ktotal(:); I use "transpose" instead...

más de 14 años hace | 0

| aceptada

Respondida
creating a repeated matrix
This is a more "clever" way: ixs = repmat( [1:6], [3,1] ); ktotal = arrayfun( @(ii) sprintf('S%u',ii), ixs(:), 'un...

más de 14 años hace | 0

| aceptada

Respondida
How to change data and display a text using cell arrays.
The variable, out, is a cell array of strings. The functions, setfield and getfield, operate on structure arrays. Replace the...

más de 14 años hace | 0

| aceptada

Respondida
How to extract data from a 3d implicit plot?
Matlab has a tool called "Data Cursor". It has a icon in the Tool bar of the Figure window. With that you can "extract" data fro...

más de 14 años hace | 0

| aceptada

Respondida
Run the second programme in the current execution
Assume the name of your m-file is my_code.m. Try for i=1:3 for j=1:2 % run the particular (.m) ...

más de 14 años hace | 0

| aceptada

Respondida
Writing to matfile in a loop
. *Strange!* I think this is an issue for the tech support and the developers at The Mathworks. I've reproduced your resul...

más de 14 años hace | 0

| aceptada

Respondida
Writing a text file with information from a data file
*This is a hint!* % or a more specific wildcard pattern sad = dir( fullfile( folder_spec, '*.dat' ) ); file_name_list ...

más de 14 años hace | 0

| aceptada

Respondida
Fast indexing - more than linear indexing
Based on the use in RANDPERM, I assume odd_indices is a scalar integer. PROFILE indicates that "all" time is spent in the las...

más de 14 años hace | 0

Respondida
Help with class methods please
Change classdef rod to classdef rod < handle . *--- Cont. ---* *Value objects* are <http://en.wikiped...

más de 14 años hace | 0

| aceptada

Respondida
Problem with load function for ASCII files
Did you try dlmread Read ASCII-delimited file of numeric data into matrix . *--- Cont. ---* I cannot make dl...

más de 14 años hace | 0

Respondida
Deep copy of handle object?
It's an issue, which has been discussed in the newsgroup % Subject: clone (deep copy) a handle object % From: Peter O'Co...

más de 14 años hace | 0

Respondida
Speed comparison between polyfit and A\y
Study the performance of the code with the function, profile. Thus profile on code under test profile viewer ...

más de 14 años hace | 0

| aceptada

Respondida
Extract sentences of a specific pattern
Try %% str = 'after slot 16: adjust slottime 1.73149698229 side_stiffness 208.220358294'; ptn = '^after slot \d+: adj...

más de 14 años hace | 0

Respondida
Index exceeds matrix dimensions.
Do you use the debugger? # Put a break on the line that causes the error or # Tools | Debug | Stop if Error # ...

más de 14 años hace | 0

Respondida
How to run MATLAB files in batch mode (or as a batch process). Guide request.
The name of the guide is the online documentation. It includes many examples and demos. Your question puzzles me # what do y...

más de 14 años hace | 1

Respondida
Scatter plot with matrix data
"a scatter plot against axes x and y with the colours of the points reflecting a third z variable on a colour scale." That is ex...

más de 14 años hace | 0

Respondida
Function error | Error: Function definitions are not permitted at the prompt or in scripts.
Do you have more than one m-file with the name, comparison1? Check with which comparison1 -all Is function [...

más de 14 años hace | 0

Respondida
A complicated data manipulation--Help!
Here is an alternative code. The statement in the inner loop is a "translation" of your description. I didn't see the point in u...

más de 14 años hace | 0

Respondida
technical error
Do you use the debugger? * Put a break on the line that causes the error or * Tools | Debug | Stop if Error * Run the code...

más de 14 años hace | 0

Respondida
how to format dates in textfiles to read in matlab
Read "4/25/2012" as a string and use 'mm/dd/yyyy' with datenum or datevec to parse the date strings. Specify the date as '%*s...

más de 14 años hace | 0

Respondida
Plot
Change 'FontSize','16' to 'FontSize', 16

más de 14 años hace | 1

| aceptada

Respondida
Search for individual characters within string
Run this %% cell_array = {'AX'; 'BY'; 'CXXYXXYYYX'; 'DYXZZZXXYXZ'}; %% cac = cellfun( @(c) strfind( cell_array, c ...

más de 14 años hace | 0

| aceptada

Cargar más