Community Profile

carmen

Active since 2012

Content Feed

View by

Question

reset GUI axes properties, including position etc
Hello, I have an axes object within a GUI that is subsequently used for different images/plots. How can i reset all prope...

mer än 10 år ago | 0 answers | 0

0

functions vs. script
Thank you everybody for a set of very good answers, i think you helped me out to a great extend and made me do a big step forwar...

mer än 10 år ago | 0

Delete rows with NaN records
check out the isnan() functioion. the following code looks like a workaround but it works: A=[1 2 3;nan 4 5;nan 6 nan]; ...

mer än 10 år ago | 0

not take into account zeros in a graph
another way is to use z=[3 0 2 0 0 0 5 0 2 0 0 0 4 0 1 0 0 8]; z(z=0)=[] % now z == [3 2 5 2 4 1 8] plot(z) this...

mer än 10 år ago | 0

Question

functions vs. script
Hello, my question is, what advantages do i have from using functions instead of scripts? I am writing code with matlab for ...

mer än 10 år ago | 7 answers | 2

7

non zero elements above 70 and below -70 zero
then you modify Honglei Chen 's approach according to your wish: x(1:2,x(1:2,:)>70 | x(1:2,:)<-70)=0 that should be it...

mer än 10 år ago | 0

matrix, using variables like a1,a2,a3,...an, minimum
ok heres a brute force version without fancy commands. a=[2 6 7 8;4 5 3 7;9 7 6 9;5 3 1 9] rows=size(a,1); colum...

mer än 10 år ago | 0

storing data set
sure :) ok my answer was kind of an overkill, sorry! let "a" be your 200x200 variable and "savea.mat" the file you want to s...

mer än 10 år ago | 0

storing data set

mer än 10 år ago | 0

Question

meshgrid() confusion (dimesions, index,...)
Hello everybody, i have a fundamental question on the meshgrid() function. I have a 10x20x30 cubus of scalar data. i wanted to...

mer än 10 år ago | 1 answer | 0