photo

carmen


Attivo dal 2012

Followers: 0   Following: 0

Messaggio

Statistica

  • First Review
  • Thankful Level 1
  • First Answer

Visualizza badge

Feeds

Visto da

Domanda


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

oltre 12 anni fa | 0 risposte | 0

0

risposte

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

oltre 12 anni fa | 0

Risposto
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]; ...

oltre 12 anni fa | 1

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

oltre 12 anni fa | 0

Domanda


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

oltre 12 anni fa | 7 risposte | 3

7

risposte

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

quasi 13 anni fa | 0

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

quasi 13 anni fa | 0

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

quasi 13 anni fa | 1

Risposto
storing data set
I onec used save(sprintf('%s\\%s\\filename',pwd,'foldername'),'varname'); load(sprintf('%s\\%s\\filename',pwd,'foldern...

quasi 13 anni fa | 0

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta