Community Profile

# Tiasa Ghosh

Active since 2017

#### Content Feed

View by

Question

Efficient way to use regexp and contains and matching
Hello! I am using the following code to match two cell array contents. But it takes way too long to process. Can anybody sugg...

5 years ago | 1 answer | 0

### 1

Question

Replace with regexprep in text file
Hello everybody! I am using regexprep to replace a set of characters in a text file. For example: I am trying to replace |+|,...

5 years ago | 1 answer | 0

### 1

how to change NaN values using ratio
if A=[778.2; 778.2; 778.3; NaN; NaN; NaN; 778.6; 778.7; 778.8; NaN; 778.8] then maybe you could search for all the ro...

5 years ago | 0

How can I add a character in between two characters in specific order in a string?
Maybe you could use iteration for all element of string array. First find the position |pos| of the number in the string with |s...

5 years ago | 0

Question

Error using str2sym (line 213)
Hello! I receive an error while running the following section: syms V I R fR L dI Ka I w str2sym('V == I*(R+fR) + L...

5 years ago | 1 answer | 1

### 1

if you want to load a png or jpeg file, you need to use imread function. Refer: <https://de.mathworks.com/help/matlab/ref/imrea...

5 years ago | 0

Question

Limit of nested parentheses in MATLAB
Hello all, I just wanted to know the limit of nested brackets and parentheses in MATLAB. I have some equations with more than 20...

5 years ago | 0 answers | 0

### 0

Creating Symbolic Variable or Functions with multiple instances
You could create arrays of I,A and B like this: I = sym('I_',[1 3]); A =sym('A_',[1 3]); B =sym('B_',[1 3]); you will ...

5 years ago | 0

Any tool to backup Matlab code (.m file), everytime when there is update/modification in code .
You could include |save filename.mat| at the end your code so that it will save the changes everytime the code runs.

5 years ago | 0

Changing varibles in a Matrix to Values
I guess the answer vB is still a symbolic expression is due to the fact that you have assigned numerical values to r,E,G,b and s...

5 years ago | 0

Question

Variable input argument for symbolic equations
Hello! I have a set of symbolic equations with a function receiving variable number of inputs in each equation. Is there a way t...

5 years ago | 1 answer | 0

### 1

Hello! Although I am no expert, I can tell from my own experience. Everytime you I have uninstalled and reinstalled MATLAB on sa...

5 years ago | 0

could anyone help me to solve the issue
Without any loop, this should work: a=1:12 a(1:2:end)

5 years ago | 0

could anyone help me to solve the issue
One can check whether the index number is odd or even with if mod(i,2)==1 % do something end

5 years ago | 0

this programme in matlab 2017b but icant run it
For using Integral (), you must describe 'p' as a function handle with the '@' notation.Like this: p = @(x) sqrt(2*(E-poten...

5 years ago | 0

| accepted

Error using sym>convertChar (line 1448)
You have used the function subs() for substitution in your function TurnEqIntoDEq . The input to subs (L47 in your code file) is...

5 years ago | 2

| accepted

Question

Find index of pattern match
Hello! I am trying to find index position of a pattern from a string array in a string. for example: string='Mary had a li...

5 years ago | 2 answers | 0

### 2

Question

MATLAB function faces issue when running it with large number of variables in workspace
Hello! I am using symbolic toolbox for computation. At the time of execution of the MATLAB script, the workspace is heavily load...

5 years ago | 0 answers | 0

### 0

Removing a specific number from vector
You can also use setdiff function. a=4; z=[1 9 2 3 4 5]; setdiff(z,a)

5 years ago | 1

Question

replace multiple characters in a string with different characters
Hello! I am trying to replace multiple characters in a string using only one line of command. I am aware I can use regexprep to...

5 years ago | 3 answers | 0

### 3

Question

How to replace different variables with a single variable in a text file?
Hello everybody! I am not so used to editing and working with .txt files in MATLAB. I am looking for ways to replace multiple s...

5 years ago | 1 answer | 0

### 1

Question

Read equations from a text file and create a cell array in MATLAB
Hello everybody! I have a text file with 8000 equations and I want to create a cell array of 8000x1 for the equations as string...

5 years ago | 2 answers | 0

### 2

Question

Interpolation of data from set of curves
I have a set of datas in a MATLAB file for Cp-Lamba curves at different pitches. I am able to plot a 3D image from the data. How...

6 years ago | 1 answer | 0