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

3 years ago | 1 answer | 0

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 |+|,...

3 years ago | 1 answer | 0

Answered

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

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

3 years ago | 0

Answered

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

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

3 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...

3 years ago | 1 answer | 1

Answered

Having Trouble Uploading Images to Matlab

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

Having Trouble Uploading Images to Matlab

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

3 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...

3 years ago | 0 answers | 0

Answered

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

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

3 years ago | 0

Answered

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.

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.

3 years ago | 0

Answered

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

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

3 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...

3 years ago | 1 answer | 0

Answered

Can I add a new license to any version of MATLAB?

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

Can I add a new license to any version of MATLAB?

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

3 years ago | 0

Answered

could anyone help me to solve the issue

Without any loop, this should work: a=1:12 a(1:2:end)

could anyone help me to solve the issue

Without any loop, this should work: a=1:12 a(1:2:end)

3 years ago | 0

Answered

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

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

3 years ago | 0

Answered

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

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

3 years ago | 0

| accepted

Answered

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

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

3 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...

3 years ago | 2 answers | 0

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

3 years ago | 0 answers | 0

Answered

Removing a specific number from vector

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

Removing a specific number from vector

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

3 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...

3 years ago | 3 answers | 0

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

3 years ago | 1 answer | 0

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

3 years ago | 2 answers | 0

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

3 years ago | 1 answer | 0

Question

Hello! Is it possible to solve a system of differential equations in matlab without using symbolic functions?

I am a novice in MATLAB and trying to solve a system of differential equations which is somewhat similar to this : dx/dt=x+2y+1...

3 years ago | 1 answer | 0