Question


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

5 years ago | 2 answers | 0

2

answers

Question


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?

5 years ago | 0 answers | 0

0

answers

Question


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

5 years ago | 1 answer | 0

1

answer

Question


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

5 years ago | 0 answers | 0

0

answers

Question


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

5 years ago | 0 answers | 0

0

answers

Question


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

5 years ago | 1 answer | 0

1

answer

Question


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

5 years ago | 2 answers | 0

2

answers

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

6 years ago | 0

Question


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

6 years ago | 2 answers | 0

2

answers

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

6 years ago | 0

Question


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

6 years ago | 2 answers | 0

2

answers

Question


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

6 years ago | 1 answer | 1

1

answer

Question


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

6 years ago | 0 answers | 0

0

answers

Question


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

6 years ago | 0 answers | 0

0

answers

Question


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

6 years ago | 1 answer | 0

1

answer

Question


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

6 years ago | 0 answers | 0

0

answers

Question


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

6 years ago | 0 answers | 0

0

answers

Question


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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 0

Question


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

6 years ago | 2 answers | 0

2

answers