Community Profile

photo

TADA


Hebrew University of Jerusalem

Last seen: Today Active since 2018

Statistics

All
  • GitHub Submissions Level 1
  • MATLAB Central Treasure Hunt Finisher
  • 12 Month Streak
  • Personal Best Downloads Level 1
  • First Review
  • First Submission
  • Thankful Level 2
  • Knowledgeable Level 3
  • Solver
  • Revival Level 1
  • First Answer

View badges

Content Feed

View by

Answered
If you're using tic, toc, and var=input('prompt'), is there a way for toc to interrupt the user input if they take too long to answer?
Its possible, not using toc though. The problem is this, once your code reaches the input function it freezes in that line and ...

4 days ago | 0

Answered
How to smooth multiple datasets in app Designer with one slider
If I understand correctly this time, you have 4 datasets, you want to plot one of them and you want to control the smoothing wit...

4 days ago | 0

Answered
How to smooth Data on App Designer for only plot on display
You can save the original data in a different property, then plot it as response to the slider callback See simple example I ma...

6 days ago | 0

Answered
How to change the order when moving components on the App Designer using the Tab key on the keyboard
Apparently there is no straight forward way of doing that. It seems that the tab-order is controlled by the order of adding com...

6 days ago | 0

Answered
How to superpose pcolor and plot on the same figure?
You call clf() after changing hold status to 'on' this clears your figure, therefore resets your hold status to 'off'. move cl...

1 month ago | 0

| accepted

Answered
How do i fit the weibull histogram?
The PDF you calculated should be normalized to the area of the histogram first. Here's how histfit does it more or less: pd=...

1 month ago | 0

| accepted

Answered
Negative Numbers to the power of 0
Any arithmetic operation performed on variables will treat the variables as if it was wrapped with parentheses. Try this simp...

9 months ago | 0

Submitted


xyannotation
creates an annotation object with the x-y coordinates of the data in a specific axes handle

9 months ago | 1 download |

Submitted


ForSDAT
Force Spectroscopy Data Analysis Toolkit

9 months ago | 3 downloads |

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

10 months ago

Submitted


Local Path
find local path of a function or script

11 months ago | 1 download |

Answered
While loop isn't working
You have two mistakes 1. while loop should work with a scalar condition, but as far as I know if you use a logical vector it wi...

11 months ago | 1

| accepted

Answered
How do I fill a matrix with values of an one array based on another array?
If I understood correctly, try this: Wzr2D(1,:) = Wzr(Rr(1:5000) / dr) This should work if you can guarantee that all va...

1 year ago | 0

Answered
Change Resolution (step size) of axes
plot(1:10); ylim([1,10]); yticks(1:10);

1 year ago | 0

Answered
Matching unequal cell arrays
A = {124,252,1252,225,598,999}; B = {598,'plant';... 1252,'nil';... 252,'blue'}; [~, Ai_member, Bi_member] = i...

1 year ago | 0

Answered
Storing Data From a For Loop
Assuming your Newton-Raphson method returns a scalar: D_c = 1:1:80; L_c = 120; C_s1c = 2.5e6; C_01c = 2e6; x = linspace(0...

1 year ago | 0

| accepted

Answered
How to create an empty array to be filled?
Ma is a 0x0 empty vector: Ma = [] Ma = [] You can't multiply your 1x100 vector A by that using element by e...

1 year ago | 0

Answered
how to load a function in AppDesigner?
Seems to me that the warning is warning you against loading data into the workspace without controlling the variable names. Try...

1 year ago | 0

| accepted

Answered
split a 2d matrix and create new 3d matrix from the results of the 2d matrix
If I got it right Matrix_T_A = repmat(reshape(T_A', 1, size(x, 2), size(x,1)), 24, 1, 1)

1 year ago | 0

Answered
Plotting random points on a circle
Assuming you mean inside the circle and not on that circle, because then obviously the distance is 500 Anyway, it is much easie...

1 year ago | 0

| accepted

Answered
Find a word in a file then pick the value next to it
You've got the right idea. Regular expressions can be confusing at times I tested the regexp, the rest of the code is not teste...

1 year ago | 1

Answered
Custom Object property save/load problem
It seems to me that you are saving a 3 column table to the .mat file, then when you load it again, it uses the property to set i...

1 year ago | 0

| accepted

Answered
How can read 30 text data files in matlab ?
you can alwsay put all of them in a single directory, then use dir to get all file names and iterate through all of them: path ...

1 year ago | 0

Answered
How to add a sequential number in a column of tables cell?
for i = 1:numel(Test) t = Test{i}; t.gridded_model = strcat(t.gridded_model, '_', num2str(i)); Test{i} = t; end

1 year ago | 1

| accepted

Answered
Text file has headers that are 2X4 and are repeated randomly within the data.
str = fileread('MCT_Data.txt'); nums = cellfun(@str2double, regexp(str, '([\d.,]+)', 'match')); x = reshape(nums, 4, [])' x...

1 year ago | 0

| accepted

Answered
Converting all arrays inside a cell to tables
c = repmat({(1:10)'}, 3,3) c = 3×3 cell array Columns 1 through 2 {10×1 double} {10×1 double} {1...

1 year ago | 1

Answered
Error with find function in a for loop
Find accepts a logical vector and returns all the indices containing 1. The problem is you are giving find a scalar value so...

1 year ago | 1

| accepted

Answered
How to plot colorbar as seperate image?
I assume your image is grayscale, right? If I understand you correctly: min_val=min(example_img(:)); max_val=max(example_img...

1 year ago | 1

| accepted

Answered
How to return no output in a function with output?
output variables, the same as input variables, are optional You can choose to return one, both or neither of your outputs. In ...

1 year ago | 0

Answered
Can I run MATLAB code on a server?
I think this may be what you are looking for https://www.mathworks.com/help/compiler/webapps/install-matlab-web-app-server.html...

1 year ago | 0

Load more