Login
Password
Sources on this Page

> Headlines by Category

 Home / Science / Mathematics

You are using the plain HTML view, switch to advanced view for a more complete experience.

how to enter rahnged functions?
So I want to enter this function in MATLAB script file.

   (a) f( net ) = 1 if net > 0 , f( net ) = -1 if net <= 0
   (b) f( net ) = 1 if net > 0 , f( net ) = 0 if net <= 0 – Heavy side function.
 
Any ideas?
HOW TO CREATE LI ION BATTERY PACK IN SIMULINK
Sir, I want to create dual polarisation model of Li-ion battery pack in Simulink. So please give some useful information
title
hi, how can i display a title for specific time ? and how to make it show in specific place ? Thanks
Investigadores españoles mejoran la búsqueda de nuevos bosones de Higgs
Con datos del experimento ATLAS del gran colisionador de hadrones del CERN, científicos del Instituto de Física Corpuscular (Valencia) han coordinado una investigación que logra mejorar en más de un 50% los análisis para buscar nuevos bosones de Higgs en el LHC. Si se encuentran, sería un espaldarazo para la teoría de la supersimetría, donde para cada partícula conocida se propone otra nueva más pesada.
Image Processing
How to masking between RGB & binary Image.I have segmented binary image from same RGB Image. I want to remove all pixels from RBG Image( which having 1 in binary Image-same location).
Is there any way to solve it out, apart from nesting for loops in both images
Artificial Intelligence Shows Potential to Fight Blindness
Researchers have found a way to use artificial intelligence to fight a complication of diabetes that affects the eyes.
How to get specific cells from the same row as a max value
I am trying to make a function that, by searching for a maximum value in a cell array (depth), tells me that same maximum value plus other two strings that are in the same row (date and place)

For example:
Date - Hour - Scale (Richter) - Place - Depth(km)

10-04 - 12:00 - 4 - California - 50
11-04 - 12:30 - 7 - Santiago - 40
12-04 - 13:00 - 5 - Mendoza - 70
15-04 - 12:30 - 6 - Santiago - 30

In this case, I want to receive the maximum of the 4th column, but also the first and third column of the same row (in this case, the third).

Sorry if I messed up terminology, I'm new to matlab.
Thanks.
Re: unable to read mat-file, not a binary mat-file
diya" wrote in message <n5vvff$af6$1@newscl01ah.mathworks.com>...
> "Jayson Brouchoud" wrote in message <gvnqa5$4m9$1@fred.mathworks.com>...
> > "Jayson Brouchoud" <brou0040@tc.umn.edu> wrote in message <gvnpli$lup$1@fred.mathworks.com>...
> > > I'm getting the following error when running a compiled version of a GUI, running the GUI from MATLAB works just fine.
> > >
> > > ??? Error while evaluating TimerFcn for timer 'Scheduler_timer'
> > >
> > > Error using ==> load
> > > Unable to read MAT-file D:SchedulerScheduler.mat: not a binary MAT-file.
> > > Try LOAD -ASCII to read as text.
> > >
> > > For a little more background. I am developing 2 GUIs that are being compiled using deploytool on a Vista home premium machine running matlab 2007a and testing on a xp pro machine without matlab installed. There are two GUIs that each have multiple timers with TimerFcns that load and save to a single shared .mat file. When I run both GUIs at the same time inside matlab, I have no problems, but when I compile the two GUIs independently and run them, then I get this error. Is there some kind of file I/O error with reading / writing simultaneously that is otherwise handled inside matlab? I haven't found any kind of isopen function to check to see if a .mat file is already being saved or loaded to avoid a conflict.
> > >
> > > Any advice?
> >
> > Update already: I am able to reproduce the problem in matlab if I run each of the GUIs in separate instances of matlab. Still don't know what causes it or how to fix it.
> >
> > Any advice?

Not sure if you are still looking for a solution to this, it has been 2 years..
But i had a similar problem using another software. I found the problem was using a struct. so i converted each struct to arrays, like time = struct.time and data = struct.data. Then saved only time and data into a separate mat file. Import of this mat file worked perfectly. good luck!
Programming using fgetl function
I am trying to calculate currents from a circuit. I wrote a text file and I am trying to enter a 9x9 matrices and a 9x1 vector from the text file. I was able to get the 9x9 matrices to work properly, however I am having trouble reading the 9 x 1 matrices. I keep getting the error:
Subscripted assignment dimension mismatch.

Error in Project (line 29)
    [RHS_vector(jj,:),count]=fscanf(fileid,'%d',matrix_size2)

The code for the 9x9 matrices that works is shown below:
%Script to read the circuit system
fileid = fopen('my_circuit.txt','rt');

title=fgetl(fileid)

title = fgetl(fileid)

[matrix_size,count] = fscanf(fileid,'%d',1)
nothing = fgetl(fileid) %advances to the next line
title = fgetl(fileid);

%initialize A_matrix
A_matrix = zeros(matrix_size, matrix_size)
%Read system A matrix
for ii = 1:matrix_size
    [A_matrix(ii,:),count]=fscanf(fileid,'%d',matrix_size)
    nothing=fgetl(fileid)
    
    
end
The code I am having trouble with is shown below which starts at the :
%start back here
title = fgetl(fileid)
[matrix_size2,count]=fscanf(fileid,'%d',1)
%nothing = fgetl(fileid)
%initialize B_Matrix
RHS_vector = zeros(matrix_size2,matrix_size2)
%Read System B matrix
for jj = 1:matrix_size2
    [RHS_vector(jj,:),count]=fscanf(fileid,'%d',matrix_size2)
    %nothing=fgetl(fileid)
end
Can someone give me some direction in my mistake?
This is the text file I am using:
My circuit project data
Size of the problem
9
System Matrix
1 0 1 -1 0 0 0 0 0
0 1 -1 0 0 1 0 0 0
-1 -1 0 0 0 0 -1 0 0
0 0 0 0 1 -1 0 -1 0
0 0 0 0 0 0 1 1 1
-18 14 10 0 0 0 0 0 0
0 0 -10 -15 -12 -6 0 0 0
0 -14 0 0 0 6 0 -11 0
0 0 0 0 12 0 0 11 -16
Right hand side
9
0
0
0
0
0
24
0
-87
76
Post Selected Items to:

Showing 10 items of 804

home  •   advertising  •   terms of service  •   privacy  •   about us  •   contact us  •   press release design by Popshop •   © 1999-2017 NewsKnowledge