Community Profile

photo

Jon


Last seen: Today Active since 2013

Statistics

  • 6 Month Streak
  • Knowledgeable Level 5
  • Pro
  • Revival Level 1
  • First Review
  • Thankful Level 3
  • First Answer

View badges

Content Feed

View by

Answered
How can I transform polynomials such that they overlay each other?
Assuming you want them to match at some particular value of x you could do something like this. By the way the first curve in y...

3 dagar ago | 0

Answered
How to calculate th mean/average value for a repetetive time step
You should be able to use MATLAB's movmean https://www.mathworks.com/help/matlab/ref/movmean.html for this without any loops

3 dagar ago | 0

Answered
state space matrix magnitude changes sampling rate
I think that you are just getting a little confused about the time scaling. In the nominal case you can see that the system rea...

4 dagar ago | 1

Answered
ODE45 projectile angle input
Using ode45 you integrate (solve the differential equations) for the x and y components of the velocity and position. The initi...

4 dagar ago | 0

Answered
How to execute a task every 20 minutes for 10 hours every day from 7:00 to 17:00
You could use two timers. The first timer would execute with a 24 hour period executing at 7:00AM each day. Its callback functi...

5 dagar ago | 0

Answered
How do I create a loop for this calculation in MATLAB?
Slightly different interpretation of how you want to do loops, I ignored the first comment about 25 iterations. Regardless it se...

5 dagar ago | 0

Answered
How to create table or matrix from these cell array in MATLAB?
I'm not sure what you want to do with the data, but you could organize it in a table where each row is a test (or whatever the 5...

5 dagar ago | 0

Answered
How to combine two matlab functions to get only one?
This would be one approach, in which you keep your original MA_from_TA function, but within Time_of_Flight you call it twice fu...

6 dagar ago | 1

| accepted

Answered
Find indexes in cell array
R1={'2B' , '1A' , '1A' , '2B' , '1D' , '1A+1C' ,'1A+1C' , '1D' , '1A+1C' , '1B+1E' , '1B+1E', '1D'} C1={'1A' , '2B' , '1A+1C' ,...

6 dagar ago | 0

| accepted

Answered
Splitting a matrix according to there labels
This is one way to do it % make an example data file with last column having either a "label" of 1, % 2, or 3 data = [rand(...

6 dagar ago | 0

| accepted

Answered
How to save figures and subplots App Designer
This is a way of making a screen shot of the figure within app designer plot(app.UIAxes,1:100,rand(1,100)) ...

6 dagar ago | 0

| accepted

Answered
How to plot data from JSON Structure array
I don't understand what you are expecting to happen in your example code. Your variable downloaded_data is assigned to an array...

7 dagar ago | 0

Answered
is it possible to further plot Figures previously saved in .fig or .png mode?
Save your figures as .fig files. Then follow the directions in this previous post which explains exactly how to put the figures...

7 dagar ago | 1

| accepted

Answered
column number extract using find function..
A = [ 0 500 1000 1500 2000 2500 3000 3500 x1 x2 x3 5500 6000 6500 7000 7500 8000 8500 9000 9500 10000 ] ; matchVals = [500,10...

10 dagar ago | 0

Answered
I'm having this kind of error in the below code g Error using ceil Too many input arguments. Error in g (line 6) CG = ceil(G,1);
Unless the first argument to the ceil function is a duration (time) then ceil only takes one argument. So in your call it doesn'...

10 dagar ago | 0

Answered
4 Dof response with state space formulation and ode45
You may have other errors too, but one thing that doesn't look correct is the multiplication A1*y in your odefun. A1 is an 8x8...

10 dagar ago | 0

Answered
Assigning an iterative variable a script
The problem is that you preallocated suit1, and suit2 as a vector of doubles (numeric values), but then in the loop you assign ...

11 dagar ago | 0

| accepted

Answered
Find closest sphere in a cluster with random spheres having different diameters-2
Here is another approach, in which we consider the spheres to be nodes in an undirected graph with edges connecting the nodes wh...

12 dagar ago | 1

| accepted

Answered
spectrogram of data set
Please see the documentation and in particular the example shown in https://www.mathworks.com/help/signal/ref/spectrogram.html ...

12 dagar ago | 0

Answered
how to get step response for two inputs in for state space model ?
Your system has 7 inputs and one output. Your code already plots the step responses to each of the seven inputs as shown in atta...

12 dagar ago | 1

| accepted

Answered
Get all labels from my simulink model
I'm not sure exactly what information you are looking for but I think you should be able to use the find_system function to get ...

12 dagar ago | 0

| accepted

Answered
the value of the row and columns
val = x(2,5)

12 dagar ago | 0

| accepted

Answered
How to conditionally and by groups subtract one row from another in table?
Is this what you want: country = categorical(["USA";"USA";"USA"; "Canada"; "Canada"; "Canada"]); sector = categorical(["supply...

12 dagar ago | 1

| accepted

Answered
Create average data file and plots
You will have to read the data back out of the individual data files, store the variables of interest in arrays, and then comput...

13 dagar ago | 0

Answered
split image and create a new one using this pieces
Does this do what you want: % make an example image A = randi(128,128); % chop it up into 32 x 32 squares B = reshape(A,32...

14 dagar ago | 1

Answered
How to collapse a subsystem in Simulink
Just go back up one level to the parent

14 dagar ago | 1

| accepted

Answered
Need help with creating a function of three parameters
You're close. Just put the formulaes inside of the function, and return the outputs of interest. Something like the code shown b...

14 dagar ago | 1

| accepted

Answered
Storing of output in a for loop
A=xlsread('Values.xlsx','Sheet1','A2:A3204'); count=0; % assign x x = 0:50:7500; % preallocate vector to hold counts numC...

14 dagar ago | 0

Answered
Creating a logic vector out of 2D matrix
%M matrix M = [1 2; 2 0; 3 1; 4 0; 5 3; 6 0; 7 2; 8 4; 9 0; 10 1]; % logic vector...

19 dagar ago | 0

Answered
Color each boxplot differently
I think this should get you closer to what you want. You can select other colors using their rgb color codes, I just used red,gr...

20 dagar ago | 0

Load more