Community Profile

photo

Robert U


Active since 2016

no additional public information

Programming Languages:
MATLAB
Spoken Languages:
English, German

Statistics

All
  • Treasure Hunt Participant
  • 12 Month Streak
  • Revival Level 2
  • Knowledgeable Level 4
  • Cody Challenge Master
  • Solver
  • First Answer

View badges

Content Feed

View by

Answered
How to combine two arrays
Hi MIch, have a look in the documentation under language fundamentals --> reshape() a = [3 5 1]; b = [4 6 7]; c= reshape([...

etwa 8 Stunden ago | 1

| accepted

Answered
Select multiple radiobutton at the same time
Hi Ali, use uipanel() for the checkboxes and uibuttongroup() for the radiobuttons: myGUI; function myGUI(~) gui.fh = f...

ein Tag ago | 0

| accepted

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

9 Tage ago | 1

| accepted

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

16 Tage ago | 1

| accepted

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

16 Tage ago | 0

| accepted

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

25 Tage ago | 0

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

25 Tage ago | 0

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

etwa ein Monat ago | 0

| accepted

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

etwa ein Monat ago | 0

| accepted

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

etwa ein Monat ago | 2

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

etwa ein Monat ago | 1

| accepted

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

etwa ein Monat ago | 0

| accepted

Answered
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 Monate ago | 0

| accepted

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

8 Monate ago | 0

| accepted

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

8 Monate ago | 0

Answered
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 Monate ago | 0

Answered
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 Monate ago | 0

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

9 Monate ago | 0

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

11 Monate ago | 0

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

11 Monate ago | 0

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

11 Monate ago | 0

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

12 Monate ago | 0

| accepted

Solved


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

etwa ein Jahr 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...

etwa ein Jahr ago

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

etwa ein Jahr ago | 0

| accepted

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

etwa ein Jahr ago | 0

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

etwa ein Jahr ago | 2

| accepted

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

etwa ein Jahr ago | 1

| accepted

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

etwa ein Jahr ago | 0

| accepted

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

etwa ein Jahr ago | 0

Load more