Community Profile # Robert U

Active since 2016

no additional public information

Programming Languages:
MATLAB
Spoken Languages:
English, German

#### Statistics

All
• • • • • • • #### Content Feed

View by

How can I create non-uniform color divisions in a Colorbar ?
Hi Varun Pai, you have to create your own colormap in order to have non-uniformly distributed colors. Due to your division of t...

5 days ago | 1

| accepted

How to use Bar to plot two separate groups in the same plot??
Hi Serhat Misto, try to change XTickLabels in your axis: KPI = [ 3809 3902 3986 4063 4078 4097 4153 4243]; Inkomst = [274.6 2...

11 days ago | 1

| accepted

How to delete the part above the white line in a contourf figure
Hi CoderMinga, you can set the values above the white line to NaN. Then, the data points will be displayed in white in the plot...

12 days ago | 0

| accepted

How to insert a line over a heatmap using code?
Since the thread has be re-activated: Here, a solution for heatmap tested in Matlab 2021b. T = readtable('outages.csv'); h = ...

21 days ago | 0

How to insert vector to table?
Hi Sierra, if you want to save vectors in table elements you can use cell arrays: testTable = table; testTable.Sex = ['M';'M'...

21 days ago | 0

How to convert filter object to state space?
Hi tfg250, You missed to supply the sample frequency for your state space model. Converting the filter object for a time discre...

28 days ago | 0

| accepted

Plotting matrix as spectrogram
Hi Sania Gul, The values you provide are not consistent. I assume your "audio" is a vector of a certain length N, sampled with ...

1 month ago | 0

| accepted

Rename a struct with a fieldname of another struct
Hi Jan, it is good practice to load external data into a structure array such that the variable name is connected to the actual...

1 month ago | 2

Plot alternatively between uitab of two figures
Hi Jérôme, most problems occure when not using handles. Your subplot command does not adress the correct figure. I introduced t...

1 month ago | 1

| accepted

Average column data with specific values
Hi Faustine Enos, I do not know how your data is available and what data type you chose. It is preferrable to use table type da...

1 month ago | 0

| accepted

Merge two .fig figures side by side by connecting yaxes in matlab
Hi Apashanka Das, you can copy objects from figure to figure using copyobj(). A bit tricky is to write a generally working code...

7 months ago | 0

| accepted

How to find the error between two plots and plot the error in same diagram
Hi Abdul Sajeed Mohammed, here some example that is close to what you do: % example data params (circular trajectory) R = 100...

7 months ago | 0

| accepted

Finding root using Fixed point method
Hi Aryan Efty Sham, Have a look in the community forum. The method has been discussed several times already, e.g. https://de.ma...

7 months ago | 0

Replace a syms command
Hi Sarah Gomez, I am not quite sure whether I understood you question correctly, but removing the syms j command is not suffici...

8 months ago | 0

How do I plot an equation with multiple Iterations.
Hi Heather Worth, you can store x1 each iteration in a vector and plot the vector at the end of the calculation. lambda=6.544;...

8 months ago | 0

How to display a number in a scientific notation in the plot?
Hi Vikash Pandey, have a look at the function num2eng from Mathworks File Exchange. You can change easily the tick label: fh =...

8 months ago | 0

How can I change a pixel image from black and white to red & blue
Hi Yik lok Chan, one way to do so is to utilize colormap()-command: corn_gray = imread('corn.tif',3); imshow(corn_gray) ...

10 months ago | 0

How to give a piecewise function as input
Hi Mehul kumar, Please, have a look here: https://de.mathworks.com/matlabcentral/answers/359268-making-ramp-and-unit-step-funct...

10 months ago | 0

save rows from an array
Hi samuel herrera, I guess, you would like to store the content of the cell array vo in vp1 and vp2, respectively. You have to ...

10 months ago | 0

Unintended plot while using the cylinder function
Hi Kevin Hanekom, it seems your vector PStress has two colums which are both interpreted as radius by the function cylinder and...

11 months ago | 0

| accepted

Solved

Is my wife right?
Regardless of input, output the string 'yes'.

1 year ago

Solved

The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

1 year ago

Using symbolic variables, how do you expand polynomials to show complex roots in an equation
Hi bob, I guess it's a transfer function and you are looking for poles and zeros. syms s Num = 10^4*(s+5)*(s+70); Den = s*(s...

1 year ago | 0

| accepted

multiple graphs in one script
Hi basim almutairi, Simplify your life and use handles (start here: graphics-objects): figure handles, axes handles, ... Handl...

1 year ago | 0

I don't know how to avoid eval
Hi Wan Ji, you can use cell-arrays. You don't need to assign variables with different names to multiple outputs. function p = ...

1 year ago | 2

| accepted

How to set common colorbar for multiplots?
Hi UTKARSH VERMA, have a look at caxis(): [x, y] = meshgrid(0:0.1:1,0:0.1:1); z = rand(11,11,24); minColorLimit = min(min(...

1 year ago | 1

| accepted

How to converting cell to matrix for image based classification?
Hi Nikhat Ali, Please have a look into documentation fitcecoc(). The way you call the function is not working since data format...

1 year ago | 0

| accepted

Matrix of transfer functions
Hi Davood Raoofsheibani, you can define arrays of transfer functions similar to numeric arrays by using tf(): % define array ...

1 year ago | 0

Convert a Complex Number to exponential real
Hi Jogger, have a look at Euler's formula (https://en.wikipedia.org/wiki/Euler's_formula). x = 2 + 1j * 5; r = sqrt(real(x)^2...

1 year ago | 1

| accepted