Community Profile

photo

Noam


Self-employment

Last seen: 1 día ago Active since 2013

Statistics

  • Thankful Level 1
  • Knowledgeable Level 1
  • First Answer

View badges

Content Feed

View by

Answered
sum of all the variables in workspace how to find?
clear all; x=10; y=2; z=3; allvariables = whos; sumOfVars = 0; for i = 1:length(allvariables) sumOfVars...

más de 3 años ago | 0

| accepted

Question


How do I run a function every time the plot changed?
I know the function linkdata, which updates the plot anytime the data changes. I need a similar functionality (somehow the oppos...

más de 3 años ago | 1 answer | 0

1

answer

Answered
How can I simplify this For loop?
pdist2 will do the work

casi 6 años ago | 0

Question


Parfor performance are too good to be true
Code: function X z=ones(1000); tic parfor j = 1:200 for k = 1:200 z = z+1; end end; toc zz=ones(10...

casi 6 años ago | 1 answer | 0

1

answer

Answered
how to split arrays into different ranges?
A = [2,8,3,30,4,50,100,200,4,80,500]; A(A>=0&A<10) A(A>=10&A<100) A(A>=100&A<1000)

alrededor de 6 años ago | 0

Answered
how to change the digit after decimal
Try using format: >> format long >> ans ans = 1.222200000000000 1.222200000000000 >> forma...

alrededor de 6 años ago | 0

Question


how to use function handle
I have a function boop: function boop(A) disp(A) Now I want that whenever I move my mouse over a figure, the func...

alrededor de 6 años ago | 2 answers | 0

2

answers

Question


Performance of non-preallocated array
I'm trying to understand the reason these two options are so differnet in performance: >> tic;z=[];for i = 1:1e5;z(end+1)=i...

más de 6 años ago | 2 answers | 0

2

answers

Question


Loading file multiple times
When I load a certain MAT file twice (different runs of the script) its look like the reading is much faster in the second time ...

más de 8 años ago | 0 answers | 0

0

answers