MATLAB R2013b
显示 更早的评论
I need to download MATLAB R2013b version for Mac OSX M2 and I do not found the zip to download.
2 个评论
srinivasu
2026-4-16
编辑:Walter Roberson
2026-4-16
此 个留言 已被 Steven Lord
标记
clc;
clear;
close all;
%% -------- Select and read RGB image (no toolbox needed) --------
[filename, pathname] = uigetfile( ...
{'*.png;*.jpg;*.jpeg;*.bmp', 'Image Files (*.png,*.jpg,*.jpeg,*.bmp)'}, ...
'Select an RGB Image');
if isequal(filename,0) || isequal(pathname,0)
error('No image selected.');
end
imgPath = fullfile(pathname, filename);
if ~isfile(imgPath)
error('File not found: %s', imgPath);
end
k = imread(imgPath);
figure; imshow(k); title('Original RGB Image');
% Ensure uint8 for easier histogram equalization
if ~isa(k,'uint8')
k = im2uint8(k);
end
%% -------- Manual histogram equalization for each channel --------
equalizeChannel = @(ch) manual_histeq_gray(ch); % manual HE per channel [web:96][web:99]
R = equalizeChannel(k(:,:,1));
G = equalizeChannel(k(:,:,2));
B = equalizeChannel(k(:,:,3));
k_eq = cat(3, R, G, B);
%% -------- Display original vs enhanced --------
figure;
subplot(1,2,1); imshow(k); title('Original RGB Image');
subplot(1,2,2); imshow(k_eq); title('Histogram Equalised RGB Image (manual, no histeq)');
% Optional: save result
% imwrite(k_eq, 'he_manual_rgb.png');
%% ------------ Helper function (no toolbox) ------------
function out = manual_histeq_gray(ch)
% ch: uint8 2D matrix
ch = uint8(ch);
[m,n] = size(ch);
numPixels = double(m*n);
% Histogram (256 bins)
h = histcounts(ch, 0:256).'; % 256x1 [web:96][web:107]
% PDF
pdf = h / numPixels;
% CDF
cdf = cumsum(pdf); % length 256, values in [0,1]
% Mapping: new_level = round(cdf(level)*255)
mapping = uint8(255 * cdf);
% Apply mapping (vectorised)
idx = double(ch) + 1; % 0..255 -> 1..256
out = mapping(idx);
end
Steven Lord
2026-4-16
The comment above has nothing to do with the original question. If you need help with this code, please post it as a new question. In that new question please describe the specific help you're looking for. Does the code error? Does it do something other than what you want?
回答(2 个)
Image Analyst
2023-4-24
0 个投票
What did the sales people say when you called them? You did call them, right?
Steven Lord
2023-4-24
0 个投票
If you made a typo and were asking about release R2023b, that release is not yet available. The current release as I'm typing this answer is release R2023a.
3 个评论
Walter Roberson
2023-4-24
移动:Walter Roberson
2023-4-24
In some cases, old versions of the software continue to (mostly) execute on operating systems or hardware newer than what is officially "supported" for them.
However, realistically R2013a and R2013b will not operate on an operating system new enough to be used in an Apple Silicon M2 machine. Apple has made a number of security-related changes that are not compatible with MATLAB versions that old.
Sane
2024-1-23
移动:John D'Errico
2024-1-23
sir how to download matlab R2013b version
Walter Roberson
2024-1-23
To download R2013b:
In the list box in the upper left, select R2013b. This will bring up the download page.
This will guess about the platform to use. If you need a different platform, then select a different Platform: in the mid upper right (below the box notifying about security updates.)
It is possible that your account is not permitted to download R2013b.
类别
在 帮助中心 和 File Exchange 中查找有关 Downloads 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!