Community Profile

photo

Robert U


174 total contributions since 2016

Robert U's Badges

  • Knowledgeable Level 3
  • 6 Month Streak
  • Revival Level 1
  • Cody Challenge Master
  • Solver
  • First Answer

View details...

Contributions in
View by

Answered
Weird answer for function when dividing two fractions
Hi Katy Soto, type the following to command line to prevent Matlab from shortening output: format long g Then output of your ...

14 days ago | 0

| accepted

Answered
Adjust the phase offset when using data from 'bode'
Hi Romain Liechti, if you want - as you write - stick to the bode output you should correct the phase by a reference phase shif...

15 days ago | 0

| accepted

Answered
Adjust the phase offset when using data from 'bode'
Hi Romain Liechti, in order to customize the frequency response plot you could use bodeplot() instead of bode(). There, you can...

15 days ago | 0

Answered
How to use the Levenberg-Marquardt algorithm to fitting data and get the first derivative?
Hi Nelson Saraiva, The Levenberg-Marquardt algorithm is already ready-to-use implemented into optimization toolbox: https://de....

2 months ago | 0

Answered
How do I analyze the response of a curve as it passes through a filter?
Hi Karthik Mahesh, have a look into function lsim(). This function provides response of linear systems in time domain. Kind re...

3 months ago | 0

Answered
Shade area under curve between two x values
Hi pvtstaticvoid: You may define different intervals with area()-function. Using hold you can plot into the same axes as the fu...

3 months ago | 1

| accepted

Answered
Systems Transfer Functions (tf.m)
Hi Andrew Kay, here is an example to show you one possible workflow to tackle the described task: % create transfer function w...

3 months ago | 1

Answered
Why properties of class is not initialized ?
Hi Hafiz Luqman The class definition you posted is errornous. The property "H_laser_" is not defined. So the constructor return...

4 months ago | 1

Answered
How to fprintf directory name?
Hi Alon Rozen, There are some syntax issues in your example: Dir_Name = uigetdir; Log_File = fopen('My_Log_File.txt','a');...

4 months ago | 1

| accepted

Answered
How can I implement this algorithm in matlab?
Hi Mark N There are some issues with the your matlab syntax. function [v,x] = semi_implicit(k,m,dt,T,x0,v0) % check input...

5 months ago | 1

Answered
Pre-amplification, filtering and amplification
Hello Ricardo Whitaker: I assume the CH1 signal is a vector of doubles. * The desired filter causes errors since frequenc...

5 months ago | 0

Answered
How to import text file and sort it into arrays
Hi Behzad Parvin, please have a look if this piece of code serves your needs: fileID = fopen('SE Sample.txt'); PlainT...

6 months ago | 0

Answered
Unable to close GUI figures
Hi Valerie Cayol, I had a similar problem while closing figures. I started to use the _pause()_-command after _close()_-comma...

7 months ago | 0

Answered
Spliting Cell Into Multiple Columns
Hello Quang Phung, for your data "Primary_Chain" you could use the following code fragment in order to * seperate the colu...

7 months ago | 0

| accepted

Answered
How to find a particular string in a stuct which has multiple fields?
Hi Kish1794, you can write a function that utilizes strfind on the structure array: *main.m* %% Create TestData ...

8 months ago | 0

Answered
Plot resolution and size
Hello Adam Cervenka, since Matlab is saving figures according to "PaperPosition", "PaperPositionMode" and "resolution", these...

8 months ago | 0

Answered
How to move the position of a block name to the top through matlab command?
Hello Suzuki Kota, There indeed is a command to perform that name plate alternation: % Name plate bottom set_param(bloc...

8 months ago | 0

| accepted

Answered
how to change the scale of an colour bar?
Hi Puspa patra, I <http://lmgtfy.com/?q=matlab+color+bar+log+scale google'd> it for you and found: * <https://de.mathworks...

8 months ago | 0

Answered
How do I save an matrix with a string name and save it?
Hi Ivy Chen, dynamic variable names are not a recommended way to go. One way would be to use something like that: OUT....

9 months ago | 0

| accepted

Answered
Why does the box outline not appear on top of figure?
Hi Linnea Franssen, your code example cannot be executed. Nevertheless, did you try to add: set(gca,'Box','on'); Kind ...

9 months ago | 2

| accepted

Answered
lsim closed controlled loop confusion
Hi Daniel Grebler, In order to simulate the time response of your controlled system you need to define the system ( |sys_cl|)...

9 months ago | 0

| accepted

Answered
I need to put data from columns in different cells into one vector
Hi Martin Pecha, assuming your cells contain arrays of double: % Create input cell array cInput = cell(1,20); cInput ...

9 months ago | 0

Answered
The location of label of data cursor
Hi Victor Lam: you might want to have a look here: <http://undocumentedmatlab.com/blog/controlling-plot-data-tips> Positio...

9 months ago | 0

Answered
How to tune a PID Controller for a plant with two integrators?
Hi Aneesh Rao, PID controller tuning is a field many people worked on already. Have a look here for references: * <https:/...

10 months ago | 0

Answered
Levenberg Marquardt Curve Fitting Algorithm
Hi Jonathan Trueblood, Levenberg-Marquardt-Algorithm is built-in into <https://de.mathworks.com/help/optim/ug/lsqcurvefit.htm...

10 months ago | 0

Answered
Take row from a vector based on the value of another vector
Hi Jerry, Matlab documentation is your friend: <https://de.mathworks.com/help/matlab/math/matrix-indexing.html> C = A...

10 months ago | 0

Answered
please help with multiplication and division function
Hi Emmanuel Akpan, The question you raised is not clear. Taking into consideration the given equation you can find easily by ...

10 months ago | 0

Answered
How to insert a line over a heatmap using code?
Hi Samantha Clayton: Since I do not know your code I can only demonstrate in the following example how to draw a vertical and...

10 months ago | 0

Answered
Split array in subarrays According to condition
Hi SmaShBr0ther: The requested functionality is obtained by logical indexing * <https://blogs.mathworks.com/steve/2008/01/...

10 months ago | 0

Solved


Calculate the Levenshtein distance between two strings
This problem description is lifted from <http://en.wikipedia.org/wiki/Levenshtein_distance>. The Levenshtein distance betwee...

10 months ago

Load more