Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

ungefär 12 år ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

ungefär 12 år ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

ungefär 12 år ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

ungefär 12 år ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

ungefär 12 år ago

Answered
How to solve string error in xlswrite?
Well I don't know .... xlswrite(filename,A,sheet,range) ... the order of arguments ??? what do you think about ?

ungefär 12 år ago | 0

Answered
Problem with xlswrite. Need to write text and numbers. Need help!!
You should use a cell array where each cell contains one value : a double, a string, ... but not an array !! So try something...

ungefär 12 år ago | 1

| accepted

Answered
Get the index for the search of multiple strings within an array of strings
did you try "intersect" ??? [C,ia,ib] = intersect(A,B) example

ungefär 12 år ago | 1

Answered
time elapsed by a portion of the code
If you don't like tic/toc or cputime ... You can use the profiler in a local part of your code : profile on for ...

ungefär 12 år ago | 0

Answered
Reading multiple images from a folder in MATLAB Directory
you lost the path ... try: imread( fullfile( Directory, Names{k} ) )

ungefär 12 år ago | 0

| accepted

Answered
I have 26 ascii files and I want to import data from all these files with the help of a for loop and convert all of them into column vectors.
I suppose all files have the same number of elements Tmp = importdata(files(k).name); Out = zeros( numel( Tmp.data ),...

ungefär 12 år ago | 0

| accepted

Answered
Is there a way to assign the 'end' value to a variable?
And did you try strread ?? [A, B, ...] = strread('str', 'format') [ NameStart, NameEnd ] = strread( list_of_files(i)...

ungefär 12 år ago | 0

Answered
Need to use cellfun for returning index of array
try this : regexp( { LD(:).Name } , 'Lam1' , 'once ) it's to find the first occurance of Lam1 in the cell array { LD(:)...

ungefär 12 år ago | 0

Answered
how to convert to standard date and time
help datestr (for the function and to define the format ...) try: datestr(now, 'mmmm dd, yyyy HH:MM:SS.FFF AM')

ungefär 12 år ago | 0

Answered
Problem with multiple accesses in array indexing
Like AC, I think that your example is too easy to give you a solution. But I'm going to try with some supoositions. For me...

ungefär 12 år ago | 0

Answered
save variables of different dimension in the same excel file
xlswrite(filename,A,sheet,range) so did you try this ? xlswrite('sugar.xlsx',A, 'Sheet01', 'A1'); xlswrite('sugar....

ungefär 12 år ago | 0

| accepted

Answered
This error- "index must be a positive integer or logical. " is occuring inspite of the fact that i have checked my program for all possible errors. Please help
Could you explain what is n ?? t=1 and u=0:n:t so n<1 and n is not an integer (I think) After the first loop, t=t-n and a=...

ungefär 12 år ago | 0

Answered
Using strings in regular code.
For me, to construct the name of the file (it's what I use) FileName = 'Superman' ; FileDir = 'I:\..\MyDir' FilePa...

ungefär 12 år ago | 0

| accepted

Answered
Creating a cell array of size n
Your error : C(i) = 'red'; C is a cell array, with C(i) you reach the place in the cell array and not the element wh...

ungefär 12 år ago | 2

Answered
equivalence of the codes that can be used for erasing the first row of R if cell R(1,3) is occupied by NaN?
I'm sorry but I don't understand what you are looking for. Code 2 is the code that I gave you <http://www.mathworks.fr/matlabc...

ungefär 12 år ago | 0

Answered
Character array of size n.
did you try blanks(n) ??

ungefär 12 år ago | 0

Answered
How to write coding for the following problem
Hello, I don't understand how you can make i=i+1 in a loop on i !! ;-) When I see your code, I can write this: y(1) = ...

ungefär 12 år ago | 0

Answered
simplyfing computations in arrays
Hello, t1 = ( (n-2):-1:0 ) *dt ; t2 = t1 + dt ; no ???

ungefär 12 år ago | 0

Answered
problem with xlsread:Bizarre results
Hello, I think the problem is with Excel. I think you should have at a moment more than 245 lines, and you should have del...

ungefär 12 år ago | 0