Community Profile

photo

Jon


Last seen: 4 Tage ago
225 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
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 ...

4 Tage 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...

4 Tage 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...

5 Tage 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...

8 Tage 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...

17 Tage 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 ...

18 Tage ago | 0

| accepted

Answered
how to create a table in Matlab ?
You can do something like this x = [1;0.8;0.5;0.2] dt = [0.05;0.05; 0.05;0.05] EL1 = [3; 4; 5; 6 ] t = table(x,dt,EL1) Ther...

18 Tage ago | 0

| accepted

Answered
Selecting and Manipulating Specific Elements from Cell Array
% define original matrix myCell = {'apples' 1;'bananas',3;'apples' 10;'apples',9;'bananas' 7} % use logical indexing to just g...

19 Tage ago | 0

| accepted

Question


Change value of one element of a vector valued Simulink Constant Block
I would like to programmatically change one element of a vector valued Simulink Constant Block. So for example suppose I have a...

19 Tage ago | 0 answers | 0

0

answers

Answered
I don't know why I am not getting an arc when I change the dimension
I'm not sure from your code exactly what the parameters of your arc should be but this is probably closer to what you want. You ...

5 Monate ago | 0

Answered
How can I add variable amount of padding to each column in my matrix?
Try Apad = tril(A,-1)

5 Monate ago | 0

| accepted

Answered
How to solve equation with ten unknowns with Fourier Analysis
If you have the optimization toolbox you can use fsolve

5 Monate ago | 0

Answered
How to connect the plot point in matlab
First, you should avoid name your variable length, (which I think you mispelled in your example above as lenght) as length is a ...

5 Monate ago | 0

| accepted

Answered
Create array with average values
Use reshape. Say data is a 480 element vector X = reshape(data,12,40) Then if you want the average over all the data you can j...

5 Monate ago | 0

| accepted

Answered
Need Help Error using vertcat Dimensions of arrays being concatenated are not consistent. Error in myModel (line 20) dy = [lambda+theta1*Va+theta2*Vb-(beta*Ih+ mu+ alpha1+alpha2)*S;
The line of code you provide does not provide enough information to provide specific guidance. First you are missing a right ha...

5 Monate ago | 1

| accepted

Answered
How to read video and save each video to CSV file
Hi Kong clear all close all %// read the video: list = dir('*.avi') % loop through the filenames in the list for k = 1:len...

5 Monate ago | 0

| accepted

Answered
Trying to move images to different folder based on CNN classification, and failing
I would suggest checking the return status and error messages from movefile by assigning some left hand arguments to the movefil...

5 Monate ago | 0

| accepted

Answered
Computing all values for Width and Height
Here are some hints: So think about an equation that expresses the Area A in terms of H and W. Now you know A so if you specify...

5 Monate ago | 1

Answered
Why isn't IF statement stopping Wile loop
You never break out of the inner loop where you alternate between players, so the condition doesn't get checked Try putting in ...

5 Monate ago | 0

| accepted

Answered
How to read several files and save CSV files in folder
You can use list = dir('*.avi') to get a list of the .avi files in your local director. Check out the documentation on the dir...

5 Monate ago | 0

| accepted

Answered
transform x,y coordinate to angle
I would think that you could use atan2 or atan2d (if you want result in degrees) for this. For example x1 = [2;1] % first poin...

5 Monate ago | 0

| accepted

Answered
point slope form on matlab? how should it be inputted?
I don't think there is anything wrong with you formula, I'm guessing you didn't define your x1,y1, m, and x properly. Try someth...

5 Monate ago | 0

Answered
issue with polyval and polyfit measuring time
One problem may be that you think that log(x) gives log to the base 10 of x but it is the natural log. So use instead xlog = l...

5 Monate ago | 2

Answered
How to calculate an average of a weather variable for a month during daylight hours only?
Here's an example of one way to do it filename = 'sgpceil10mC1.b1.20190101.000000.custom.csv' % read data into a table T ...

5 Monate ago | 0

Answered
how to generate a random vector with fixed sum and bounded elements
Hi John, In case I have a chance to work on this some more, and for future reference, do you have any advice on quantitative tes...

5 Monate ago | 0

Answered
permutation matrix for process simulation
You should be able to loop using perms and nchoosek to do what you need. Something like this: % generate filtration test matr...

6 Monate ago | 0

| accepted

Answered
Is it possible to calculate the average Manhattan distance between a set of 2D points with one function?
I think this does what you want. You could probably make it more efficient recognizing the symmetry of the distance matrix, but ...

6 Monate ago | 0

| accepted

Answered
Splitting a vector into separate vectors using thresholds
While I was working on this I see you already got an answer from Stephen. My approach is similar although not as vectorized. A...

6 Monate ago | 0

Answered
add time shift to signal vector
If you want to shift your data by an integer number of samples you can do something like this (here I'm just shifting y2, and pl...

6 Monate ago | 0

Load more