Professional Interests: Aerospace Engineering
Top 1% contributor
The reason is this.
Lets say I make two 500x500 matrices using the following.
A = ones(500,500);
B = 4*ones(500,500)...
Answered 6 months ago
*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...
I have a code that goes through _many_ files and creates _many_ plots that I distribute to different users. The plots are automa...
Asked 6 months ago
You can generate random number grids using the function *rand*
rows = 3;
columns = 3;
Numbers = rand(rows,columns...
Answered 7 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 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...
2 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...
Asked 9 months ago
If you post this on MATLAB Answers you might get more help! :) People are pretty friendly over there http://www.mathworks.com...
8 months ago
Referring to this documentation
What is L?
L = 1000; ...
Asked 1 month ago
Judging by your example, I believe you mean b *repeated* a times. Not a times b.
Yes there is a command for that.
Answered 4 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 4 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 ...
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...
Answered 5 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 5 months ago
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)...
Don't use the curly brackets. That tells Matlab its a cell when its not. It is an array. Write like this
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...
I have edited this question to try to make it more clear:
As an example, I have the following arrays:
Asked 7 months ago
You can convert to ascii equivalent, then find variance.
jumble_text = 'alskdjbfalksjbdf'
ascii_text = double(jumble_tex...
You can make a 3d array where each slot from a 10x10 matrix has its own vector with the following syntax.
matrix(1,1,:) = ...
Use *eval* , Its really easy! Reads a string as a variable.
Here is an example. Using the base 'var', I increment the variabl...
To call the entire contents of a column of a matrix, use matrix name and the colon operator (:)
Para encontrar la columna de ...
When you called it you left out an equals sign, to start.
[T, XY] ode45('diffxy',0,10,[0 1 0]) %from this
You can use subplots like normal (yay!)
I just tried it with a surface plot on the left and a line plot on the right.
Here is ...
Join the conversation