Community Profile

Last seen: 9 days ago Active since 2022

#### Content Feed

View by

Question

How to implement integration of an array in MATLAB?
I have been using cumtrapz for integrating an array. However, the function I am integrating is a cosine wave and it is expressed...

1 month ago | 0 answers | 0

### 0

Question

How to integrate using the for loop?
I have a cosine wave function. how can I integarte that using the for loop. The cosine wave is an array of 1x40019. How can i in...

1 month ago | 1 answer | 0

### 1

Question

How to integrate cosine wave in MATLAB?
I have a cosine wave of 50Hz and and 1000 Amplitude. It is a AC voltage. I need to integrate it. I know that it would be the sin...

2 months ago | 1 answer | 0

### 1

How to select rows from an array?
I think I found out the way. It has to be something like this: B=A([2, 4, 6], :)

2 months ago | 0

Question

How to select rows from an array?
I have matrix of A . I need to select the 2nd, 4th and 6th row. How can I write that in MATLAB code?

2 months ago | 3 answers | 0

### 3

Question

How to solve nonlinear equations in MATLAB?
I have the following equations, a+b(ic)+c(ic)^2=(1.1809)^2 a+b(id)+c(id)^2=(3.1570)^2 I need to solve the equations to find t...

3 months ago | 1 answer | 0

### 1

Question

How to perform differentiation in MATLAB?
I have the following function. The F is a 1*4 matrix and it is given. w=2*pi*f where f=50 Hz. I need to find out the value of...

3 months ago | 1 answer | 0

### 1

Question

How to generate a nonlinear equation from MATLAB?
I have the data points of a nonlinear curve. X=[0 1 1.1 1.15] Y=[0 0.0042 0.0097 0.016] But I don not have the curve. How can...

3 months ago | 1 answer | 0

### 1

Question

How to merge two .mat files?
I have a data file where the number of rows=721800 and number of column=23. I have another .mat file with same number of rows an...

7 months ago | 1 answer | 0

### 1

Question

How can I write both alphabets and numbers in .mat file on same cell?
I need to save the data in .mat file. But the data values has names such as a=0.3, b=9, alpha=-0.89. In the cell, both the name ...

7 months ago | 2 answers | 0

### 2

Question

How to write 10^(-6) in xlabel?
I need to write a line in the xlabel. In that line, avlue has to be shown as 4x10^(-5). I am using the below command: xlabel([...

7 months ago | 1 answer | 0

### 1

Question

How to set minor ticks for any particular position?
I need to set xticks from -4000 to 4000. I use the following command to set ticks at every 500. xticks(-4000:500:4000) But I n...

7 months ago | 1 answer | 0

### 1

Question

How can I write a fraction inside string?
I have a plot where I put the graph's parameters in a string and put xlabel as the unit on X-axis. Inside the string, I need to ...

7 months ago | 1 answer | 0

### 1

Question

How can I use the command 'tiledlayout' inside a loop
How I can I use 'tiledlayout' if I need to plot two graphs with each one has multiple graphs? I was using subplot but the white ...

7 months ago | 1 answer | 0

### 1

Question

How to find Jiles Atherton Parameters in non-linear reluctance from simulink?
I am working to create the B-H curve using Jiles-Atherton Model. I found that the simulink has the build-in block for that named...

7 months ago | 0 answers | 0

### 0

Question

Why I am not getting a proper B-H curve?
I have plotted a B-H curve based on simulink model. But when it reaches to satuation, to does not comes backwords properly. The ...

8 months ago | 0 answers | 0

### 0

Question

Putting alpha in a string
I have to make a figure caption from the m.file. The caption contains greek letters alpha. I was trying put it in thwe caption a...

8 months ago | 2 answers | 0

### 2

Question

How to plot and print two graphs in a same page?
I have been trying two put two graphs in a single make and make it PDF. But the border of the pages is not equal on all the side...

8 months ago | 1 answer | 0

### 1

Question

How to set start and stop time of Simulink from m.file?
I have a simulink model. I have to get the result from that model in between certain time period. The model has to start running...

8 months ago | 0 answers | 0

### 0

Question

How can I control the simulation run time from m.file?
I have both the smulation file and the m.file. I need to run the simulink based on values from the m.file. But I also need to co...

8 months ago | 1 answer | 0

### 1

Question

Edit plot position in MATLAB
I have two plots. I need to fill them in a A4 page such way they fills the page. The plots has be square The margin is very smal...

8 months ago | 1 answer | 0

### 1

Question

How to export simulink graoh to MATLAB plot?
I have to create 2000 graphs using loops. Whenever I start running my code, it always shows the 1st iteration graph and saves it...

8 months ago | 0 answers | 0

### 0

Question

save m.file as PDF
Hi. I have a number of figures to be made as PDF. There are around 200 figures and I have to make them PDF with figure captions....

9 months ago | 1 answer | 0

### 1

Question

Collecting data from cftool
How can I collect a certain value from the cftool. For example, after curve fitting, I get the value of m (y=m*x+c) from the cur...

10 months ago | 0 answers | 0

### 0

Question

The derivative block in simulink has the build in block where the derivation is done with respect to time (t). But if I need to ...

10 months ago | 1 answer | 0

### 1

Question

Import Graph to Curvefitting
I have a B-H curve through simulink simulation. It is plotted through X-Y graph of the simulink. How can I import it to curvefii...

10 months ago | 0 answers | 0

### 0

Question

B-H curve
Can anyone give me how can I pot B-H curve in MATLAB? I don't have any data. If anyone can giveme example data with the MATLAB p...

10 months ago | 1 answer | 0

### 1

Question

Jiles–Atherton parameters
How can I calculate Jiles-Atherton parameters. What will be the equations and how to write them in MATLAB code. can anyone give ...

10 months ago | 0 answers | 0