Email: helpdesk@telkomuniversity.ac.id

This Portal for internal use only!

  • My Download
  • Checkout
Application Package Repository Telkom University
News

All Categories

  • All Categories
  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Categories
  • Microsoft
    • Microsoft Apps
    • Office
    • Operating System
    • VLS
    • Developer Tools
    • Productivity Tools
    • Database
    • AI + Machine Learning
    • Middleware System
    • Learning Services
    • Analytics
    • Networking
    • Compute
    • Security
    • Internet Of Things
  • Adobe
  • Matlab
  • Google
  • Visual Paradigm
  • WordPress
    • Plugin WP
    • Themes WP
  • Opensource
  • Others
More Categories Less Categories
  • Get Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • My Account
    • Download
    • Cart
    • Checkout
    • Login
  • About Us
    • Contact
    • Forum
    • Frequently Questions
    • Privacy Policy
  • Forum
    • News
      • Category
      • News Tag

iconTicket Service Desk

  • My Download
  • Checkout
Application Package Repository Telkom University
News

All Categories

  • All Categories
  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Menu
  • Home
    • Download Application Package Repository Telkom University
    • Application Package Repository Telkom University
    • Download Official License Telkom University
    • Download Installer Application Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • All Pack
    • Microsoft
      • Operating System
      • Productivity Tools
      • Developer Tools
      • Database
      • AI + Machine Learning
      • Middleware System
      • Networking
      • Compute
      • Security
      • Analytics
      • Internet Of Things
      • Learning Services
    • Microsoft Apps
      • VLS
    • Adobe
    • Matlab
    • WordPress
      • Themes WP
      • Plugin WP
    • Google
    • Opensource
    • Others
  • My account
    • Download
    • Get Pack
    • Cart
    • Checkout
  • News
    • Category
    • News Tag
  • Forum
  • About Us
    • Privacy Policy
    • Frequently Questions
    • Contact
Home/News

Category: News

compute the inverse sine of the sine of  45 degrees and assign the answer in radians to a variable named a.
Matlab News

compute the inverse sine of the sine of 45 degrees and assign the answer in radians to a variable named a.

PuTI / 2025-07-16

Where am I going wrong?Where am I going wrong? Where am I going wrong? inverse sine of the sine MATLAB Answers — New Questions

​

Tasks not appearing in task box during Simulink Onramp Desktop
Matlab News

Tasks not appearing in task box during Simulink Onramp Desktop

PuTI / 2025-07-16

Hello,
I have recently tried to do the Simulink Onramp through my desktop. The tasks are not appearing in the task region. Please see the image below.

As you can see, there are no tasks appearing where they should, pressing next does not make the next task appear.Hello,
I have recently tried to do the Simulink Onramp through my desktop. The tasks are not appearing in the task region. Please see the image below.

As you can see, there are no tasks appearing where they should, pressing next does not make the next task appear. Hello,
I have recently tried to do the Simulink Onramp through my desktop. The tasks are not appearing in the task region. Please see the image below.

As you can see, there are no tasks appearing where they should, pressing next does not make the next task appear. onramp, bug MATLAB Answers — New Questions

​

How can i use ltpda startup nowadays? I think in old version of matlab work but in 2023 it shows , it cant recognize, is there any solutions or options?
Matlab News

How can i use ltpda startup nowadays? I think in old version of matlab work but in 2023 it shows , it cant recognize, is there any solutions or options?

PuTI / 2025-07-16

i want to use ltpda and then plist. But if i use it as ‘ltpda_startup’ , matlab cant recognize it and after that ‘plist’. In 2016 and 2017 version of matlab it worked. How can i fix it in 2023 version or is there any alternative solutions for it?i want to use ltpda and then plist. But if i use it as ‘ltpda_startup’ , matlab cant recognize it and after that ‘plist’. In 2016 and 2017 version of matlab it worked. How can i fix it in 2023 version or is there any alternative solutions for it? i want to use ltpda and then plist. But if i use it as ‘ltpda_startup’ , matlab cant recognize it and after that ‘plist’. In 2016 and 2017 version of matlab it worked. How can i fix it in 2023 version or is there any alternative solutions for it? image processing, ltpda MATLAB Answers — New Questions

​

Exchange Online Reduces Delicensing Resiliency Threshold to 5,000 Mailboxes
News

Exchange Online Reduces Delicensing Resiliency Threshold to 5,000 Mailboxes

Tony Redmond / 2025-07-16

Delicensing Resiliency Protects Against Data Loss – Should Be Available to All

A July 15 announcement says that Exchange Online is reducing the Delicensing Resiliency threshold from 10,000 to 5,000 mailboxes.

According to an EHLO July 15 post, Microsoft has decided to reduce the threshold for delicensing resiliency from the original level of 10,000 mailboxes announced in November 2024 to 5,000. In other words, the feature to protect against inadvertent data loss due to mailboxes becoming unlicensed is only available for tenants with more than 5,000 mailboxes.

I think the feature should be available to all Exchange Online tenants. Apart from some notional accounting savings accrued by removing unlicensed mailboxes from tenants without a 30-day grace period, Microsoft has no good justification for restricting delicensing resiliency to large tenants. Here’s why.

A Sticking Plaster for Group-Based Licensing

First, delicensing resiliency is a sticking plaster fix to a problem in Microsoft group-based licensing that can cause an account to end up in a situation where it has no license that includes an Exchange Online service plan. When this happens, Exchange Online detects the unlicensed state of the mailbox and disconnects the mailbox to make it inaccessible. The grace period granted through delicensing resiliency allows administrators the time to recognize and correct license allocation mistakes.

The problem was more evident before Exchange Online supported license stacking (the ability for an account to have several licenses with Exchange Online service plans). Stacking allows a mailbox to remain licensed even when an Exchange license is removed from an account. But group-based licensing can become complex when multiple groups are used to assign licenses, including dynamic groups. A change to someone’s membership of a group (or a change to a property that includes them in a dynamic membership) can result in license removal and hence a mailbox disconnection.

It would be better if Microsoft sorted out group-based licensing to remove the possibility of accounts becoming unlicensed. Perhaps the Microsoft 365 admin center, which took responsibility from Entra ID for the management UX for group-based licensing in 2024, could develop a “what if” feature to show administrators what will happen if a change is made to a group and warn against removal of access to critical apps like Teams and Exchange. And in the interim, Exchange Online could make delicensing resiliency available to all tenants.

OneDrive for Business is the Other Major User Personal Storage

It’s not as if such a step would be something new and dramatic. The default retention period for OneDrive for Business accounts belonging to deleted user accounts is 30 days, and that period can be extended to allow nominated individuals to check OneDrive to harvest essential business information. OneDrive and mailboxes are the two primary personal storage locations within Microsoft 365. A similar level of access to the two types of objects should be possible following license removal (often because of account deletion).

Use Retention to Make Unlicensed Mailboxes into Inactive Mailboxes

Another reason for extending delicensing resilience to all tenants is that “big” tenants usually can protect against inadvertent deletion by putting a retention or litigation hold (or holds) on mailboxes to ensure that Exchange Online puts deleted mailboxes into an inactive state. This is another good way to ensure that mailboxes remain available even if a deletion in error occurs. Inactive mailboxes are available to any size of tenant that can set retention holds and there’s no arbitrary number of mailboxes that must be met.

Delicensing resiliency is easier for tenants to use than inactive mailboxes are because the mailboxes remain online and connected. Inactive mailboxes need to be reconnected through administrator intervention. That might have an advantage because the administrator might then understand that a problem exists in how the tenant manages licenses.

All We Need is Simplicity and Consistency

Although there is goodness in building features that protect against data loss, it would be even better if Microsoft was consistent in its policies and practices for controlling user data across the entire Microsoft 365 suite. We’re 14 years into the Office 365 era and while great progress has been made in some area to achieve consistency across workloads, gaps still exist. Blaming the roots of on-premises products is not acceptable any longer. Joined-up thinking is needed, and that doesn’t appear to be the case here.

In the interim, if your tenant has more than 5,000 mailboxes, update your organization configuration to enable Delicensing Resliency using the following command:

Set-OrganizationConfig -DelayedDelicensingEnabled:$true

Support the work of the Office 365 for IT Pros team by subscribing to the Office 365 for IT Pros eBook. Your support pays for the time we need to track, analyze, and document the changing world of Microsoft 365 and Office 365. Only humans contribute to our work!

 

How to convert color map into contour map?
Matlab News

How to convert color map into contour map?

PuTI / 2025-07-15

I have a file of color map with known boundary coordinates and color bar scale either horizontal or vertical. How can we transform the color map into contour map, such that the value of contours expressed the same in the color bar values?I have a file of color map with known boundary coordinates and color bar scale either horizontal or vertical. How can we transform the color map into contour map, such that the value of contours expressed the same in the color bar values? I have a file of color map with known boundary coordinates and color bar scale either horizontal or vertical. How can we transform the color map into contour map, such that the value of contours expressed the same in the color bar values? colormap, contour map MATLAB Answers — New Questions

​

i need a simulink matlab model for transformer inrush current .
Matlab News

i need a simulink matlab model for transformer inrush current .

PuTI / 2025-07-15

i need a matlab simulink model for 3 phase transformer which is at no – load. now when it is energized initially, it should take an inrush current in primary side of transformer.i need a matlab simulink model for 3 phase transformer which is at no – load. now when it is energized initially, it should take an inrush current in primary side of transformer. i need a matlab simulink model for 3 phase transformer which is at no – load. now when it is energized initially, it should take an inrush current in primary side of transformer. 3 phase transformer, inrush current MATLAB Answers — New Questions

​

i am trying to read excel file from D drive     under name mirror1 to put values in  app.EditData.Value it gives parse error.thanks alot
Matlab News

i am trying to read excel file from D drive under name mirror1 to put values in app.EditData.Value it gives parse error.thanks alot

PuTI / 2025-07-15

excelfilepath= ‘D:mirror1.xlsx’;
data =readtable(excelfilepath);
value=data{1,1};

app.EditField.Value = num2str(value);
end
what is wrong with code
it gives parse erorr
thanksexcelfilepath= ‘D:mirror1.xlsx’;
data =readtable(excelfilepath);
value=data{1,1};

app.EditField.Value = num2str(value);
end
what is wrong with code
it gives parse erorr
thanks excelfilepath= ‘D:mirror1.xlsx’;
data =readtable(excelfilepath);
value=data{1,1};

app.EditField.Value = num2str(value);
end
what is wrong with code
it gives parse erorr
thanks app designer, excel MATLAB Answers — New Questions

​

Interactively show polygon label on choropleth map
Matlab News

Interactively show polygon label on choropleth map

PuTI / 2025-07-15

I need to map a polygon shapefile in a choropleth map and interactively show the name of the specific polygon on which I click with the mouse. The default data tool tip does not work for me because: (1) information gets displayed for each polygon vertex, while I need the information only when clicking in the inner part of the polygon; (2) apparently, the only information it can show are coordinates.
To give an idea of what I am after, I produce hereby a minimum working example. In the last line of this example, I add all polygon names via the text command, associating each polygon to a unique inner point. This determines the placement of the text. What I need, instead, is for such text to be displayed only for the single polygon on which I click with the mouse.
Any help would be greatly appreciated.

% Minimum working example
% pgn = shaperead(‘pgn.shp’);
% pts = shaperead(‘pts.shp’);
load(‘pgn.mat’)
load(‘pts.mat’)
colorgradient = parula(height(pgn));
cbarlim = [floor(min([pgn.MA1911])) ceil(max([pgn.MA1911]))];
symbpgn = makesymbolspec(‘Polygon’, …
{‘MA1911’, cbarlim, ‘FaceColor’, colorgradient});
mapshow(pgn,’SymbolSpec’,symbpgn);
disableDefaultInteractivity(gca) % This prevents polygon vertex coordinates from showing in the tooltip
ax = gca;
ax.CLim = cbarlim;
h = colorbar;
h.Label.String = ‘people’;
axis equal
axis off
hold on
text([pts.X]’,[pts.Y]’,{pts.UNIT}’) % This is what needs to become interactiveI need to map a polygon shapefile in a choropleth map and interactively show the name of the specific polygon on which I click with the mouse. The default data tool tip does not work for me because: (1) information gets displayed for each polygon vertex, while I need the information only when clicking in the inner part of the polygon; (2) apparently, the only information it can show are coordinates.
To give an idea of what I am after, I produce hereby a minimum working example. In the last line of this example, I add all polygon names via the text command, associating each polygon to a unique inner point. This determines the placement of the text. What I need, instead, is for such text to be displayed only for the single polygon on which I click with the mouse.
Any help would be greatly appreciated.

% Minimum working example
% pgn = shaperead(‘pgn.shp’);
% pts = shaperead(‘pts.shp’);
load(‘pgn.mat’)
load(‘pts.mat’)
colorgradient = parula(height(pgn));
cbarlim = [floor(min([pgn.MA1911])) ceil(max([pgn.MA1911]))];
symbpgn = makesymbolspec(‘Polygon’, …
{‘MA1911’, cbarlim, ‘FaceColor’, colorgradient});
mapshow(pgn,’SymbolSpec’,symbpgn);
disableDefaultInteractivity(gca) % This prevents polygon vertex coordinates from showing in the tooltip
ax = gca;
ax.CLim = cbarlim;
h = colorbar;
h.Label.String = ‘people’;
axis equal
axis off
hold on
text([pts.X]’,[pts.Y]’,{pts.UNIT}’) % This is what needs to become interactive I need to map a polygon shapefile in a choropleth map and interactively show the name of the specific polygon on which I click with the mouse. The default data tool tip does not work for me because: (1) information gets displayed for each polygon vertex, while I need the information only when clicking in the inner part of the polygon; (2) apparently, the only information it can show are coordinates.
To give an idea of what I am after, I produce hereby a minimum working example. In the last line of this example, I add all polygon names via the text command, associating each polygon to a unique inner point. This determines the placement of the text. What I need, instead, is for such text to be displayed only for the single polygon on which I click with the mouse.
Any help would be greatly appreciated.

% Minimum working example
% pgn = shaperead(‘pgn.shp’);
% pts = shaperead(‘pts.shp’);
load(‘pgn.mat’)
load(‘pts.mat’)
colorgradient = parula(height(pgn));
cbarlim = [floor(min([pgn.MA1911])) ceil(max([pgn.MA1911]))];
symbpgn = makesymbolspec(‘Polygon’, …
{‘MA1911’, cbarlim, ‘FaceColor’, colorgradient});
mapshow(pgn,’SymbolSpec’,symbpgn);
disableDefaultInteractivity(gca) % This prevents polygon vertex coordinates from showing in the tooltip
ax = gca;
ax.CLim = cbarlim;
h = colorbar;
h.Label.String = ‘people’;
axis equal
axis off
hold on
text([pts.X]’,[pts.Y]’,{pts.UNIT}’) % This is what needs to become interactive mapshow, tooltip MATLAB Answers — New Questions

​

I am trying to generate a plot for the 3x+1 problem for the seed 10^310 but i am unable to get the plot? Why
Matlab News

I am trying to generate a plot for the 3x+1 problem for the seed 10^310 but i am unable to get the plot? Why

PuTI / 2025-07-15

% Code for 3x+1 Problem
seed = 10^309; % Starting number
x = seed; % Initialize x with the seed
trajectory = x; % Store the trajectory
tic
while x ~= 1
if mod(x, 2) == 0 % Check if x is even
x = x / 2;
else % If x is odd
x = 3 * x + 1;
end
trajectory = [trajectory, x]; % Append x to trajectory
end
toc
% Plot the trajectory
figure;
plot(trajectory, ‘-o’, ‘LineWidth’, 1, ‘MarkerSize’, 5,’MarkerFaceColor’, ‘r’);
title(‘Plot of the Collatz Sequence for positive Seed 10^310’);
xlabel(‘Step’);
ylabel(‘Value’);
grid on;% Code for 3x+1 Problem
seed = 10^309; % Starting number
x = seed; % Initialize x with the seed
trajectory = x; % Store the trajectory
tic
while x ~= 1
if mod(x, 2) == 0 % Check if x is even
x = x / 2;
else % If x is odd
x = 3 * x + 1;
end
trajectory = [trajectory, x]; % Append x to trajectory
end
toc
% Plot the trajectory
figure;
plot(trajectory, ‘-o’, ‘LineWidth’, 1, ‘MarkerSize’, 5,’MarkerFaceColor’, ‘r’);
title(‘Plot of the Collatz Sequence for positive Seed 10^310’);
xlabel(‘Step’);
ylabel(‘Value’);
grid on; % Code for 3x+1 Problem
seed = 10^309; % Starting number
x = seed; % Initialize x with the seed
trajectory = x; % Store the trajectory
tic
while x ~= 1
if mod(x, 2) == 0 % Check if x is even
x = x / 2;
else % If x is odd
x = 3 * x + 1;
end
trajectory = [trajectory, x]; % Append x to trajectory
end
toc
% Plot the trajectory
figure;
plot(trajectory, ‘-o’, ‘LineWidth’, 1, ‘MarkerSize’, 5,’MarkerFaceColor’, ‘r’);
title(‘Plot of the Collatz Sequence for positive Seed 10^310’);
xlabel(‘Step’);
ylabel(‘Value’);
grid on; collatz conjecture, 3x +1 problem MATLAB Answers — New Questions

​

Copilot Studio Agent Vulnerability to Prompt Injection
News

Copilot Studio Agent Vulnerability to Prompt Injection

Tony Redmond / 2025-07-15

Copilot Studio Agent Sends Salesforce Customer Data to Attacker

The July 7 report (“A Copilot Studio Story 2: When AIjacking Leads to Full Data Exfiltration“) from Zenity Labs is sobering reading for anyone considering how to introduce Copilot agents within a Microsoft 365 tenant. In a nutshell, Zenity created a replica of a “flagship example” of an agent created using Copilot Studio built by McKinsey & Co and proved that a an email containing a prompt injection sent to the agent could result in the generation of an emailed response containing customer data sent back to an attacker.

I have an instinctive suspicious of reports issued by security researchers because there are too many examples of overhyped text designed purely to enhance the credentials of the company. In this instance, the Microsoft Security Response Center took the issue seriously, so we should too.

The Problem is Still There

We’ve been down this path before with Copilot because researchers reported how they had compromised BizChat at sessions at the Black Hat USA conference in 2024. Copilot agents didn’t exist at the time, but the same method of sending a message for Copilot to process that convinced Copilot to do bad things was used.

Zenity reported the exploit described in the article to Microsoft, who fixed the problem in late April 2025, most likely through the deployment of a “prompt shielding mechanism.” The net result is that attackers cannot use the same avenue to exfiltrate large quantities of data. However, the kicker is that the fix works for the attack as described, but as Zenity says “Unfortunately because of the natural language nature of prompt injections blocking them using classifiers or any kind of blacklisting isn’t enough.” In other words, attackers can find new ways to use natural language prompts to convince agents to do silly things.

The Stupidity of Agents

The problem is, despite all the hype around artificial intelligence, Copilot agents are essentially stupid. They cannot distinguish between good and bad users, nor can they decide that an action demanded of them is wrong or inappropriate. As we head into an era where agents can talk to agents, the need for increased oversight about what agents do and how they do it is all too apparent.

Managing agent objects in Entra ID is a good way to incorporate agents within the infrastructure, but that doesn’t do anything to reveal what agents do in response to different user prompts, including prompts deliberately intended to do harm. You could pour over the details of Copilot interactions captured by the aiInteractionHistory API or the compliance records captured in user mailboxes by the Microsoft 365 substrate searching for evidence of attacker intervention, but what would you look for? Searching for the one API record where 500 Salesforce customer records are sent to an address in Russia might be the equivalent of seeking the proverbial needle in a haystack.

Although ISVs can work on the problem of agent governance, it’s obvious that ISVs can only work with agents using the APIs and data made available by Microsoft. Dealing with prompt injections is something that will remain a Microsoft competence.

As AI tools become more embedded into our work, the more attackers will be interested in seeking gaps. The battle between Microsoft and the bad guys to protect Copilot (apps and agents) is likely to be a ping-pong contest of exploit followed by remediation

The Goodness of Copilot Studio Agents

Don’t get me wrong. I like the ease of use that Copilot Studio brings to the agent creation process. Even an old duffer like me can create and publish an agent from Copilot Studio (Figure 1). We’re simply at the point in the evolution of AI tooling where security, governance, and management struggle to keep up with the pace of innovation and overhyped expectations.

Testing an agent in Copilot Studio.
Figure 1: Testing an agent in Copilot Studio

It would be an overreaction to block users from being able to develop agents with Copilot Studio. Some controls are necessary and restricting those who develop agents to a limited group with oversight before publication seems like a reasonable step. I’m sure that more comprehensive development methodologies and structures will emerge over time and will be discussed on the web and at conferences. I’m looking forward to hearing what the experts say at the TEC event in Minneapolis at the end of September. Come along and join the debate!


So much change, all the time. It’s a challenge to stay abreast of all the updates Microsoft makes across the Microsoft 365 ecosystem. Subscribe to the Office 365 for IT Pros eBook to receive monthly insights into what happens, why it happens, and what new features and capabilities mean for your tenant.

 

How can I add bulleted list in Matlab annotation textbox
Matlab News

How can I add bulleted list in Matlab annotation textbox

PuTI / 2025-07-14

I am trying to add a bulleted list in a Matlab annotation textbox. I’ve tried using LaTex commands but all I get is: Unable to interpret latex string, such as

str = ‘begin{itemized} item First Line item Second Line end{itemized}’;
figure;
ha = annotation(‘textbox’, [0.5 0.5 0.4 0.2], ‘Interpreter’, ‘latex’);
set(ha, ‘String’, str)

This is similar to the way you put a table in an annotated textbox:

<http://www.mathworks.com/matlabcentral/answers/99523-how-do-i-create-a-latex-table-in-a-matlab-text-box Latex Table>I am trying to add a bulleted list in a Matlab annotation textbox. I’ve tried using LaTex commands but all I get is: Unable to interpret latex string, such as

str = ‘begin{itemized} item First Line item Second Line end{itemized}’;
figure;
ha = annotation(‘textbox’, [0.5 0.5 0.4 0.2], ‘Interpreter’, ‘latex’);
set(ha, ‘String’, str)

This is similar to the way you put a table in an annotated textbox:

<http://www.mathworks.com/matlabcentral/answers/99523-how-do-i-create-a-latex-table-in-a-matlab-text-box Latex Table> I am trying to add a bulleted list in a Matlab annotation textbox. I’ve tried using LaTex commands but all I get is: Unable to interpret latex string, such as

str = ‘begin{itemized} item First Line item Second Line end{itemized}’;
figure;
ha = annotation(‘textbox’, [0.5 0.5 0.4 0.2], ‘Interpreter’, ‘latex’);
set(ha, ‘String’, str)

This is similar to the way you put a table in an annotated textbox:

<http://www.mathworks.com/matlabcentral/answers/99523-how-do-i-create-a-latex-table-in-a-matlab-text-box Latex Table> latex, bulleted list, annotation MATLAB Answers — New Questions

​

How to generate multiple output in Simulink with multiple input
Matlab News

How to generate multiple output in Simulink with multiple input

PuTI / 2025-07-14

Recently, in order to get more familiar with simulink, I tried to establish some easy simulink model(figure shown in the following), however, there is a wierd bug. I inserted a sine wave with different amplitude, equivalently, two inputs into the matlab function block. Intuitively, this testbench should gives two output, but my workspace window only showed one ! so I want to consult what kind of consideration that I miss, thanks for you guys answer this question!(attatched file is the code of function block )Recently, in order to get more familiar with simulink, I tried to establish some easy simulink model(figure shown in the following), however, there is a wierd bug. I inserted a sine wave with different amplitude, equivalently, two inputs into the matlab function block. Intuitively, this testbench should gives two output, but my workspace window only showed one ! so I want to consult what kind of consideration that I miss, thanks for you guys answer this question!(attatched file is the code of function block ) Recently, in order to get more familiar with simulink, I tried to establish some easy simulink model(figure shown in the following), however, there is a wierd bug. I inserted a sine wave with different amplitude, equivalently, two inputs into the matlab function block. Intuitively, this testbench should gives two output, but my workspace window only showed one ! so I want to consult what kind of consideration that I miss, thanks for you guys answer this question!(attatched file is the code of function block ) simulink MATLAB Answers — New Questions

​

Plot now showing correctly
Matlab News

Plot now showing correctly

PuTI / 2025-07-14

I was working on my code like 10 days ago in 2025a, the code is running and the plot is showing correctly. I decided to run again to take some screenshot of my plot but my plot is no longer displaying correctly. If I print the plot, I will see the correct plot on the print dialog but the original plot window is showing up very bad. Screenshot applied. Please any immediate help will be appreciated as this is my school assignment.

My computer is Linux Ubuntu 22.04

clear all; close all; clc;

%% System Parameters
% Physical parameters of the DC motor
Ra = 1.0; % Armature resistance (Ohm)
La = 0.5; % Armature inductance (H)
J = 0.01; % Moment of inertia (Nms^2/rad)
b = 0.1; % Damping coefficient (Nms)
KT = 0.01; % Torque constant (Nm/A)
Ke = 0.01; % Back EMF constant (Nm/A)
K = Ke; % In SI units, Ke = Ki = K

%% Transfer Function Definition
% Open loop transfer function: θ(s)/Ea(s)
% G(s) = K / [(Js + b)(Las + Ra) + K^2]

% Coefficients calculation
num = K;
den_coeff = [J*La, (J*Ra + b*La), (b*Ra + K^2)];
den = den_coeff;

% Create transfer function
G = tf(num, den);

% Display the transfer function
fprintf(‘Open Loop Transfer Function:n’);
fprintf(‘G(s) = %.4f / (%.4fs^2 + %.4fs + %.4f)n’, num, den(1), den(2), den(3));

%% Performance Specifications
% Desired specifications:
% – Settling time (Ts) < 2 seconds
% – Percentage Overshoot (PO) < 5%
% – Steady State Error (SSE) < 1%

fprintf(‘nDesired Specifications:n’);
fprintf(‘- Settling time (Ts) < 2 secondsn’);
fprintf(‘- Percentage Overshoot (PO) < 5%%n’);
fprintf(‘- Steady State Error (SSE) < 1%%nn’);

%% Step 1: Open Loop Response
fprintf(‘=== STEP 1: OPEN LOOP RESPONSE ===n’);

figure(1);
[y1, t1] = step(G);
plot(t1, y1, ‘b-‘, ‘LineWidth’, 2);
title(‘Open Loop Step Response’);
xlabel(‘Time (seconds)’);
ylabel(‘Angular Position (rad)’);
grid on;

% Calculate performance metrics for open loop
stepinfo_ol = stepinfo(G);
fprintf(‘Open Loop Performance:n’);
fprintf(‘Rise Time (Tr): %.4f secondsn’, stepinfo_ol.RiseTime);
fprintf(‘Settling Time (Ts): %.4f secondsn’, stepinfo_ol.SettlingTime);
fprintf(‘Peak Overshoot: %.2f%%n’, stepinfo_ol.Overshoot);

% Steady state error calculation (for unit step)
% For Type 0 system: ess = 1/(1+Kp) where Kp = lim s->0 G(s)
Kp_ol = dcgain(G);
ess_ol = 1/(1+Kp_ol) * 100; % Convert to percentage
fprintf(‘Steady State Error: %.2f%%n’, ess_ol);
fprintf(‘Comments: Open loop system is unstable or has poor performancenn’);

Bad Plot

Print DialogI was working on my code like 10 days ago in 2025a, the code is running and the plot is showing correctly. I decided to run again to take some screenshot of my plot but my plot is no longer displaying correctly. If I print the plot, I will see the correct plot on the print dialog but the original plot window is showing up very bad. Screenshot applied. Please any immediate help will be appreciated as this is my school assignment.

My computer is Linux Ubuntu 22.04

clear all; close all; clc;

%% System Parameters
% Physical parameters of the DC motor
Ra = 1.0; % Armature resistance (Ohm)
La = 0.5; % Armature inductance (H)
J = 0.01; % Moment of inertia (Nms^2/rad)
b = 0.1; % Damping coefficient (Nms)
KT = 0.01; % Torque constant (Nm/A)
Ke = 0.01; % Back EMF constant (Nm/A)
K = Ke; % In SI units, Ke = Ki = K

%% Transfer Function Definition
% Open loop transfer function: θ(s)/Ea(s)
% G(s) = K / [(Js + b)(Las + Ra) + K^2]

% Coefficients calculation
num = K;
den_coeff = [J*La, (J*Ra + b*La), (b*Ra + K^2)];
den = den_coeff;

% Create transfer function
G = tf(num, den);

% Display the transfer function
fprintf(‘Open Loop Transfer Function:n’);
fprintf(‘G(s) = %.4f / (%.4fs^2 + %.4fs + %.4f)n’, num, den(1), den(2), den(3));

%% Performance Specifications
% Desired specifications:
% – Settling time (Ts) < 2 seconds
% – Percentage Overshoot (PO) < 5%
% – Steady State Error (SSE) < 1%

fprintf(‘nDesired Specifications:n’);
fprintf(‘- Settling time (Ts) < 2 secondsn’);
fprintf(‘- Percentage Overshoot (PO) < 5%%n’);
fprintf(‘- Steady State Error (SSE) < 1%%nn’);

%% Step 1: Open Loop Response
fprintf(‘=== STEP 1: OPEN LOOP RESPONSE ===n’);

figure(1);
[y1, t1] = step(G);
plot(t1, y1, ‘b-‘, ‘LineWidth’, 2);
title(‘Open Loop Step Response’);
xlabel(‘Time (seconds)’);
ylabel(‘Angular Position (rad)’);
grid on;

% Calculate performance metrics for open loop
stepinfo_ol = stepinfo(G);
fprintf(‘Open Loop Performance:n’);
fprintf(‘Rise Time (Tr): %.4f secondsn’, stepinfo_ol.RiseTime);
fprintf(‘Settling Time (Ts): %.4f secondsn’, stepinfo_ol.SettlingTime);
fprintf(‘Peak Overshoot: %.2f%%n’, stepinfo_ol.Overshoot);

% Steady state error calculation (for unit step)
% For Type 0 system: ess = 1/(1+Kp) where Kp = lim s->0 G(s)
Kp_ol = dcgain(G);
ess_ol = 1/(1+Kp_ol) * 100; % Convert to percentage
fprintf(‘Steady State Error: %.2f%%n’, ess_ol);
fprintf(‘Comments: Open loop system is unstable or has poor performancenn’);

Bad Plot

Print Dialog I was working on my code like 10 days ago in 2025a, the code is running and the plot is showing correctly. I decided to run again to take some screenshot of my plot but my plot is no longer displaying correctly. If I print the plot, I will see the correct plot on the print dialog but the original plot window is showing up very bad. Screenshot applied. Please any immediate help will be appreciated as this is my school assignment.

My computer is Linux Ubuntu 22.04

clear all; close all; clc;

%% System Parameters
% Physical parameters of the DC motor
Ra = 1.0; % Armature resistance (Ohm)
La = 0.5; % Armature inductance (H)
J = 0.01; % Moment of inertia (Nms^2/rad)
b = 0.1; % Damping coefficient (Nms)
KT = 0.01; % Torque constant (Nm/A)
Ke = 0.01; % Back EMF constant (Nm/A)
K = Ke; % In SI units, Ke = Ki = K

%% Transfer Function Definition
% Open loop transfer function: θ(s)/Ea(s)
% G(s) = K / [(Js + b)(Las + Ra) + K^2]

% Coefficients calculation
num = K;
den_coeff = [J*La, (J*Ra + b*La), (b*Ra + K^2)];
den = den_coeff;

% Create transfer function
G = tf(num, den);

% Display the transfer function
fprintf(‘Open Loop Transfer Function:n’);
fprintf(‘G(s) = %.4f / (%.4fs^2 + %.4fs + %.4f)n’, num, den(1), den(2), den(3));

%% Performance Specifications
% Desired specifications:
% – Settling time (Ts) < 2 seconds
% – Percentage Overshoot (PO) < 5%
% – Steady State Error (SSE) < 1%

fprintf(‘nDesired Specifications:n’);
fprintf(‘- Settling time (Ts) < 2 secondsn’);
fprintf(‘- Percentage Overshoot (PO) < 5%%n’);
fprintf(‘- Steady State Error (SSE) < 1%%nn’);

%% Step 1: Open Loop Response
fprintf(‘=== STEP 1: OPEN LOOP RESPONSE ===n’);

figure(1);
[y1, t1] = step(G);
plot(t1, y1, ‘b-‘, ‘LineWidth’, 2);
title(‘Open Loop Step Response’);
xlabel(‘Time (seconds)’);
ylabel(‘Angular Position (rad)’);
grid on;

% Calculate performance metrics for open loop
stepinfo_ol = stepinfo(G);
fprintf(‘Open Loop Performance:n’);
fprintf(‘Rise Time (Tr): %.4f secondsn’, stepinfo_ol.RiseTime);
fprintf(‘Settling Time (Ts): %.4f secondsn’, stepinfo_ol.SettlingTime);
fprintf(‘Peak Overshoot: %.2f%%n’, stepinfo_ol.Overshoot);

% Steady state error calculation (for unit step)
% For Type 0 system: ess = 1/(1+Kp) where Kp = lim s->0 G(s)
Kp_ol = dcgain(G);
ess_ol = 1/(1+Kp_ol) * 100; % Convert to percentage
fprintf(‘Steady State Error: %.2f%%n’, ess_ol);
fprintf(‘Comments: Open loop system is unstable or has poor performancenn’);

Bad Plot

Print Dialog matlab, plotting MATLAB Answers — New Questions

​

Wierd wiggle in plot of symbolic expression
Matlab News

Wierd wiggle in plot of symbolic expression

PuTI / 2025-07-14

Apart from the small wiggles (the biggest near t=8) the plot of the symbolic expression below looks correct. How can I remove the wiggles?
clear; clc; close all;
syms t real;
syms k integer;
syms d integer;

cutoff(t) = piecewise(t < 0, 0, t);
parity(k) = 1-2*mod(k,2);
f(t,k,d) = 1/factorial(d)*parity(k)*nchoosek(d+1, k)*cutoff(t-k)^d;
B(t,d) = symsum(f,k,0,floor(t));

syms tau real; % dummy variable of integration just for the case d=0
IB0(t) = int(B(tau,0),tau,0,t);

figure
hold on
fplot(IB0(t),[0,9], ‘LineWidth’, 2);
xlim([-1,10]);
ylim([-0.2,1.2]);Apart from the small wiggles (the biggest near t=8) the plot of the symbolic expression below looks correct. How can I remove the wiggles?
clear; clc; close all;
syms t real;
syms k integer;
syms d integer;

cutoff(t) = piecewise(t < 0, 0, t);
parity(k) = 1-2*mod(k,2);
f(t,k,d) = 1/factorial(d)*parity(k)*nchoosek(d+1, k)*cutoff(t-k)^d;
B(t,d) = symsum(f,k,0,floor(t));

syms tau real; % dummy variable of integration just for the case d=0
IB0(t) = int(B(tau,0),tau,0,t);

figure
hold on
fplot(IB0(t),[0,9], ‘LineWidth’, 2);
xlim([-1,10]);
ylim([-0.2,1.2]); Apart from the small wiggles (the biggest near t=8) the plot of the symbolic expression below looks correct. How can I remove the wiggles?
clear; clc; close all;
syms t real;
syms k integer;
syms d integer;

cutoff(t) = piecewise(t < 0, 0, t);
parity(k) = 1-2*mod(k,2);
f(t,k,d) = 1/factorial(d)*parity(k)*nchoosek(d+1, k)*cutoff(t-k)^d;
B(t,d) = symsum(f,k,0,floor(t));

syms tau real; % dummy variable of integration just for the case d=0
IB0(t) = int(B(tau,0),tau,0,t);

figure
hold on
fplot(IB0(t),[0,9], ‘LineWidth’, 2);
xlim([-1,10]);
ylim([-0.2,1.2]); plot, symbolic MATLAB Answers — New Questions

​

how to customize the app designer linear gauge to mimic the fluid level gauge?
Matlab News

how to customize the app designer linear gauge to mimic the fluid level gauge?

PuTI / 2025-07-14

In absence of a fluid level gauge (it was found in earlier versions of simulink real time instrumentation panels such as in 2018b), how can I modify the linear gauge used in app designer to mimic the functionality of a fluid level gauge? That type of gauge was very useful and for some reason isn’t part of the new instrumenation options.In absence of a fluid level gauge (it was found in earlier versions of simulink real time instrumentation panels such as in 2018b), how can I modify the linear gauge used in app designer to mimic the functionality of a fluid level gauge? That type of gauge was very useful and for some reason isn’t part of the new instrumenation options. In absence of a fluid level gauge (it was found in earlier versions of simulink real time instrumentation panels such as in 2018b), how can I modify the linear gauge used in app designer to mimic the functionality of a fluid level gauge? That type of gauge was very useful and for some reason isn’t part of the new instrumenation options. fluid level gauge, instrumenation MATLAB Answers — New Questions

​

Microsoft 365 Copilot Search Now Available
News

Microsoft 365 Copilot Search Now Available

Tony Redmond / 2025-07-14

Copilot Search Delivers Even More Intelligence?

Prior to Microsoft’s Copilot launch in March 2023, search was simple. Google dominated and had educated people into performing keyword-based searches to find information. Today, the situation isn’t quite so straightforward. AI-generated executive summaries are the norm for Google and other search engines. Keyword-based searching is very different now.

Copilot came with promise of radically better search. I think Microsoft 365 Copilot has lived up to this promise, but only for Graph-based searches for documents, messages, and email, Web-based searches depend on Bing, and that dependency makes web results less than spectacularly wonderful. Some thought that semantic search would make a big difference, but given that Copilot functions without semantic search, its influence is marginal at best.

Copilot Search Mark 2

Microsoft has a reputation for getting things right on the second or third attempt, which brings us to the launch of Microsoft 365 Copilot search, “a new AI-powered, enterprise-grade search experience” for tenants with Microsoft 365 Copilot licenses. The technology is described in message center notification MC1108844 (3 July 2025, Microsoft 365 roadmap item 490778). The new search is available in targeted release tenants now and is scheduled for general availability starting in mid-July 2025.

According to Microsoft, “Copilot Search leverages Microsoft Graph and Microsoft 365 Copilot connectors to index content across Microsoft 365 and third-party apps. It interprets user context, natural language, behavioral signals, and organizational relationships to deliver highly personalized, context-aware answers to complex queries.” That’s quite a mouthful. After using the new search for several days, it reminds me of the Microsoft Search in Bing feature (retired in March 2025) with a hint of Delve, all wrapped up with BizChat. Microsoft says that the integration with BizChat enables users to move seamlessly from search to task execution.

Copilot Search in Action

After reading the documentation, I headed to the Microsoft 365 Copilot app and selected the Search option, making sure that the option to use the new search was selected. I’ve written extensively about Entra ID license management, so proceeded to see what Copilot Search could find. Figure 1 shows the results. Instead of a simple list of results with the ability to filter by type (files, sites, people, messages, and so on), Copilot Search presents what Microsoft considers to be a more intelligent view, including an extract from the Copilot chat response to the question posed in the search. The full chat response is available by clicking the Continue reading button. In essence, you then participate in a full-blown conversation with Copilot.

Copilot Search in action.
Figure 1: Copilot Search in action

The Modified drop-down offers filters for the past 24 hours, past week, past month, and past year. Under Results, you can refine the results based on items found in SharePoint Online, the web (other sites), Outlook mail, and Teams messages (not shown in Figure 1). Loop workspaces and pages are also scanned by search and are included in SharePoint results rather than having their own type.

The web results are generated from Bing, so the normal caveat applies to the accuracy and usefulness of Bing. Microsoft documentation is heavily favored by Bing, so it’s of no surprise that the top two results listed come from that source. Better results are generated if you include a target website address to search. For example, “What Practical365.com articles cover the topic of Entra ID license management”

Like BizChat, the DLP policy for Copilot stops Office documents and PDF files assigned specific sensitivity labels turning up in search results.

Pity About Bing, but Copilot Search Excels with Graph Searches

Like any search, the new Copilot search takes some getting used to before it becomes an effective and efficient tool in user hands. The dependency on Bing weakens the ability of Copilot search to beat Google or other search engines, but the ability to find items in Graph-grounded searches is unmatched. That, and the smooth integration with BizChat and the ability to save output in Copilot pages will likely please people enough to drive usage.


Insight like this doesn’t come easily. You’ve got to know the technology and understand how to look behind the scenes. Benefit from the knowledge and experience of the Office 365 for IT Pros team by subscribing to the best eBook covering Office 365 and the wider Microsoft 365 ecosystem.

 

Result of symbolic definite integral is clearly wrong
Matlab News

Result of symbolic definite integral is clearly wrong

PuTI / 2025-07-13

The plot of the rather complicated function B(t,d) seems correct (see figure 1).
The plot of its definite integral from 0 to t (in the case d=0) is incorrect (see figure 2). It should have constant value 1 on the interval [1,2], but the plot indicates a constant value of 0 on that interval.
What is going on? Did I misuse the symbolic math functions?
PS Both plots look correct for integers d>1.

syms t k d;
cutoff(t) = piecewise(t < 0, 0, t >= 0, t);
parity(k) = 1-2*mod(k,2);
f(t,k,d) = 1/factorial(d)*parity(k)*nchoosek(d+1, k)*cutoff(t-k)^d;
B(t,d) = symsum(f,k,0,floor(t));
IB(t,d) = int(B(t,d),0,t);

bad_d=0;

figure(1)
fplot(B(t,bad_d), [-1,2], ‘LineWidth’, 2);

figure(2)
fplot(IB(t,bad_d), [-1,2], ‘LineWidth’, 2);The plot of the rather complicated function B(t,d) seems correct (see figure 1).
The plot of its definite integral from 0 to t (in the case d=0) is incorrect (see figure 2). It should have constant value 1 on the interval [1,2], but the plot indicates a constant value of 0 on that interval.
What is going on? Did I misuse the symbolic math functions?
PS Both plots look correct for integers d>1.

syms t k d;
cutoff(t) = piecewise(t < 0, 0, t >= 0, t);
parity(k) = 1-2*mod(k,2);
f(t,k,d) = 1/factorial(d)*parity(k)*nchoosek(d+1, k)*cutoff(t-k)^d;
B(t,d) = symsum(f,k,0,floor(t));
IB(t,d) = int(B(t,d),0,t);

bad_d=0;

figure(1)
fplot(B(t,bad_d), [-1,2], ‘LineWidth’, 2);

figure(2)
fplot(IB(t,bad_d), [-1,2], ‘LineWidth’, 2); The plot of the rather complicated function B(t,d) seems correct (see figure 1).
The plot of its definite integral from 0 to t (in the case d=0) is incorrect (see figure 2). It should have constant value 1 on the interval [1,2], but the plot indicates a constant value of 0 on that interval.
What is going on? Did I misuse the symbolic math functions?
PS Both plots look correct for integers d>1.

syms t k d;
cutoff(t) = piecewise(t < 0, 0, t >= 0, t);
parity(k) = 1-2*mod(k,2);
f(t,k,d) = 1/factorial(d)*parity(k)*nchoosek(d+1, k)*cutoff(t-k)^d;
B(t,d) = symsum(f,k,0,floor(t));
IB(t,d) = int(B(t,d),0,t);

bad_d=0;

figure(1)
fplot(B(t,bad_d), [-1,2], ‘LineWidth’, 2);

figure(2)
fplot(IB(t,bad_d), [-1,2], ‘LineWidth’, 2); symbolic math, definite integral, plot MATLAB Answers — New Questions

​

Access denied when visit the official website
Matlab News

Access denied when visit the official website

PuTI / 2025-07-13

Post Content Post Content access denied MATLAB Answers — New Questions

​

Kronecker product implementation of finite difference for poisson equation
Matlab News

Kronecker product implementation of finite difference for poisson equation

PuTI / 2025-07-13

Hi all,
I want to test the setup to use kron to solve the 2D poisson equation with dirichlet boundary condition on two sides (left and bottom) and non-zero neumann boundary conditions on the other sides. I know the theoretical solution which is and thus the forcing function is . I have the code herein:
%grid declaration
N = 100;
x = linspace(0,1,N);
dx = x(2)-x(1);
y = x;
[X,Y] = meshgrid(x,y);

%analytical solution and forcing function
u_an = 8*X.^2.*Y.^2;
f = 16*(X.^2+Y.^2);

%creation of the matrix (complete matrix including end points)
e = ones(N,1);
T = spdiags([e -2*e e],[-1 0 1],N,N);
T(1,1:2) = [dx^2 0]; %dirichlet matrix (first order approximation)
T(end,end-1:end) = [dx -dx]; %neumann matrix (first order approximation)
fullT = full(T);
I = speye(N);
L = kron(T,I)+kron(I,T);
L = L/dx^2;
fullL = full(L);

%rhs including boundary conditions and forcing function
b = zeros(N,N);
b(2:end-1,2:end-1) = f(2:end-1,2:end-1);
b(:,end) = -16*y’.^2; %right boundary
b(end,:) = -16*x.^2; %top boundary

%solution of the matrix equation and reshaping
b1 = reshape(b,N^2,1);
u = Lb1;
u = u;
u = reshape(u,N,N);

%visualisation and comparison with the analytical solution
figure(1)
plot3(X,Y,u,’*k’)
hold on
plot3(X,y,u_an,’or’)
hold off
The code isn’t quite accurate but what is bizzare is that if you replace
T(end,end-1:end) = [dx -dx]; %neumann matrix (first order approximation)
and
b(:,end) = -16*y’.^2; %right boundary
b(end,:) = -16*x.^2; %top boundary
with
T(end,end-1:end) = [1 -1]; %neumann matrix (first order approximation)
and
b(:,end) = -16*y’.^2/dx; %right boundary
b(end,:) = -16*x.^2/dx; %top boundary
it generates the correct result. Could someone please help me understand if I’m setting up the Kronecker product correctly or not and what changes in the two implementations?Hi all,
I want to test the setup to use kron to solve the 2D poisson equation with dirichlet boundary condition on two sides (left and bottom) and non-zero neumann boundary conditions on the other sides. I know the theoretical solution which is and thus the forcing function is . I have the code herein:
%grid declaration
N = 100;
x = linspace(0,1,N);
dx = x(2)-x(1);
y = x;
[X,Y] = meshgrid(x,y);

%analytical solution and forcing function
u_an = 8*X.^2.*Y.^2;
f = 16*(X.^2+Y.^2);

%creation of the matrix (complete matrix including end points)
e = ones(N,1);
T = spdiags([e -2*e e],[-1 0 1],N,N);
T(1,1:2) = [dx^2 0]; %dirichlet matrix (first order approximation)
T(end,end-1:end) = [dx -dx]; %neumann matrix (first order approximation)
fullT = full(T);
I = speye(N);
L = kron(T,I)+kron(I,T);
L = L/dx^2;
fullL = full(L);

%rhs including boundary conditions and forcing function
b = zeros(N,N);
b(2:end-1,2:end-1) = f(2:end-1,2:end-1);
b(:,end) = -16*y’.^2; %right boundary
b(end,:) = -16*x.^2; %top boundary

%solution of the matrix equation and reshaping
b1 = reshape(b,N^2,1);
u = Lb1;
u = u;
u = reshape(u,N,N);

%visualisation and comparison with the analytical solution
figure(1)
plot3(X,Y,u,’*k’)
hold on
plot3(X,y,u_an,’or’)
hold off
The code isn’t quite accurate but what is bizzare is that if you replace
T(end,end-1:end) = [dx -dx]; %neumann matrix (first order approximation)
and
b(:,end) = -16*y’.^2; %right boundary
b(end,:) = -16*x.^2; %top boundary
with
T(end,end-1:end) = [1 -1]; %neumann matrix (first order approximation)
and
b(:,end) = -16*y’.^2/dx; %right boundary
b(end,:) = -16*x.^2/dx; %top boundary
it generates the correct result. Could someone please help me understand if I’m setting up the Kronecker product correctly or not and what changes in the two implementations? Hi all,
I want to test the setup to use kron to solve the 2D poisson equation with dirichlet boundary condition on two sides (left and bottom) and non-zero neumann boundary conditions on the other sides. I know the theoretical solution which is and thus the forcing function is . I have the code herein:
%grid declaration
N = 100;
x = linspace(0,1,N);
dx = x(2)-x(1);
y = x;
[X,Y] = meshgrid(x,y);

%analytical solution and forcing function
u_an = 8*X.^2.*Y.^2;
f = 16*(X.^2+Y.^2);

%creation of the matrix (complete matrix including end points)
e = ones(N,1);
T = spdiags([e -2*e e],[-1 0 1],N,N);
T(1,1:2) = [dx^2 0]; %dirichlet matrix (first order approximation)
T(end,end-1:end) = [dx -dx]; %neumann matrix (first order approximation)
fullT = full(T);
I = speye(N);
L = kron(T,I)+kron(I,T);
L = L/dx^2;
fullL = full(L);

%rhs including boundary conditions and forcing function
b = zeros(N,N);
b(2:end-1,2:end-1) = f(2:end-1,2:end-1);
b(:,end) = -16*y’.^2; %right boundary
b(end,:) = -16*x.^2; %top boundary

%solution of the matrix equation and reshaping
b1 = reshape(b,N^2,1);
u = Lb1;
u = u;
u = reshape(u,N,N);

%visualisation and comparison with the analytical solution
figure(1)
plot3(X,Y,u,’*k’)
hold on
plot3(X,y,u_an,’or’)
hold off
The code isn’t quite accurate but what is bizzare is that if you replace
T(end,end-1:end) = [dx -dx]; %neumann matrix (first order approximation)
and
b(:,end) = -16*y’.^2; %right boundary
b(end,:) = -16*x.^2; %top boundary
with
T(end,end-1:end) = [1 -1]; %neumann matrix (first order approximation)
and
b(:,end) = -16*y’.^2/dx; %right boundary
b(end,:) = -16*x.^2/dx; %top boundary
it generates the correct result. Could someone please help me understand if I’m setting up the Kronecker product correctly or not and what changes in the two implementations? kron, finite difference, mldivide MATLAB Answers — New Questions

​

Change width of 2 colorbars in tiledlayout
Matlab News

Change width of 2 colorbars in tiledlayout

PuTI / 2025-07-13

I try to change the width of the colorbars in both r
If I only change it for one of them, it works.
img_sos = rand(64);
img_oar_pixel = rand(64);
img_oar_block = rand(64);

snr_sos = rand(64)*250;
snr_oar_pixel = rand(64)*250;
snr_oar_block = rand(64)*250;
snr_max = ceil(max([snr_sos(:); snr_oar_pixel(:); snr_oar_block(:)]));
snr_max_50 = ceil(snr_max / 50) * 50;

tile_size_cm = 4; % desired size of images
n_cols = 3;
n_rows = 2;

padding_cm = 0.6;
colorbar_width_cm = 1;

% size of figure
fig_width_cm = n_cols * tile_size_cm + (n_cols+1)*padding_cm + colorbar_width_cm;
fig_height_cm = n_rows * tile_size_cm + (n_rows+1)*padding_cm;

f = figure(‘Units’, ‘centimeters’, ‘Position’, [5 5 fig_width_cm fig_height_cm]);
tl = tiledlayout(n_rows, n_cols, ‘TileSpacing’, ‘compact’, ‘Padding’, ‘compact’);

clim1 = [0 1];
cmap1 = jet;
ax1 = [];

ax1(1) = nexttile(1);
imagesc(img_sos, clim1);
axis image off;
title(‘Sum-of-Squares’, ‘FontSize’, 10, ‘Interpreter’, ‘latex’, …
‘FontName’, ‘Latin Modern Roman’);

ax1(2) = nexttile(2);
imagesc(img_oar_pixel, clim1);
axis image off;
title({‘Adaptive Kombination’, ‘(Pixelweise)’}, ‘FontSize’, 10, ‘Interpreter’, ‘latex’, …
‘FontName’, ‘Latin Modern Roman’);

ax1(3) = nexttile(3);
imagesc(img_oar_block, clim1);
axis image off;
title({‘Adaptive Kombination’, ‘(Blockweise)’}, ‘FontSize’, 10, ‘Interpreter’, ‘latex’, …
‘FontName’, ‘Latin Modern Roman’);

set(ax1, ‘Colormap’, cmap1);
cb1 = colorbar(ax1(end), ‘eastoutside’);
cb1.Label.String = ‘Normierte Signalintensit"at’;
cb1.Label.Interpreter = ‘latex’;
cb1.Label.FontSize = 10;
cb1.Ticks = 0:0.2:1;

% THIS IS WHAT I WANT TO DO FOR THE SECOND ONE AS WELL
fixed_cb_width_cm = 0.3;
cb1_pos = cb1.Position;
cb1_pos(3) = fixed_cb_width_cm / fig_width_cm;
cb1.Position = cb1_pos;

clim2 = [0 snr_max_50];
cmap2 = hot;
ax2 = [];

ax2(1) = nexttile(4);
imagesc(snr_sos, clim2);
axis image off;

ax2(2) = nexttile(5);
imagesc(snr_oar_pixel, clim2);
axis image off;

ax2(3) = nexttile(6);
imagesc(snr_oar_block, clim2);
axis image off;

set(ax2, ‘Colormap’, cmap2);
cb2 = colorbar(ax2(end), ‘eastoutside’);
cb2.Label.String = ‘SNR’;
cb2.Label.Interpreter = ‘latex’;
cb2.Label.FontSize = 10;
cb2.Ticks = 0:50:snr_max_50;
But as soon as I add this part for the second one:
cb2_pos = cb2.Position;
cb2_pos(3) = fixed_cb_width_cm / fig_width_cm;
cb2.Position = cb2_pos;
Both colorbars appear inside the last image ..I try to change the width of the colorbars in both r
If I only change it for one of them, it works.
img_sos = rand(64);
img_oar_pixel = rand(64);
img_oar_block = rand(64);

snr_sos = rand(64)*250;
snr_oar_pixel = rand(64)*250;
snr_oar_block = rand(64)*250;
snr_max = ceil(max([snr_sos(:); snr_oar_pixel(:); snr_oar_block(:)]));
snr_max_50 = ceil(snr_max / 50) * 50;

tile_size_cm = 4; % desired size of images
n_cols = 3;
n_rows = 2;

padding_cm = 0.6;
colorbar_width_cm = 1;

% size of figure
fig_width_cm = n_cols * tile_size_cm + (n_cols+1)*padding_cm + colorbar_width_cm;
fig_height_cm = n_rows * tile_size_cm + (n_rows+1)*padding_cm;

f = figure(‘Units’, ‘centimeters’, ‘Position’, [5 5 fig_width_cm fig_height_cm]);
tl = tiledlayout(n_rows, n_cols, ‘TileSpacing’, ‘compact’, ‘Padding’, ‘compact’);

clim1 = [0 1];
cmap1 = jet;
ax1 = [];

ax1(1) = nexttile(1);
imagesc(img_sos, clim1);
axis image off;
title(‘Sum-of-Squares’, ‘FontSize’, 10, ‘Interpreter’, ‘latex’, …
‘FontName’, ‘Latin Modern Roman’);

ax1(2) = nexttile(2);
imagesc(img_oar_pixel, clim1);
axis image off;
title({‘Adaptive Kombination’, ‘(Pixelweise)’}, ‘FontSize’, 10, ‘Interpreter’, ‘latex’, …
‘FontName’, ‘Latin Modern Roman’);

ax1(3) = nexttile(3);
imagesc(img_oar_block, clim1);
axis image off;
title({‘Adaptive Kombination’, ‘(Blockweise)’}, ‘FontSize’, 10, ‘Interpreter’, ‘latex’, …
‘FontName’, ‘Latin Modern Roman’);

set(ax1, ‘Colormap’, cmap1);
cb1 = colorbar(ax1(end), ‘eastoutside’);
cb1.Label.String = ‘Normierte Signalintensit"at’;
cb1.Label.Interpreter = ‘latex’;
cb1.Label.FontSize = 10;
cb1.Ticks = 0:0.2:1;

% THIS IS WHAT I WANT TO DO FOR THE SECOND ONE AS WELL
fixed_cb_width_cm = 0.3;
cb1_pos = cb1.Position;
cb1_pos(3) = fixed_cb_width_cm / fig_width_cm;
cb1.Position = cb1_pos;

clim2 = [0 snr_max_50];
cmap2 = hot;
ax2 = [];

ax2(1) = nexttile(4);
imagesc(snr_sos, clim2);
axis image off;

ax2(2) = nexttile(5);
imagesc(snr_oar_pixel, clim2);
axis image off;

ax2(3) = nexttile(6);
imagesc(snr_oar_block, clim2);
axis image off;

set(ax2, ‘Colormap’, cmap2);
cb2 = colorbar(ax2(end), ‘eastoutside’);
cb2.Label.String = ‘SNR’;
cb2.Label.Interpreter = ‘latex’;
cb2.Label.FontSize = 10;
cb2.Ticks = 0:50:snr_max_50;
But as soon as I add this part for the second one:
cb2_pos = cb2.Position;
cb2_pos(3) = fixed_cb_width_cm / fig_width_cm;
cb2.Position = cb2_pos;
Both colorbars appear inside the last image .. I try to change the width of the colorbars in both r
If I only change it for one of them, it works.
img_sos = rand(64);
img_oar_pixel = rand(64);
img_oar_block = rand(64);

snr_sos = rand(64)*250;
snr_oar_pixel = rand(64)*250;
snr_oar_block = rand(64)*250;
snr_max = ceil(max([snr_sos(:); snr_oar_pixel(:); snr_oar_block(:)]));
snr_max_50 = ceil(snr_max / 50) * 50;

tile_size_cm = 4; % desired size of images
n_cols = 3;
n_rows = 2;

padding_cm = 0.6;
colorbar_width_cm = 1;

% size of figure
fig_width_cm = n_cols * tile_size_cm + (n_cols+1)*padding_cm + colorbar_width_cm;
fig_height_cm = n_rows * tile_size_cm + (n_rows+1)*padding_cm;

f = figure(‘Units’, ‘centimeters’, ‘Position’, [5 5 fig_width_cm fig_height_cm]);
tl = tiledlayout(n_rows, n_cols, ‘TileSpacing’, ‘compact’, ‘Padding’, ‘compact’);

clim1 = [0 1];
cmap1 = jet;
ax1 = [];

ax1(1) = nexttile(1);
imagesc(img_sos, clim1);
axis image off;
title(‘Sum-of-Squares’, ‘FontSize’, 10, ‘Interpreter’, ‘latex’, …
‘FontName’, ‘Latin Modern Roman’);

ax1(2) = nexttile(2);
imagesc(img_oar_pixel, clim1);
axis image off;
title({‘Adaptive Kombination’, ‘(Pixelweise)’}, ‘FontSize’, 10, ‘Interpreter’, ‘latex’, …
‘FontName’, ‘Latin Modern Roman’);

ax1(3) = nexttile(3);
imagesc(img_oar_block, clim1);
axis image off;
title({‘Adaptive Kombination’, ‘(Blockweise)’}, ‘FontSize’, 10, ‘Interpreter’, ‘latex’, …
‘FontName’, ‘Latin Modern Roman’);

set(ax1, ‘Colormap’, cmap1);
cb1 = colorbar(ax1(end), ‘eastoutside’);
cb1.Label.String = ‘Normierte Signalintensit"at’;
cb1.Label.Interpreter = ‘latex’;
cb1.Label.FontSize = 10;
cb1.Ticks = 0:0.2:1;

% THIS IS WHAT I WANT TO DO FOR THE SECOND ONE AS WELL
fixed_cb_width_cm = 0.3;
cb1_pos = cb1.Position;
cb1_pos(3) = fixed_cb_width_cm / fig_width_cm;
cb1.Position = cb1_pos;

clim2 = [0 snr_max_50];
cmap2 = hot;
ax2 = [];

ax2(1) = nexttile(4);
imagesc(snr_sos, clim2);
axis image off;

ax2(2) = nexttile(5);
imagesc(snr_oar_pixel, clim2);
axis image off;

ax2(3) = nexttile(6);
imagesc(snr_oar_block, clim2);
axis image off;

set(ax2, ‘Colormap’, cmap2);
cb2 = colorbar(ax2(end), ‘eastoutside’);
cb2.Label.String = ‘SNR’;
cb2.Label.Interpreter = ‘latex’;
cb2.Label.FontSize = 10;
cb2.Ticks = 0:50:snr_max_50;
But as soon as I add this part for the second one:
cb2_pos = cb2.Position;
cb2_pos(3) = fixed_cb_width_cm / fig_width_cm;
cb2.Position = cb2_pos;
Both colorbars appear inside the last image .. figure, subplot, color, axes MATLAB Answers — New Questions

​

Previous 1 … 3 4 5 6 7 … 59 Next

Search

Categories

  • Matlab
  • Microsoft
  • News
  • Other
Application Package Repository Telkom University

Tags

matlab microsoft opensources
Application Package Download License

Application Package Download License

Adobe
Google for Education
IBM
Matlab
Microsoft
Wordpress
Visual Paradigm
Opensource

Sign Up For Newsletters

Be the First to Know. Sign up for newsletter today

Application Package Repository Telkom University

Portal Application Package Repository Telkom University, for internal use only, empower civitas academica in study and research.

Information

  • Telkom University
  • About Us
  • Contact
  • Forum Discussion
  • FAQ
  • Helpdesk Ticket

Contact Us

  • Ask: Any question please read FAQ
  • Mail: helpdesk@telkomuniversity.ac.id
  • Call: +62 823-1994-9941
  • WA: +62 823-1994-9943
  • Site: Gedung Panambulai. Jl. Telekomunikasi

Copyright © Telkom University. All Rights Reserved. ch

  • FAQ
  • Privacy Policy
  • Term