Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion swfiles/sw_plotspec.m
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,10 @@
iName = strsplit(strtrim(sprintf('I%d ',1:nMode)),' ');
eName = strsplit(strtrim(sprintf('EN%d ',1:nMode)),' ');
sName = strsplit(strtrim(sprintf('s%d ',1:nMode)),' ');

if ~isfield(T, sName)
sName = strsplit(strtrim(sprintf('sigma%d ',1:nMode)),' ');
end

dat.I = zeros(nMode,nQ);
dat.E = zeros(nMode,nQ);
dat.s = zeros(nMode,nQ);
Expand Down
4 changes: 2 additions & 2 deletions tutorials/publish/tutorial12.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
end

horaceObj = d3d(tri.abc,[1 0 0 0],[0,0.005,1],[0 1 0 0],[0,0.005,1],[0 0 0 1],[0,0.1,10]);
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{'component','Sperp'},dE);
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{'component','Sperp'},dE,'-all');
cut1 = cut(horaceObj,[],[],[3.0 3.5]);

% We use the honest colormap cm_inferno.
Expand All @@ -90,4 +90,4 @@
%%
% Written by
% Sandor Toth
% 16-June-2014
% 16-June-2014
6 changes: 3 additions & 3 deletions tutorials/publish/tutorial12/tutorial12.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<span class="comment">% Horace function.</span>

horaceObj = d3d(tri.abc,[1 0 0 0],[0,0.005,1],[0 1 0 0],[0,0.005,1],[0 0 0 1],[0,0.1,10]);
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{<span class="string">'component'</span>,<span class="string">'Sperp'</span>},dE);
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{<span class="string">'component'</span>,<span class="string">'Sperp'</span>},dE,'-all');
cut1 = cut(horaceObj,[],[],[3.0 3.5]);

<span class="comment">% We use the honest colormap cm_inferno.</span>
Expand Down Expand Up @@ -192,7 +192,7 @@
% Horace function.

horaceObj = d3d(tri.abc,[1 0 0 0],[0,0.005,1],[0 1 0 0],[0,0.005,1],[0 0 0 1],[0,0.1,10]);
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{'component','Sperp'},dE);
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{'component','Sperp'},dE,'-all');
cut1 = cut(horaceObj,[],[],[3.0 3.5]);

% We use the honest colormap cm_inferno.
Expand All @@ -206,4 +206,4 @@
% Sandor Toth
% 16-June-2014
##### SOURCE END #####
--></body></html>
--></body></html>
6 changes: 3 additions & 3 deletions tutorials/publish/tutorial12/tutorial12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dE = 0.15;
<span class="comment">% Horace function.</span>

horaceObj = d3d(tri.abc,[1 0 0 0],[0,0.005,1],[0 1 0 0],[0,0.005,1],[0 0 0 1],[0,0.1,10]);
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{<span class="string">'component'</span>,<span class="string">'Sperp'</span>},dE);
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{<span class="string">'component'</span>,<span class="string">'Sperp'</span>},dE,'-all');
cut1 = cut(horaceObj,[],[],[3.0 3.5]);

<span class="comment">% We use the honest colormap cm_inferno.</span>
Expand Down Expand Up @@ -124,7 +124,7 @@ dE = 0.15;
% Horace function.

horaceObj = d3d(tri.abc,[1 0 0 0],[0,0.005,1],[0 1 0 0],[0,0.005,1],[0 0 0 1],[0,0.1,10]);
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{'component','Sperp'},dE);
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{'component','Sperp'},dE,'-all');
cut1 = cut(horaceObj,[],[],[3.0 3.5]);

% We use the honest colormap cm_inferno.
Expand All @@ -138,4 +138,4 @@ colorbar
% Sandor Toth
% 16-June-2014
##### SOURCE END #####</literal>
-->
-->
Loading