Smruti Prasad Dash
自 2017 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
how to the save value of variable obtained in iterative process when we input the value of the variable from txt file or excel file?
function sum_b = fcn(c) %#codegen sum_b=0; for ii=1:length(c) sum_b=sum_b+c(ii); disp(sum_b); end ...
7 years 前 | 1 个回答 | 0
1
个回答提问
Hi, I need urgent help,the sum value in following program is not getting incremented..whatever 'm' value is there,sum is showing that.the next sum value is not getting added with the previous value.I here by attach the code.
function [y,sum]= fcn(u,v) %#codegen w=length(u); sum=0; y=0; for i=1:w if u>v m=u-v; else m=0...
7 years 前 | 1 个回答 | 0