help on molar volume using global function and newton iteration hy, I am quite new here and I don't have much experience regarding programming and Matlab. But i had an assingment to make a file that calculates the molar volume v. I tried lots of things and the best code i have till now is the next: function v=mainfunction(P,T) global P0 global T0 P0=P; T0=T; ... 11 Aug 2010 16:55
Record a movie Hello ! I'm a beginner with matlab and I want to record a movie from matlab. I've tried with the following code but then when I want to replay the movie with the instruction movie(A), I have the error message : "Movi contains uninitialized frames". I don't know why. Can you help me please ? load data.mat s... 11 Aug 2010 10:20
cpp code generation from Simulink/Stateflow model Hi, I'm not able to generate cpp code from a Simulink model (including a stateflow) due to the following error: Error building Real-Time Workshop target for block diagram 'sf_cpp'. MATLAB error message: Error using ==> RTW.genMakefileAndBuild Error(s) encountered while building model "sf_cpp". MATLAB version... 11 Aug 2010 10:20
Finding no solution with fsolve Hi all, trying to solve a system of non-linear equations with fsolve but without success. These are my files -------------- %main global Ab thick Dp ac W_n P porosity L R T_0 F_A0 F_B0 F_C0 F_D Db Dr T_o %all the global variables are problem constants x0=[1e-2 1e-4 .2 400 400 100 1]; % [k_c D_AB X T_r T... 12 Aug 2010 09:16
Image fusion using PCA Ok.... I'll think.... Just send me some clue how to find variance of image.... I have mean right now... That is clc: close all; clear all; A=imread('pg.jpg'); C=mean2(A); K= var(A); HERE I... 11 Aug 2010 14:44
Image fusion using PCA That was me who is thanking you... For your response.... I hope you can feel my problem... Send the source code as soon as possible.... Thank you sir.... ... 11 Aug 2010 10:20
Ayuda por favor con gráfica de taylor 1. Tengo el sgte ejercicio planteado (ver adjunto de la foto "DSC00395.jpg") 2. Tengo el sgte algoritmo ya implementado: clc; clear; x=input('Ingrese valor de x = '); N=input('Ingrese el número máx de la serie = '); e = 0; for i=0:N e = e + (x^i / factorial(i)); end fprintf('Serie e^%d = %f\n',x,e); vx ... 11 Aug 2010 09:15
fitting poins to a sing function Hello everybody: I want to fit different points to a sin function. Can anyone help me, please? Thanks in advence, Irati. ... 11 Aug 2010 09:15
Dealing with large variables I'm having some trouble getting MATLAB to handle some relatively simple processes with large variables. The simplified version of my code is as follows: ----------------------------------------------- %Pre-allocate Matricies (NumFiles could be as large as 500,000) x = zeros(NumFiles,351); R = zeros(NumFiles,100); ... 12 Aug 2010 14:46 |