Answered
How Do I Remove Scientific Notation From X/Y Axes on Plot
Multiply your data by the appropriate factor. x = (1:10)*1e-6; y = (1:10)*1e-3; figure(); plot(x,y); % original plot, with e...

4 years ago | 0

Answered
original script uses random number generation as its input - to fit my needs requires input of lab data I have collected instead of random number; I get 1-by-0 errors
It seems likely that omega should not be a scalar, because theta = cumsum(omega,1)*t0 with scalar omega is the same as theta = o...

4 years ago | 0

Answered
How to grid with distance?
One of these File Exchange submissions may help you: https://www.mathworks.com/matlabcentral/fileexchange/38812-latlon-distance...

4 years ago | 0

| accepted

Answered
How to select an image from a group?
Clicking on one of the subplots makes it the current axes, so you may be able to click and then do gca() to figure out which one...

4 years ago | 0

| accepted

Answered
如何绘制两个方向的x轴
If I understand what you want to do, you can try something like this: plot(-4:4,-4:4); ax = gca(); set(ax,'XTickLabels',abs...

4 years ago | 0

| accepted

Answered
how to find minimum value of output corresponds to which input values in a loop/nested loop ? here i want to find minimum value of ug correspond to what value of c and hh ?
Here is an alternative to the way I showed in an answer to one of your other questions about this: % going to keep track of the...

4 years ago | 0

| accepted

Answered
how to find minimum value of output corresponds to which input values in a loop/nested loop ? Error i am getting is Index exceeds the number of array elements.
Note that after a for loop completes, the value of the loop iterator is the value it had during the last iteration of the loop: ...

4 years ago | 0

| accepted

Answered
How to use pause in for loop?
n=1000; for k=1:n B(k)=Ax(1,k) C(k)=Bx(2,k) if mod(k,100) == 0 pause(10); end end...

4 years ago | 0

| accepted

Answered
how can i store arrays of different sizes in each for loop?
The easiest way is to use a cell array: niterations= 100; Nusers = 120; vec_nack = cell(1,niterations);%to stock vec_ack = c...

4 years ago | 1

| accepted

Answered
Inputting two vectors A & B to determine whether elements of vector A is in vector B resulting in a Vector C
As you point out, C should be a vector; in fact, C should be a vector with the same length as A. So initializing C to be the sam...

4 years ago | 1

| accepted

Answered
how can i count the number of times that the symbol appears?
One thing to do is not to reset the count to zero each time through the for loop. See modified code (including other modificatio...

4 years ago | 0

Answered
How to reduce matrix size conditionally?
Here's one way: N = max(N_total,[],2);

4 years ago | 0

| accepted

Answered
Plot two data sets and only clear one of them ?
You can store the handle(s) to the plotted objects somewhere in your app structure, and delete them and replace them with new pl...

4 years ago | 0

| accepted

Answered
How to stop the axes from changing within loop without defining them every iteration
You can set up the axes once, and also create the objects in the axes once (i.e., the line representing the ball, the text for t...

4 years ago | 1

| accepted

Answered
how to omitt columns with only nan values when calculating means across mutiple tables?
This omits all NaNs from the mean calculation. load('mycell.mat'); n_tables = numel(t_sq_dot_1); % put all tables' data int...

4 years ago | 1

| accepted

Solved


Number Puzzle - 041

4 years ago

Solved


Number Puzzle - 035

4 years ago

Solved


Number Puzzle - 039

4 years ago

Solved


Number Puzzle - 037

4 years ago

Answered
How can I put an image over another in a specific coordinate?
Here is a thing you can try: row=256; col=256; img=ones(row,col); branco=imshow(img); hold on row1=100; col1=100; img1=z...

4 years ago | 0

Answered
fill area between two curves
You should use flipud() or flip(_,1) or just use indexing (and do vertical concatenation with ; rather than horizontal concatena...

4 years ago | 1

| accepted

Solved


Squares inside a square!

4 years ago

Solved


NaN

4 years ago

Solved


area

4 years ago

Solved


Diagonal Prod

4 years ago

Solved


Plotting Practice
Plot cos(x) vs x as shown in the figure below. Include the appropriate title, x-label, and y-label. Note, it is case sensitive. ...

4 years ago

Solved


System of Linear Equations

4 years ago

Answered
How to set upper and lower limit of random number
lower_limit = 300; % to use your example values upper_limit = 350; % generate a uniformly distributed random *number* betwee...

4 years ago | 1

Answered
Returning both chosen and not chosen elements
This will create a variable fname_out, which is a cell array whose length is the number of .csv files located in the specified d...

4 years ago | 0

| accepted

Load more