Question


About floor function problem.
floor(1.999999999999)=1 floor(1.99999999999999999999999999)=2, why is that? Floor should return the lower integer right? Tha...

11 years ago | 2 answers | 0

2

answers

Question


General questions about function and if command.
1. If I have a variable x, and I use a nested function f and in f.m, there is also a variable x but not equal to the first x. Wi...

11 years ago | 2 answers | 0

2

answers

Question


What can I do to large scale array?
Hi, I met a problem dealing with very large scale data. My server's limit is: >> [str,maxsize]=computer str = GLNXA6...

11 years ago | 1 answer | 0

1

answer

Question


What is the difference of using ; after end?
Hi, dear all, For example, if I write a if loop, after end, what is the difference if I use ;? Thanks.

11 years ago | 2 answers | 0

2

answers

Question


How to plot timeline in matlab?
Hi, all, I want to plot a figure with x-axis is timeline, for example, from 9am to 11pm, and every 10 or 15 minutes are one e...

11 years ago | 1 answer | 0

1

answer

Question


About draw a timestamp 2-D plot
Hello, I want to plot a 2-D figure, x-axis is timestamp, y-axis is some quantity. I wonder does matlab have some templates for i...

11 years ago | 1 answer | 0

1

answer

Answered
About running matlab in linux.
Also I find the answer to convert a matrix to single precision, that is 'single'. But I tried this command, but it still gives a...

12 years ago | 0

Question


About running matlab in linux.
Hello, I run the same program in Windows it shows Out of memory. Type HELP MEMORY for your options. Then I run it in Linux, it ...

12 years ago | 2 answers | 0

2

answers

Question


Make a matrix of different combinations.
Hello, all, If we need to make different combinations, like the first three entries among {0,1,2} and the fourth entry is fro...

12 years ago | 2 answers | 0

2

answers

Question


Question about store and obtain data in matlab.
Hello, I want to program to store a table of large size, does matlab support it and how to store the solution to a file? Whe...

12 years ago | 1 answer | 0

1

answer

Question


Run matlab in linux
Hello, I want to run matlab .m file in linux, because it may be faster than in Windows. However it shows an erros: Un...

12 years ago | 1 answer | 0

1

answer

Answered
How to improve computing in matlab?
thanks to all of your help!

12 years ago | 0

Question


How to improve computing in matlab?
Hi, it is a general question, in my matlab code I used a lot of loops, and inner loops as well. The result is it cannot get a so...

12 years ago | 2 answers | 1

2

answers

Question


How to define a function that can have multiple variables.
For example f(x,y,z) or f(x,y), z is optional. If I list three variables then system uses f(x,y,z), if only 2 variables uses f(x...

12 years ago | 1 answer | 0

1

answer

Question


Ask about break function
Hi, I am writing code to break out of loop. I have several loops, including nested loops. If I use break in a if command, it wil...

12 years ago | 1 answer | 0

1

answer

Question


How to combine two matrices to one and sort the rows?
Hello, my question is given a matrix M, say 10*5 size and one 10*1 say n. I want to make a new matrix that combine those into on...

12 years ago | 1 answer | 0

1

answer

Question


About function definition
Hi, I want to define a function like: function [V_max, a_max, runtime]=V(a,b,c) If I write [x,y,z]=V(a,b,c) it will show t...

12 years ago | 1 answer | 0

1

answer

Question


(Ask again)Show every combination of N-dim vector.
Hello, I asked it the day before yesterday but the code some expert told does not work well. He wrote: [C{1:N}]=ndgrid(0...

12 years ago | 2 answers | 0

2

answers

Question


(continued)On the combination of N-dim vector.
Yesterday I asked how to write code to visit every combination of N-dim vector(with entry 0,1 or 2), and it is very helpful by j...

12 years ago | 1 answer | 0

1

answer

Question


Is it not suggested to use the same function name as a variable?
Hello, I have three questions: 1. Is it not suggested to use the same function name as a variable? For example, if I define a...

12 years ago | 1 answer | 0

1

answer

Question


how to write code to try every combination of N-dim vector?
Hello, I want to write a code to try every combination of a N-dimentional vector(with entry 0 or 1 or 2). For example, if N=3, a...

12 years ago | 2 answers | 1

2

answers