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

14 years ago | 1

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 1

| accepted

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

14 years ago | 1

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

14 years ago | 0

| accepted

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

14 years ago | 1

| accepted

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

14 years ago | 1

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 1

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

Answered
Plot
Change 'FontSize','16' to 'FontSize', 16

14 years ago | 1

| accepted

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

14 years ago | 0

| accepted

Load more