Professional Interests: Aerospace Engineering
Top 1% contributor
I have a code that goes through _many_ files and creates _many_ plots that I distribute to different users. The plots are automa...
Asked 1 year ago
Don't use the curly brackets. That tells Matlab its a cell when its not. It is an array. Write like this
Answered 1 year ago
Hi Tomas, I think I could help you with this, but I need more information about your problem. Please describe exactly what you...
3 years ago
Hi Rasa, Aside from simply making sure your input is formatted correctly, one thing you could try is placing - pause(.1) - i...
When I try to convert from string to number, I lose precision?
Name Size Bytes...
If you post this on MATLAB Answers you might get more help! :) People are pretty friendly over there http://www.mathworks.com...
1 year ago
The reason is this.
Lets say I make two 500x500 matrices using the following.
A = ones(500,500);
B = 4*ones(500,500)...
*The greyed out text is all you should have to type to make what you want.*
First assign the data to an 'array', or also call...
You can generate random number grids using the function *rand*
rows = 3;
columns = 3;
Numbers = rand(rows,columns...
Write a function with no inputs that sets all of your constants in a structure, and return that structure. (Using structures bec...
Answered 2 years ago
I have enabled cell folding with the double percent signs, %%.
I can click each individual +/- on the left hand side of my sc...
Referring to this documentation
What is L?
L = 1000; ...
Asked 12 months ago
This is more of a trivial request, but it would be convenient for me if there was a setting I could change before running a scri...
I have edited this question to try to make it more clear:
As an example, I have the following arrays:
I have inherited a script with many textscan functions like the one below
textscan(fid, '%*s %*s %f\n\r',1,'HeaderLines',19...
I am trying to use GUIDE for various things. After not having used it for over a year, I can't believe the simple things that I ...
The code is rather tedious, but at the very end of and inside of "Function A", I call another function, "Function B"
Asked 2 years ago
I have a uitable with the last column being checkboxes.
Rows represent processes, when the process is complete, I want to make ...
I have a uitable in a GUI I made in Matlab guide.
I want a checkbox to turn green when its 'checked', and turn back red if it...
Is it simply because you can flip the inputs in strfind however you want, (making it more flexible), or is it actually more reso...
Judging by your example, I believe you mean b *repeated* a times. Not a times b.
Yes there is a command for that.
Notice in all the other functions you pass in *handles* which allows you to access the data inside
sizegroup=input('Enter number of students: ');
for k = 1:sizegroup
name=input('enter name: ', 's'); %read in name ...
This solution removes the black dots!
The reason it looked awful after removing NaNs is because instead of just taking the no...
Maybe this can get you started. I made a textfile of the example you provided, and a sample code is attached to re...
myMatrix = rand(5760,1)
for jj = 1:576
moving_avg(jj,1) = mean(myMatrix(jj*10-9:jj*10));
Will make a matri...
Try this maybe?
odif = find(o~=on); % element index: combos with O==O
pdif = odif(find(p(odif)...
To list all variables in your workspace
variables = who;
With this, you can loop through every variable, and check if it...
When a figure is open, use
before plotting to keep putting more plots on the same figure
Accessing lp.lr is your problem.
First make sure this is really what you meant to type. If it is, make sure lp.lr really exis...
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend you select United States from the following list:
See all countries