我是靠谱客的博主 调皮小土豆,这篇文章主要介绍matlab双循环语句,双for循环的语句如何修改为matlab语句?,现在分享给大家,希望可以做个参考。

%unknown input parameters are: rice_h, rice_den

clc

close all

clear all

global function_in

rice = imread('rice30.tif', 'tiff');

sar_16bit=imread('rs0914-hh.tif','tiff');

[row col]=size(sar_16bit);

rice_h=uint16(zeros(row,col));

rice_den=uint16(zeros(row,col));

err=uint16(zeros(row,col));

bounds=[100,120;250,350];   % Set lower/heigher bounds of [height, density]

X = zeros(2,1);

FVAL = 0;

function_in = zeros(1);

%you need to change the i, j following the size of your image.

for i = 1:row               % 1586

for j = 1:col           % 2430

fprintf(1,'i = %d, j = %dn',i,j);

%  save line.dat i -ascii

if  rice(i,j) <= 0

rice_h(i,j) = 0;

rice_den(i,j) =

最后

以上就是调皮小土豆最近收集整理的关于matlab双循环语句,双for循环的语句如何修改为matlab语句?的全部内容,更多相关matlab双循环语句,双for循环内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(88)

评论列表共有 0 条评论

立即
投稿
返回
顶部