Write a function called addall in MATLAB that mimics the sum function?
Hi all! You can't use any predefined functions, but loops, mathematical operations, if statements, and matrices are allowed. This is my code so far: function Y = addall(X) total = 0; [r c] = size(X); Y = []; for rows = 1:r for cols = 1:c end end I can't seem to find out how to mimic the sum function by a... 21 Mar 2010 17:20
Where is urlConnection.setReadTimeout?
"Yair Altman" <altmanyDEL(a)gmailDEL.comDEL> wrote in message <hg7i8j$7lm$1(a)fred.mathworks.com>... "Steven Lord" <slord(a)mathworks.com> wrote in message <hg70vk$dop$1(a)fred.mathworks.com>... "Michele" <denber.nospam(a)mindspringNOSPAM.com> wrote in message news:hg62cm$d73$1(a)fred.mathworks.com... In... 21 Mar 2010 03:49
Official rules for the FEX
Doug Schwarz <see(a)sig.for.address.edu> wrote in message <see-CFD74C.16101920122009(a)news.frontiernet.net>... In article <hglhd7$e6g$1(a)fred.mathworks.com>, "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote: Dear Doug! I hope you realize that TMW does not want to be held liable in ca... 21 Mar 2010 03:49
Callback simulink parameters to edit text box in GUI
Hi! Is there a way were i can use a callback function to display parameters from my simulink model to my edit text box in my GUI? thanks ... 21 Mar 2010 00:27
NN optimization using GA - Fitness Function
Hello all, I have a NN built using the MATLAB toolbox to predict a yield stress of a metal given its composition and conditions. I predicted the outputs. Now I have to employ Genetic Algorithm (GA) to optimise my inputs to reach my desired output. I understand there is a toolbox to do so and uses a function [x , fva... 22 Mar 2010 11:51
Suppression of Carriage Return.
I would like to format my output to appears as: ZL = 345 rather than ZL = 345 If possible, I would appreciate assistance ... 21 Mar 2010 16:11
Using a saved string as a variable name?
hi, I would like to use a saved string as a variable name for a structure, for example, I want the user to input the variable's name, this string then gets saved to a variable - let's name this variable 'userInput'. I then need to use the string stored in this variable as the root name for a structure. e.g. 'user... 21 Mar 2010 08:17
Multiobjective Optimization using Genetic Algorithm
Dear all, I have experience en running GA in Matlab but with a single objective. I am trying to run now Multiobjective Functions, having only 2 variables and only 2 Objectives functions. However, it does not work since I get the following: ----------------------------- Optimization running. Too many input argu... 23 Mar 2010 08:57
Blockproc vs blkproc problem
Hi i can get blkproc to work but when i use the following blockproc code nothing is returned after processing. I.e. a : empty 0x0 double fun = @FunctionaName; for i=1:300 % get the current frame currentFrame = mov(i).cdata; frame = currentFrame(:,:,3)... 22 Mar 2010 09:22
Failure in Image Processing Toolbox
Hello, Need urgent help, so everyone got the answer please help me i am newbie on image processing, so i want to learn from examples given by matlab. I am using matlab r2009a and try the demos - image processing - Color-Based Segmentation Using K-Means Clustering. I run the .m file but it show some failure. ... 24 Mar 2010 11:09