First
|
Prev |
Next
|
Last
Pages: 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
multiply matrix with vector Hi, I have 3 dim matrix A(x,y,z) and a vector V(1,z). I want to multiply each slice of A(:,:,b) with the scalar V(b), b=1:z. What is the fastest way to do it? Thanks!!! ... 10 Aug 2010 23:32
parfor reference to a cleared variable Greetings, I am converting a normal for loop into a parfor loop. When I run the code w/ for loop, there are warnings, but the program seems to run as expected and w/o errors. Now, I tried to run the program with parfor, and then the error: "reference to a cleared variable" occurs. Is it due to the fact that whenever I... 20 Jul 2010 12:26
saving a figure at a set resolution I am trying to save a figure at a specific size/resolution but and seeing strange behavior. imagesc(blah); set(gcf,'units','pixel'); set(gcf,'position',[0,0,960,960]); set(gcf,'papersize',[960,960]); saveas(gcf,'image.jpg'); image.jpg will end up being 1500x1500. if I do 614x614, i think then it comes pret... 20 Jul 2010 09:09
"Model-Based Design for DO-254"- ONE webinar session only- July 22nd @ 10:00am EDT "Model-Based Design for DO-254"- Webinar- July 22nd- ONE session only, so register before it fills up!! Register for the 10:00am U.S. EDT session: http://bit.ly/9Qtrqy Companies building complex electronics for the commercial and military aviation market often struggle with achieving DO-254 compliance. It is an i... 19 Jul 2010 16:51
Bits to bytes Hi there. I've writen a function that converts bytes to bits, but now I'mhaving trouble writing a function that reverses the process. Or is there a built-in function that does this already? My coding looks like so: function bitData = byte2bit(data) lengthData = length(data); bitData = uint8(zeros(1,lengthData*8)); ... 20 Jul 2010 00:32
constant in embedded matlab HDLCoder I am writing embedded matlab code that will eventually target an FPGA. If I use a function to implement a lookup table, I want to make sure the constant table only occurs once. How should I implement the table? I can't find a constant declaration, and initializing it within the function seems likely to produce many ... 19 Jul 2010 16:51
matlab compiler error Hi, I am running into a problem with matlab compiler. Below is the error message I got: Warning: DOS programs may not execute correctly when the current directory is a UNC pathname. '\\warehouse.cec.wustl.edu\home\links\genin\My Documents\MATLAB\Yu\MagicExample' CMD.EXE was started with the above path as th... 19 Jul 2010 16:51
how to declare a method in a class that can change its properties Hi everyone, I am new to object-oriented programming. Please help. My class is defined as follows: ------------------------- (myclass.m) classdef myclass properties a = []; end methods function obj = myclass(n) obj.a = n; end function y = inc(obj) ... 19 Jul 2010 22:22
how to declare a method in a class that can change its properties Hi everyone, I am new to object-oriented programming. Please help. My class is defined as follows: ------------------------- (myclass.m) classdef myclass properties a = []; end methods function obj = myclass(n) obj.a = n; end function y = inc(obj) ... 19 Jul 2010 16:51
can imfilter be call only one time for the following calculation? Anyway to do this by calling only one time imfilter? I would like to do this with imfilter to use the fast simd instruction. Is it possible to define a multidimensional filter that would do that? Thanks you for your help. F=rand(128*128,9); F=reshape(F,128,128,9); h=[0 0 0; 0 1 0; 0 0 0]; F(:,:,1)=imfilter(F(:,:,... 19 Jul 2010 16:52 |