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 10 months ago
Don't use the curly brackets. That tells Matlab its a cell when its not. It is an array. Write like this
Answered 10 months ago
Hi Tomas, I think I could help you with this, but I need more information about your problem. Please describe exactly what you...
2 years ago
When I try to convert from string to number, I lose precision?
Name Size Bytes...
Asked 1 year ago
Hi Rasa, Aside from simply making sure your input is formatted correctly, one thing you could try is placing - pause(.1) - i...
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...
Answered 11 months ago
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
If you post this on MATLAB Answers you might get more help! :) People are pretty friendly over there http://www.mathworks.com...
12 months ago
Referring to this documentation
What is L?
L = 1000; ...
Asked 6 months ago
I have enabled cell folding with the double percent signs, %%.
I can click each individual +/- on the left hand side of my sc...
Asked 8 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...
Asked 9 months ago
I have edited this question to try to make it more clear:
As an example, I have the following arrays:
Asked 11 months ago
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.
Answered 8 months ago
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 ...
Answered 9 months ago
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...
Join the conversation