Answered
reading only certain columns in text file
Try: fid = fonpen( filespec ); cac = textscan( fid, '%*f%f%f%f%f%f%f', 'CollectOutput', true ) ; sts = fclose; ...

11 years ago | 0

Answered
How can I write a function that gives out a matrix with the specified rows and columns?
Your function as of the comment works nicely >> s = getfancyrectangle( 4, 5 ) s = @#@#@ #@#@# @#@#@ ...

11 years ago | 0

Answered
Help with Function Errors?
_"Error in plotShot (line 2) hits=hitPond(pondRadius, xhit, yhit)"_ &nbsp one output, &nbsp |hits| &nbsp is expected but there i...

11 years ago | 0

| accepted

Answered
Error using rmdir when trying to remove folder
If on Windows, an idea: cmd_rmdir

11 years ago | 3

| accepted

Answered
Textscan with blocks of data with headers to individual block
Modified version of *your code* %% fid = fopen('RajRaj.txt'); formatSpec = '%d%f%f'; clear C k = 0; ...

11 years ago | 1

| accepted

Answered
how can i store the output from the function in a matrix/vector to use as input in my main
Isn't this good enough? [c,ceq] = constraint( X_dp1 ); out = another_function( c, ceq );

11 years ago | 0

Answered
How to enter this program?
Try >> factor( cssm ) ans = 2 2 2 2 2 5 7 13 where cssm is function ...

11 years ago | 0

Answered
How to put text into an array
Hint: >> str = '201403 0.000 8.333 0.00 0.00'; >> cac = textscan( str, '%4f%2f%f%f%f%f', 'Coll...

11 years ago | 0

| accepted

Question


How to delete a variable in a MAT-file, which corresponds to an instance of matlab.io.MatFile
*Background* I use an instance of &nbsp |matlab.io.MatFile| &nbsp to store and manipulate huge variables. (Huge compared to ...

11 years ago | 2 answers | 2

2

answers

Answered
Problem in opening matlab.
Contact <http://www.mathworks.com/support/contact_us/index.html Matlab support>

11 years ago | 1

Answered
Automating the process of accessing multiple excel cells in matlab
_" I want to import and excel document that has names on one column and grades on another column."_ &nbsp Maybe the new data typ...

11 years ago | 0

Answered
Reading .dbf files in a for loop by dynamically changing file names
Replace polyzone1_1.dbf by sprintf('polyzone1_%i.dbf', i ) and 'polyzone1_1' by sprintf('polyz...

11 years ago | 0

| accepted

Answered
How to find something that you're not looking for?!
Try this ix = find( date >= finish, 1, 'first' ); and see <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0....

11 years ago | 1

Answered
catching a value while matlab is running
The documentation on Events and Listeners is okay and I didn't find any examples with banks. However, I had to run and modify th...

11 years ago | 0

Answered
Please explain the limitations of getting data out of teradata using sql
Take a chance and increase the heap. See <http://www.mathworks.se/help/matlab/matlab_env/preferences.html?searchHighlight=java...

11 years ago | 0

Answered
MATLAB 2014b and OOP
The release notes says: * ... Graphics objects now behave like other MATLAB objects ... * [New] feature eliminates the need...

11 years ago | 0

Answered
Import data and text in huge csv files into matlab and convert to matfiles
Here are two alternative sets of code to read your file. That is, if _"remaining rows contain data"_ &nbsp means pure numerical ...

11 years ago | 0

Answered
How can I suppresses the display of error messages with urlwrite ?
try [filestr,status] = urlwrite(url_img); catch me % handle the error end

11 years ago | 0

Answered
CODE TOO SLOW AND SOMETIMES WONT RUN
See: * <http://www.mathworks.se/help/matlab/ref/profile.html profile, Profile execution time for function> * <http://www.ma...

11 years ago | 1

Answered
how to read hdf5 file in matlab 7.0 version?
Search the File Exchange * <http://www.mathworks.com/matlabcentral/fileexchange/14699-hdf-5-handler HDF 5 Handler, by Sina Ta...

11 years ago | 0

Answered
Is there any more effiecient way to implement this?
If linear is good enough as you indicate in the question (default of interp2). See <http://www.mathworks.com/matlabcentral/fi...

11 years ago | 0

Answered
Matlab h5read get errors
* There is a typo, two commas where there should be one. * The reason to the error is most likely that |'/g4/lat'| doesn't exis...

11 years ago | 0

| accepted

Answered
I have a cellarray (100000000*2cell) ,how can I save the cell in excel more quickly ?
A good way to learn about performance is testing. Thus, I made a little comparison. I use a smaller array to save time. I think ...

11 years ago | 1

| accepted

Answered
I'm getting an error in my function I don't understand
To add two arrays they must have the same size. Obviously, with N=2 V0 and Ve don't have the same size. That's what the error me...

11 years ago | 0

| accepted

Answered
Help with operation of multiple files
Start by reading <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F How can I process a sequence of file...

11 years ago | 0

Answered
Textscan to choose the specific text
Replace '%f64' by '%*f%*f%*f%f%f' "64" is by default

11 years ago | 0

| accepted

Answered
i want to save cell data as csv format ,but il shows there is a error,how can i save these cell array as csv format? thanks
The function <http://www.mathworks.com/matlabcentral/fileexchange/47055-cell-array-to-csv-file--improved-cell2csv-m- Cell Array ...

11 years ago | 0

Answered
condition in while loop
See <http://www.mathworks.se/help/matlab/matlab_prog/continue-long-statements-on-multiple-lines.html Continue Long Statements on...

11 years ago | 0

Answered
How to create a complete graph in MATLAB?
AFAIK: It's in the Bioinformatics Toolbox. See <http://www.mathworks.se/help/bioinfo/examples/working-with-graph-theory-function...

11 years ago | 0

| accepted

Answered
How to put the command \n in function input?
Works in R2013b >> input('first line\nsecond line =' ) first line second line =17 ans = 17 >...

11 years ago | 0

Load more