Community Profile

photo

Jakob B. Nielsen


Last seen: 2달 전
92 2019 이후 총 참여 횟수

Jakob B. Nielsen's 배지

  • Thankful Level 1
  • 6 Month Streak
  • Knowledgeable Level 3
  • First Answer

세부 정보 보기...

참여 게시물
보기 기준

답변 있음
For loop for a function
You construct the for loop like this: for i=1:size(age,2) %by referencing your age array, you can change the age values and it ...

2달 전 | 0

| 수락됨

답변 있음
how to combine two plots in one figure
In your code, you input the initial x and v during every loop iteration - not the most recent x and v. That is why you just get ...

2달 전 | 0

| 수락됨

질문


Matlab compiler error during packaging - "no error"
Good day, fine community! I am experiencing a problem which has me kind of puzzled. I have created a GUI that I have succesful...

2달 전 | 답변 수: 1 | 0

1

답변

답변 있음
How can I create a listbox with the content of an structur/array?
You create the listbox inside a loop. That means every loop iteration, you make a listbox on your selected position with only th...

10달 전 | 0

답변 있음
How to do Weighted Historical Simulation?
I think you just need to move your parantheses in the function, to contain the entire logic statement. function [VaR,n_tau] ...

10달 전 | 0

답변 있음
Oscillations - Determining amplitude and frequency values
Take a look at the builtin fourier analysis which is just perfect for an application such as the one you describe.

약 1년 전 | 0

답변 있음
How to publishing script with function
Your question is a little vague, but if you mean what I think you mean - namely to compile a script but for the compiled version...

약 1년 전 | 0

답변 있음
plot values in the loop
do plot(k,d,'o-') instead, that will give you o's connected by lines.

약 1년 전 | 0

답변 있음
Setting position of Annotation on an axes component
Hi Jason, When you get the position of an axes, the first and second index are the start location of your axes in the x and y d...

약 1년 전 | 0

| 수락됨

답변 있음
Continue if file doesn't exist - pop_loadset
Use the exist or isfile functions. E.g. for i = sub for j = run if exist(['.../2_correctTriggers/',sprintf('p0%...

약 1년 전 | 1

| 수락됨

답변 있음
How do i create a variable as index for vector m for my code below.
Your issue is that if you make a for loop for 0.1 to 1000, and then use that same counter as an index, when you then type M(omeg...

약 1년 전 | 0

| 수락됨

답변 있음
plot vector with string timestamp
Take a look at the datetick function.

약 1년 전 | 0

답변 있음
Sum of signals and filter the sum and recuperate the inicial frequencies
Making the simulated signal is quite simple. First, make a vector t which covers the time domain you are interested in. Then, ge...

약 1년 전 | 1

| 수락됨

답변 있음
Multiple Input/output function to excel
You can achieve this in many ways. The simplest way would be to just create arrays of your input ranges, for example in2=0:0.0...

약 1년 전 | 1

답변 있음
compiling Matlab files not clear
Hi farzad, It is definitely possible to compile an m file to a standalone exe file, for example in the form of a GUI / app. Whe...

약 1년 전 | 1

| 수락됨

답변 있음
Can Matlab handle segmented graphs and automatic trendlines?
The answer to all four questions is yes. You can execute several plots in the same figure, as well as on the same axes (axes i...

약 1년 전 | 1

| 수락됨

답변 있음
How to centre textboxes on the plot outline?
First, make a handle for your figure: ax=axes; plot(ax,t,x); Next, when you set the dimensions of your textbox, refer b...

약 1년 전 | 1

| 수락됨

답변 있음
scalar vs nonscalar structure: advantages?
There are probably people out there much smarter than me, so take this with a grain of salt. If it were me, I would choose tha...

약 1년 전 | 0

답변 있음
How to combine multiple files into one .csv
If I run your code and pause it after the first execution of the for loop, the num variable is empty, so something might be up w...

약 1년 전 | 0

| 수락됨

답변 있음
How to plot multiple vertical lines at specific points on x axis?
By default, matlab replaces plots on an axes instead of adding. However, if you set hold on, it will add instead of replacing, l...

약 1년 전 | 0

답변 있음
Legend position according to axes
You can specify the position of your legend yourself with coordinates, rather than using a predetermined location. First two coo...

약 1년 전 | 0

답변 있음
Read out parameter values of a polynomial compensation curve.
myfit=fit(x,y,'poly3'); From there you can extract the coefficients as myfit.p1, myfit.p2 etc.

약 1년 전 | 0

| 수락됨

답변 있음
Vectorized alterlative to identify duplicate elements in an array
Logical indexing for every instance, then convert the logical output to doubles and sum it (since you cant sum logicals), and fi...

약 1년 전 | 0

답변 있음
How to change Y-axis in subplots of Boxplot on the same figure
You need a reference back to each inidividual subplot. Right now, your subplot1 label is overwritten each time, so you can only ...

약 1년 전 | 0

답변 있음
Animating an m-file to show a rectangle filling up
I don't know what kind of animation you are looking for, but something quick and simple would be to insert a pause after every p...

약 1년 전 | 0

답변 있음
how to load multiple files and do the computation for each of them and write the output in consequent rows
Your loop will want to start with grabbing all files in a folder. uigetfile with the MultiSelect option will work wonders here: ...

약 1년 전 | 0

| 수락됨

답변 있음
I need help with my While Loop!
Index them! Either as a structure, or an array with a 4th dimension. I personally favour structures, since 4D data makes my head...

약 1년 전 | 0

| 수락됨

답변 있음
how to read images one by one from folder for operation using for loop
I like to use the multiselect function of uigetfile as an input to a for loop: [Names,Paths]=uigetfile({'*.img*'},'MultiSelect...

약 1년 전 | 0

답변 있음
data excel in matlab
You have an array dataExcel which has size(dataExcel,1) rows, and size(dataExcel,2) columns. The rows would correspond exactly t...

약 1년 전 | 0

| 수락됨

답변 있음
Counting specific element in one column corresponding to unique elements in an another column
You can use logic indexing. Example: length(b(a==1 & b==-1)); You get those entries from b which fulfils the condition that t...

약 1년 전 | 0

| 수락됨

Load more