Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to open figure with out matlab
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a created a figure in matlab, but I want to open in a system with out matlab.
My code is below:
umCluster = 3;
rand('state', 7)
data = [rand(25,3); rand(25,3)+1; rand(25,3)+2];
dist = pdist(data, 'euclidean');
link = linkage(dist, 'complete');
clust = cluster(link, 'maxclust', NumCluster);
color = link(end-NumCluster+2,3)-eps;
[H,T,perm] = dendrogram(link, 0, 'colorthreshold', color);
0 个评论
回答(1 个)
Azzi Abdelmalek
2016-7-11
编辑:Azzi Abdelmalek
2016-7-11
To save your figure as jpg file, Add this
saveas(gcf,'figure1.jpg')
4 个评论
Walter Roberson
2016-7-12
It is common for people to not be aware of which folder they are in. You can use
pwd
to find out which folder you are in. If the folder is underneath the MATLAB installation directory then you will not be able to save any files there because MS Windows does not allow users to write into the standard program installation directories.
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!