Many changes for 400G DSP
Minimal Example ...
This commit is contained in:
@@ -114,6 +114,12 @@ classdef DataStorage < handle
|
||||
|
||||
end
|
||||
|
||||
function addValueToStorageByLinIdx(obj, valueToStore ,storageVarName, lin_idx)
|
||||
|
||||
obj.sto.(storageVarName){lin_idx} = valueToStore;
|
||||
|
||||
end
|
||||
|
||||
% Access Value(s)
|
||||
function value = getStoValue(obj,storageVarName, varargin)
|
||||
|
||||
@@ -270,7 +276,7 @@ classdef DataStorage < handle
|
||||
|
||||
|
||||
|
||||
function phys_indices = getPhysIndicesByLinIndex(obj, lin_idx)
|
||||
function [phys_indices,param_name] = getPhysIndicesByLinIndex(obj, lin_idx)
|
||||
% Converts a linear index into the corresponding physical parameter values
|
||||
% Inputs:
|
||||
% - lin_idx: The linear index within the storage array
|
||||
@@ -285,8 +291,8 @@ classdef DataStorage < handle
|
||||
|
||||
% Map subscripts to physical values for each parameter
|
||||
for i = 1:numel(obj.fn)
|
||||
param_name = obj.fn(i);
|
||||
phys_indices{i} = obj.parameter.(param_name).getPhysForIndex(subscripts{i});
|
||||
param_name{i} = obj.fn(i);
|
||||
phys_indices{i} = obj.parameter.(param_name{i}).getPhysForIndex(subscripts{i});
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user