Question


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

environ 12 ans il y a | 2 réponses | 0

2

réponses

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

environ 12 ans il y a | 2 réponses | 0

2

réponses

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

environ 12 ans il y a | 1 réponse | 0

1

réponse

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.

environ 12 ans il y a | 2 réponses | 0

2

réponses

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

plus de 12 ans il y a | 1 réponse | 0

1

réponse

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

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

plus de 12 ans il y a | 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 ...

plus de 12 ans il y a | 2 réponses | 0

2

réponses

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

plus de 12 ans il y a | 2 réponses | 0

2

réponses

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

plus de 12 ans il y a | 1 réponse | 0

1

réponse

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

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How to improve computing in matlab?
thanks to all of your help!

plus de 12 ans il y a | 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...

plus de 12 ans il y a | 2 réponses | 1

2

réponses

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

plus de 12 ans il y a | 1 réponse | 0

1

réponse

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

plus de 12 ans il y a | 1 réponse | 0

1

réponse

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

plus de 12 ans il y a | 1 réponse | 0

1

réponse

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

plus de 12 ans il y a | 1 réponse | 0

1

réponse

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

plus de 12 ans il y a | 2 réponses | 0

2

réponses

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

plus de 12 ans il y a | 1 réponse | 0

1

réponse

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

plus de 12 ans il y a | 1 réponse | 0

1

réponse

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

plus de 12 ans il y a | 2 réponses | 1

2

réponses