Community Profile

photo

Jonas


Last seen: 4 days ago Active since 2020

Programming Languages:
C++, Java, MATLAB
Spoken Languages:
English, French, German

Statistics

All
  • Knowledgeable Level 5
  • Pro
  • Thankful Level 3
  • 3 Month Streak
  • Revival Level 2
  • First Answer
  • First Submission

View badges

Content Feed

View by

Answered
The description of interp said, 'interp inserts zeros into the original signal and then applies a lowpass interpolating filter to the expanded sequence'
the description says it inserts zeros AND applies the filter for interpolation. of course the filter changes the zero values. ...

14 days ago | 0

Answered
How to set position of legend plot where outside axes??
add a Name-Value pair to your legend command, e.g. legend('Location','eastoutside')

14 days ago | 0

Answered
How do you remove tick marks (not labels) from a colorbar?
try c=colobar; c.TickLength=0;

14 days ago | 0

Answered
FFT on Image Time Series
if the object of your camera is more or less static and illuminated with a temporally modulated light source and you are intere...

2 months ago | 0

| accepted

Answered
Issue with reading text value from a cell in MS Excel using readmatrix
if i am not mistaken, readmatrix expects numbers for each entry, so the numbers can be but into a matrix. if your data contains ...

2 months ago | 1

| accepted

Answered
Matlab keeps giving me error for invalid syntax! I don't understand why
looks like you are missing a comma if d>0 fprintf('Le soluzioni distinte sono %12.2f \n',A1 , A2) ...

2 months ago | 1

Answered
Store one vector range inside another
put the : range expression in the braces to select a range if a vector: vec=1:10 part=vec(5:8)

2 months ago | 0

Answered
Changing pixel colors of .JPG image produces weird colors
dont forget to set all 3 channels of the rgb image to 0 by using e.g. app.newImage(:, round(col),:) = 0

2 months ago | 1

| accepted

Answered
Plot figure for certain elements of readtable output
you can use directly index the variables of the table: tbl=table(); tbl.long=[1 2 3 4 4 4]; tbl.lat=[34 56 57 72 44 124]; ...

2 months ago | 0

Answered
delete row in matrix if value in another matrix is unique
you want to delete entries when the number is repeated first? firstVec=[5 3 5 1 7 9 3 1 4]; secVector=1:numel(firstVec) [~,...

2 months ago | 0

| accepted

Answered
Extracting only some cell arrays from a cell- based on a double array
something like this: yourCell=cellstr(num2str((1:29)'))' someOfThemIdx=[ 1 3 15 19 20 29]; someOfThem=yourCell(someOfThemIdx)...

2 months ago | 1

| accepted

Answered
Return values from uifigure by pressing OK button
if you nest functions in functions, you can directly use the defined variables. note also the uiwait to wait for the functio nre...

3 months ago | 0

| accepted

Answered
How do I create a graph similar to that of the example below?
you could do like this loglog([ 10^2 10^2 10^4 10^4 10^2],[ 10^4 10^6 10^6 10^4 10^4]); hold on; loglog([ 1 10^2 10^4 10^4],[...

3 months ago | 0

Answered
How to create image from arrays by random themself ?
a = [119 79 76 101 119 99 72 77 94 82 76 84 92 86 63 54 45 47 59 69 56 59 52 48 48 41 41 38 41 42 38 42 36 30 35 17 23 29 29 31 ...

3 months ago | 0

| accepted

Answered
How to find column where 0 turns to 1 for each row
yourMat=[0 0 0 0 0; 0 1 1 0 0; 0 0 0 1 0]; where=arrayfun(@(idx)find(diff(yourMat(idx,:))==1,1,'first')+1,1:size(your...

3 months ago | 0

Answered
Printing figure alters content details
couldn't find a professional solution for this, but here is a ugly one by including the colormap as pixel values. imwrite should...

3 months ago | 0

Answered
using multiple else if
the reason the variables are not recognized is, that the depending on your if clause, another variable is created (the created v...

3 months ago | 0

Answered
Warning: Unable to play audio because no audio outputs were found.
anything new on this topic? can't make matlab to play sounds again, there are audio devices available, resetting/rehashing has n...

3 months ago | 0

Answered
how to return cell array with varargout?
if i understand you cirrectly, you want as dynamic output variable varargout, and each of the given should/can be a cell itself ...

3 months ago | 0

Answered
How to make an image appear in different locations
you can try this raw code, how often the image can change the position is defined in the function close all; clear all; im=im...

3 months ago | 0

Answered
How to extend sendmail wrapping
type edit sendmail and look into function toSend = formatText(msgText) there you can find the line maxLineLength = 75; wh...

3 months ago | 1

| accepted

Answered
Default interactions during buttondownfcn for geoaxes ???
yes, the defaultInteraction is disabled when you set a window function like the buttondwnfcn. However, it is reenabled if the ca...

3 months ago | 0

Answered
Operator '-' is not supported for operands of type 'table'
try e.g. (Quat{i}{2:end,:} - Quat{i}{1:end-1,:})./(Time{i}{2:end}-Time{i}{1:end-1})'; instead of (Quat{i}(2:end,:) - Quat{i}(...

3 months ago | 0

| accepted

Answered
create a sparse multidimensional matrix
you can try this: myData=[1 2 3 4; 5 6 7 8; 9 10 11 12]; % get sizes dataChunkLength=size(myData,...

3 months ago | 0

Answered
My code is keep plotting the wrong data
may the scatter3() command is suffiecient to visualize your data, you interpolate (e.g. interp3) your XYZ data to generate more ...

3 months ago | 0

Answered
Step-by-step calculation of rectangular window
or you use the movsum function fs=10000; t=0:1/fs:3; tau=0.25; tauInSamp=tau*fs; spikeTimes= randi(numel(t),10,1); % generat...

3 months ago | 0

Answered
Step-by-step calculation of rectangular window
i suggest you just add the rectangular window at the specified times given by the spices and the spice amplitude: fs=10000; t=...

3 months ago | 0

| accepted

Answered
how to concatenate two tables efficiently
before concatenation you can go trough all tables and add up the number of rows. Then preallocate the table using three columns ...

3 months ago | 0

Answered
let a script run in other script with variable parameters
it really sounds like you actally should change your script to a fcuntion. Running a script giving paramters to it is exactly wh...

3 months ago | 1

Answered
How to print value from Structure in MATLAB
you can access the 4 doubles in the cell StagPRFValue by e.g. CombineOutput(1).ValueStructure.StagPRFValue{1} the other two ...

3 months ago | 0

Load more