Community Profile # Pullak Barik

Last seen: 1 year ago Active since 2019

#### Statistics

• • #### Content Feed

View by

how to find the properties of a simulink library block using matlab script
I guess you should read up about get_param and the 'ObjectProperties' parameter for the get_param function. You can then use get...

2 years ago | 0

How to trim a text file with start and end line numbers
I use the code-generator from the import tool to only import the lines needed from the text file, and then copied the cropped co...

2 years ago | 1

How to input result looping/iteret (for) to a existing matrix ?
I can suggest the following ways- Computing Q0, Q1, ..., Q5 values in a for-loop using a single array where the values of X(i) ...

2 years ago | 1

| accepted

Return an output even if the while loop gets an error
I suggest that you use try-catch blocks in your code to customise the behaviour when you get an error. Link to documentation- T...

2 years ago | 0

Solve differential equation using ode23 and ode45
Firstly, as correctly mentioned in the comments, the eqn variable should be written as- eqn = diff(x, y) == (x + y*exp(y)); No...

2 years ago | 0

| accepted

creating a new column with three columns
I will proceed in the following way- 1) Merge col_1, col_2, col_3 into a single matrix. 2) Reshape the transpose of the array....

2 years ago | 0

How to implement multiple output condition using outport and switch
This query, though simple, seems incomplete and unclear. For instance, what happens to the value of 'z' if the if-condition hold...

2 years ago | 0

max function to receive maximum element of the row
Firstly, here's the link to the documentation on the max function- max. Use the link to understand more about the max function....

2 years ago | 0

| accepted

How to combine multiple curves to create one single curve or combining multiple curves to generate single average density curve
Please refer to the following thread on MATLAB Answers and tell if it helps- Combining curves to create a single average curve. ...

2 years ago | 0

Parse varies of pair variable into function?
The comment by Andreas Dorner should help. Basically, using findpeaks(y, x, tmp{:}); should work out for you.

2 years ago | 0

| accepted

time intervals distribution in 24 hours day time
I guess that making a table that stores these times will help. I have attached a code below, please tell if it helps- tariff = ...

2 years ago | 0

plot differential equation need help
I tried a way out, tell me if it helps- clc syms y(x); syms q; Dy = diff(y); ode = diff(y,x,2) + q*y == 10*q; %The equation...

2 years ago | 0

| accepted

live editor plots next to each other
As mentioned in the comment by @Vidhathri, you can try using subplot to cater to your needs- Subplot docs page. If you want two...

2 years ago | 0

How to split data from being in one excel file cell into multiple column
I guess the following code shall work for you- clc; clear; c = readcell('test1.xlsx'); x = c(cellfun(@ischar, c)); split1=r...

2 years ago | 0