Community Profile

photo

Jon


Last seen: Today
248 total contributions since 2013

Contact

Jon's Badges

  • Knowledgeable Level 4
  • Pro
  • Revival Level 1
  • First Review
  • 3 Month Streak
  • Thankful Level 2
  • First Answer

View details...

Contributions in
View by

Answered
How to run 2 scrips simultaneously, one for sending output to lab equipment and one for reading sensor output.
I'm not sure about licensing restrictions, but in Windows (probably similar for other OS) you can right click on the MATLAB ico...

5 days ago | 0

Answered
How can i get the control effort/output of the PID?
So I see you are on the right track, you are trying to define the appropriate closed loop transfer functions but using MATLAB's ...

6 days ago | 0

Answered
How to plot multiple graph
I don't have the symbolic toolbox, but I could get your code to work by modifying as follows. Note I did not include the line sy...

7 days ago | 0

Answered
Unrecognized function or variable 'FirstDerivative'
It looks like you are either missing the function FirstDerivative or maybe it is in a directory somewhere but that location is ...

11 days ago | 1

| accepted

Answered
How to find x and y component of a vector
Yes I think you should be able to recover the x and y components using the real and imaginary parts, that is using MATLAB's real...

11 days ago | 0

| accepted

Answered
How can i work with a matrix that present floating points
I don't think the problem is float versus integer. MATLAB is very forgiving on this. Are you sure that your bat_N values are neg...

11 days ago | 0

Answered
RMSD between two signals
Looking at your variables in the workspace I see the signals probeWith and probeWithout. Each arrays with two columns. I assume ...

11 days ago | 0

Answered
Real Time Plotting in Gui by taking data from Simulink
One way to do this is using get_param to get data from run time objects Please see https://www.mathworks.com/help/simulink/ug/...

12 days ago | 0

Answered
How can I solve a linear system of equation Ax=b where A and b are changing in a for loop
You could do it like this: % preallocate arrays to hold results x = zeros(9,360); A = zeros(9,9,360); b = zeros(9,1,360); ...

13 days ago | 1

| accepted

Answered
pulse disturbance signal generator
How are you running your simulation? Is it in Simulink? In Simulink you can use a From Workspace block to create an arbitrary s...

13 days ago | 0

| accepted

Answered
Recursive Forecast with VAR Model
You could do it in a loop something like this (I'm assuming the ith forecast value is a scalar, otherwise you may have to adjust...

13 days ago | 0

Answered
How to Add Headings to a list of data
In general, MATLAB doesn't provide for column or row labels for matrices. You could put the array into a MATLAB table and label...

14 days ago | 0

Answered
Problem to read csv file with a blank line
You should be able to use the headerlines property value pair in your call to readtable to skip the first 5 lines something like...

14 days ago | 0

Answered
while loops , error in use of the word else and else
At least one problem you have is in the loop: while fluid_volume <= (tank_volume_max - v_tol ) Fluid_height = fluid_height...

14 days ago | 0

Answered
Bode plot obtained from measured data is different from that obtained from transfer function
There are a number of problems with your problem formulation. I think the primary one may be that your system, as defined, is u...

25 days ago | 0

Answered
How to make a 3D Matrix
You can also do it like this, for example for a 2 by 4 by 3 A = ones(2,4,3).*reshape(1:3,1,1,3)

25 days ago | 1

| accepted

Answered
checking the existence of timetable and merge
If it is a question of whether the variables have been created at all, you can check whether they exist using the exist MATLAB c...

25 days ago | 0

Answered
How I finish a recursive function?
In your recursive function there must finally be a branch where you encounter a return. Once it hits this return, it will back ...

25 days ago | 0

Answered
MATLAB time (seconds) vs velocity graph plotting questions
Hi First, I am glad that although you are asking for help on homework you have made a good attempt on your own and are now jus...

27 days ago | 1

| accepted

Answered
How can I fix "Undefined operator '-' for input arguments of type 'matlab.ui.Figure'"
figure is a MATLAB command that will open up a new figure. MATLAB is telling you, it does not make any sense to subtract 1 from...

27 days ago | 0

| accepted

Answered
simple liquid spraying circuit
I would suggest thinking about it like this. Start with an integrator to represent the tank. The tank level is the integral of ...

1 month ago | 0

Answered
flatten structure array if values are identical
As a very general suggestion you should be able to make use of the MATLAB unique command for this purpose. Obviously a lot more ...

1 month ago | 0

Question


Control number of decimal places in app designer uitable with table array data
I am using a uitable created using app designer. The Data property is assigned to a MATLAB table array. Some of the columns in...

1 month ago | 1 answer | 0

1

answer

Answered
frequency shift property of the of FT
As currently written you are trying to produce a time vector starting at 0 with increments of 1e-9 (Tc/2) up to a value of -5e8 ...

2 months ago | 0

Answered
Hello I'm student and i have a project using matlab and i don't know anything about using matlab and the project is about representing output of signals. Can any one help me with matlab ??
Once you have learned enough MATLAB then please attempt the assignment. If you then have specific problems with the code you ha...

2 months ago | 0

Answered
Please help me understand whether I have set up a loop and performed an RMSE (Root Mean Square Error) calculation correctly
You could do something like this. I just made up some numbers to try the code. Also, obviously variable names like columnOfDat...

2 months ago | 0

| accepted

Answered
Matlab onramp problem 44934 plot damped sinusoid
The code that you show seems to be OK. I suspect that one of the arguments (y or t) in the script or function that is calling pl...

2 months ago | 0

Answered
How can one "summarize a matrix with the first four columns"?
Here is one way to do it. There might be some clever way to fully vectorize (eliminate the loop) this, but this will work if pe...

2 months ago | 0

| accepted

Answered
Dot indexing is not supported for variables of this type+ App designer
Usually when I unexpectedly get that error message it is because the object is empty. Are you sure there are folders that match ...

2 months ago | 0

| accepted

Load more