# Jon

**Statistics**

RANK**91**

of 247.135

REPUTATION**1.191**

CONTRIBUTIONS

**9** Questions

**433** Answers

ANSWER ACCEPTANCE **
77.78%
**

VOTES RECEIVED**126**

RANK

of 17.231

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Unable to perform assignment because the indices on the left side are not compatible with the size of the right side

Following up on @Walter Roberson's comment, I ran your code (I assigned my own values to data, as I didn't have your input file...

ongeveer 17 uur ago | 0

how to find the value of the diagnol of the attached image

From your matlab.mat file it seems that you are showing the image represented by the matrix corr_data. You can get the diagonal...

ongeveer 18 uur ago | 0

Add data from one input file to another

I think you should be able to get the sets of data that you want using MATLAB's ismember and intersect Is that what you are ask...

ongeveer 19 uur ago | 0

How to solve for x give the equation of a circle and the equation of a line?

You can use MATLAB's fsolve to solve the original system of two equations and two unknowns. To do this you have to rearrange the...

ongeveer 19 uur ago | 0

How and what is the time period of following function

I think you are looking for a characteristic time duration for your circuit. One common criteria is the settling time following ...

1 dag ago | 0

How do I make Matlab not show large values in scientific notation?

I think typing this command on the command line may get you what you want format shortG

1 dag ago | 0

| accepted

interpolate data in timeseries

Although you say you have a "time series" it looks like v is just an ordinary vector. Assuming you have another "t" vector to go...

2 dagen ago | 0

How to get the equation inside that of root(function,z) equation ,i.e the function only

This is a polynomial, you should be able to obtain all of the roots (real and complex) using: r = roots([1.0 ... -(190266...

2 dagen ago | 0

I have to combine 90 txt files in one txt file

If you don't want to create a huge matrix before writing it out you could do this % define some parameters outfile = 'alldata....

3 dagen ago | 0

I am trying to write data to a file where the first column is the time values and the second column is the volts values.

I think the problem is tha fprintf writes the elements columnwise. You could send the transpose (use the ' operator) fprintf(fi...

3 dagen ago | 0

| accepted

create a graph with a specific interval

If you want n to have integer values greater than zero and strictly less than 35 you can define n = 0:34 If you don't require ...

3 dagen ago | 1

why do I suddenly get a gain value in my transfer function?

Your original expression and the one found by zpk are the same. zpk just factored out the 2 from denominator.

3 dagen ago | 1

| accepted

How to solve for N sets of 2 equations and 2 unknowns using a for loop?

This is one approach using nested functions to pass additional paramaters, see https://www.mathworks.com/help/optim/ug/passing-e...

10 dagen ago | 0

| accepted

Convert from linear to log scale and back again

I think you can get what you want using MATLAB's semilogx function

11 dagen ago | 0

Is there a way to find the mean of every other number in a vector and compare it to every other number in another vector?

I'm not sure if I am clear on what you are trying to do but from your description I would do something like this: red = [2 4 3 ...

11 dagen ago | 1

Trying to combine multiple square matrices diagonally into a combined larger matrix

You can use MATLAB's blkdiag function for this so in your case T = blkdiag(A,B,C)

11 dagen ago | 0

intersect() returns unplausible values

I think you may be misunderstanding the usage of MATLAB's intersect function. It finds the set intersection (elements in common)...

11 dagen ago | 0

| accepted

how can i get value of y

It looks like you are trying to solve for the root of a nonlinear function. You can use MATLAB's fzero to do this. Type doc fzer...

11 dagen ago | 1

If point x belongs to vertices of rectangle?

You could define a 4 by 2 array, corners, with the corner values (first column x values, second column y values) then do somethi...

12 dagen ago | 0

| accepted

How to solve this error : "index out of bounds because numel(U)=1"

With your definition of U, U has only one element. Note you first assign a scalar (one element) variable u=1, then you assign U ...

12 dagen ago | 0

| accepted

3 Excel COLUMNS x,y,z imported into work space as vectors, z is a function of x,y how do i get the data into a 2d lookup table

Here is an example MATLAB script that you could run to assign the necessary variables in your base workspace before running yo...

12 dagen ago | 0

| accepted

How to adjust axes created using plot

use the ylim command for example g = @(x) sin(x)/x fplot(g, [-10, 10]) title('The result of fplot') ylim([-2,2])

16 dagen ago | 1

How to read an image & convert it into an array and vice versa

You can use MATLAB's imread and imwrite functions for this. On the command line you can type doc imread to get documentation fo...

16 dagen ago | 0

How to select corresponding rows of a table based on selected rows of one column?

T = readtable('sadegh.geo_cod.xlsx'); % sort the rows of table in descending order of areas Tsrt = sortrows(T,'Area1','desce...

17 dagen ago | 0

| accepted

Remove successive rows from a table where a specific column value is duplicated

If I am understanding correctly I think this will do what you are asking T = readtable('Metingen-data-2021-11-17 10_48_18.csv')...

17 dagen ago | 0

| accepted

Using a string in an if statement to print data from excel.

put single or double quotes around yes if view_data == 'yes' and also around no in the following line

17 dagen ago | 0

Why do I have "Warning: Imaginary parts of complex X and/or Y arguments ignored."

Most likely you are trying to raise a negative value to a fractional power, for example x^0.5 or x^0.4 where x is negative. Thi...

18 dagen ago | 0

Simulink build a loop and define intial conditions

In general you should be able to run your simulation iteratively by starting the simulation programatically using the MATLAB sim...

18 dagen ago | 0

How to plot stair like this??

I think this does what you want and is nice and simple X = [95 0;onlyPlot] stairs(flip(X(:,2)),flip(X(:,1)),'-o')

19 dagen ago | 0

| accepted

Cant get for loop to run

It looks like you define f to be a scalar at the top of your script. So it doesn't make sense to iterate through values of f(n) ...

19 dagen ago | 0

| accepted