Community Profile

photo

Jonas


Last seen: 2 Tage vor Aktiv seit 2020

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

Statistics

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

Abzeichen anzeigen

Content Feed

Anzeigen nach

Beantwortet
error in prctile function?
did you read the documentation? there is an example given for the interpolation and how the given numbers may be distributed. Yo...

2 Tage vor | 0

| akzeptiert

Frage


Abbreviate regexp: match a if present, else match b
dear community, can someone abbreviate the follwing if else in a single regexp? str1='this is } and this is }, and this is }';...

18 Tage vor | 1 Antwort | 0

1

Antwort

Beantwortet
write a function to return next value each time only nonzeros
if I understand correctly you want the function the be able to remember how often the function was called. each time the next no...

etwa 2 Monate vor | 0

| akzeptiert

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

2 Monate vor | 0

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

2 Monate vor | 0

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

2 Monate vor | 0

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

4 Monate vor | 1

| akzeptiert

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

4 Monate vor | 1

| akzeptiert

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

4 Monate vor | 1

Beantwortet
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)

4 Monate vor | 0

Beantwortet
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

4 Monate vor | 1

| akzeptiert

Beantwortet
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]; ...

4 Monate vor | 0

Beantwortet
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) [~,...

4 Monate vor | 0

| akzeptiert

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

4 Monate vor | 1

| akzeptiert

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

5 Monate vor | 0

| akzeptiert

Beantwortet
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],[...

5 Monate vor | 0

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

5 Monate vor | 0

| akzeptiert

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

5 Monate vor | 0

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

5 Monate vor | 0

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

5 Monate vor | 0

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

5 Monate vor | 0

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

5 Monate vor | 0

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

5 Monate vor | 0

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

5 Monate vor | 1

| akzeptiert

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

5 Monate vor | 0

Beantwortet
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}(...

5 Monate vor | 0

| akzeptiert

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

5 Monate vor | 0

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

5 Monate vor | 0

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

5 Monate vor | 0

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

5 Monate vor | 0

| akzeptiert

Mehr laden