Domanda


Code that makes matlab jumping loops without fininishing the remaining iterations.
Hi, I have got the following 2 loops: for d=1:nDates %loop over rebdates for r=1:nRebDates ind=ismember(PortMem...

quasi 5 anni fa | 2 risposte | 0

2

risposte

Domanda


Nested Loops and break command
Hi, below you can see my code and my question is written in green after the command break. Can you help me?

circa 5 anni fa | 0 risposte | 0

0

risposte

Domanda


Jump to next loop (alternative goto)
Hi, my code is mentioned below. The question is green after % if statement. May you help me? function NewRanks=createRebRankin...

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Alternative for an increasing number of conditions in if-statements
Dear all, My issue: I have got a date vector with portfolio rebalancing dates. As the time goes by, the vector length increas...

circa 5 anni fa | 0 risposte | 0

0

risposte

Domanda


Portfolio returns with rebalancing dates and changing portfolio members
Hi, Is there any specific portfolio matlab code, which can calculate Portfolio returns/Performance for a given period by taken ...

circa 5 anni fa | 0 risposte | 0

0

risposte

Domanda


Download Data from Excel worksheet: Automatically changing range in Excel
Hi I will have to download data from excel worksheets on a daily bases. I used the following formula: T=readtable('xxx_Ang_Sek...

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Tables: Transform Variablenames
Hi I downloaded data from an excel worksheet to matlab. Matlab creates a table. Matlab inserts the first row of the data in exc...

circa 5 anni fa | 2 risposte | 0

2

risposte

Risposto
Error on opening a .mat file.
The file is 644'234 KB big. My computer is not the latest one. How to check if my .mat file is in ASCII format?

oltre 5 anni fa | 0

Domanda


Error on opening a .mat file.
I have got a rather big .mat file. When I try to open it an error message pops up: "File might be corrupt." Here is a more det...

oltre 5 anni fa | 2 risposte | 0

2

risposte

Risposto
How to use Matlab's unit test framework component verifyError to verify an error from a MEX function
Hi Andy, perhaps you can help me. how to only test the error message? I would like to test the following message written i...

oltre 5 anni fa | 0

Domanda


How to unit test with verifyWarning?
Hello, I am trying to apply the function verifyWarning on the following function: function [adjdate] = AdjStartDate(startDate...

oltre 5 anni fa | 2 risposte | 0

2

risposte

Domanda


How to unit test with verifyError?
Hi everyone, I am trying to unit test the following function: function res=add5(x) % ADD5 Increment input by 5. if ~i...

oltre 5 anni fa | 1 risposta | 1

1

risposta

Domanda


Unit tests with verifyError
Hello, I am trying to unit test the error message in the function below, which pops up if I input an incorrect fieldname: 'ALT...

oltre 5 anni fa | 0 risposte | 0

0

risposte

Domanda


How to unit test with verifyWarning?
Hello, I am unit testing the following function: function [adjdate] = AdjStartDate(startDate) if ~strcmp(startDate,datestr...

oltre 5 anni fa | 0 risposte | 0

0

risposte

Domanda


How to unit test a long function?
I have got a long function, which downloads financial data from bloombberg, aggregates, cleans it etc. Now I will have to unit ...

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Creating Unit tests on Functions using classes.
Hi there, I've got rather a long function which I will have to test (unit test). The function contains many iterim results whic...

oltre 5 anni fa | 0 risposte | 0

0

risposte

Domanda


Deleting required object properties data for calculating dependent properties data without deleting the data in dependent properties.
Hi everybody. I created a class using the knowledge in https://ch.mathworks.com/help/matlab/matlab_oop/example-representing-stru...

oltre 5 anni fa | 0 risposte | 0

0

risposte

Domanda


Getting access of an output variable from a function or script which is saved in a different folder.
Hi everybody, In one folder (P:\MATLAB\SystematischesPM\Data) I have got a script named "DataDownload". It returns a cell 20x1 ...

oltre 5 anni fa | 1 risposta | 0

1

risposta

Risposto
Object Oriented Programming - Leaving properties from objects empty.
Thanks a lot Adam and Matt. I am quite new in OOP. Therefore I would like the following question. In my project the objects (=st...

oltre 5 anni fa | 0

Domanda


Object Oriented Programming - Leaving properties from objects empty.
Hi everybody! I am writing the following code: classdef Value0_1 properties Price Earn...

oltre 5 anni fa | 2 risposte | 0

2

risposte